最新消息:

NSIS 获取CPU

nsis 永恒心锁 1225浏览 0评论
cpudesc::tell
Pop $0 ;full identification string in $0
StrCpy $1 $0 4 90 ;pull out four characters after RAM=
IntOp $1 1$1 - 10000 ;ignore any leading zeros, the number is not octal
MessageBox MB_OK "Ram (megs): '$1'"|

StrCpy $2 $0 5 80 ;pull out five characters after MHZ=
IntOp $2 1$2 - 100000 ;ignore any leading zeros, the number is not octal
MessageBox MB_OK "CPU speed (MHz): '$2'"

StrCpy $3 $0 1 22 ;pull out one character after PPRO=
IntCmpU $3 1 +1 +3 +3 ;pick a BLOG dep on PPro compatibility
File /oname=blog.exe "blog_source_directory\blog_gen.exe"
Goto +2
File /oname=blog.exe "blog_source_directory\blog_pro.exe"

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

转载请注明:永恒心锁-分享互联网 » NSIS 获取CPU

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