最新消息:

时间差

nsis 永恒心锁 1472浏览 0评论
#www.yhxs3344.net 原创教程
!include "Time.nsh"
!include "Sections.nsh"
!define /date PRODUCT_TIME "%Y-%m-%d %H:%M:%S"
!define /date DATE "%d.%m.20%y 0:0:0"
Var RADIOBUTTON
Var NowTime
name "时间差"
OutFile "Time difference.exe"
Function .onInit
StrCpy $RADIOBUTTON ${MathTime}
;获取系统现在的时间
 System::Call '*(&i2,&i2,&i2,&i2,&i2,&i2,&i2,&i2)i.s'
 System::Call /NOUNLOAD 'kernel32::GetLocalTime(isr0)'
 System::Call '*$0(&i2.r1,&i2.r2,&i2,&i2.r3,&i2.r4,&i2.r5,&i2,&i2)'
 System::Free $0
 IntFmt $1 "%0.4d" $1
 IntFmt $2 "%0.2d" $2
 IntFmt $3 "%0.2d" $3
 StrCpy $NowTime "$3.$2.$1 0:0:0"
 ${time::MathTime} "second($NowTime) - second(${DATE}) = day" $6
 ${if} $6 > "89"
 MessageBox MB_OK|MB_ICONSTOP "您的安装包已有:$6天,安装包版本过低,请到www.ejinshan.net官网下载最新版本!"
 ExecShell "open" "http://www.yhxs3344.net"
 Quit
 ${Endif}
FunctionEnd

永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » 时间差

您必须 登录 才能发表评论!