NSIS 获取CPU

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
© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容