杉宫竹苑工作室

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1965|回复: 0

NSIS 获取CPU

[复制链接]
发表于 2017-2-26 11:38:15 | 显示全部楼层 |阅读模式

正式会员享受无限制浏览网站功能和高速网盘下载,赶快加入本站吧!

您需要 登录 才可以下载或查看,没有账号?立即注册

x

  1. ;                       需要cpudesc.dll实现
  2. ;==============================================

  3. cpudesc::tell
  4. Pop $0                     ;full identification string in $0
  5. StrCpy $1 $0 4 90          ;pull out four characters after RAM=
  6. IntOp $1 1$1 - 10000       ;ignore any leading zeros, the number is not octal
  7. MessageBox MB_OK "Ram (megs): '$1'"|

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

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

  16. ; ... the rest of your Install section
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|SgzyStudio

GMT+8, 2024-5-19 16:20 , Processed in 0.101789 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表