杉宫竹苑工作室

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

NSIS 页面展开

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

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

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

x
  1. ; So we can compile from this dir without having to copy plug-in
  2. ; to NSISplugins dir.
  3. !addplugindir ".Release"

  4. OutFile "dirpage_example.exe"
  5. Name "Dir Page Example"
  6. Caption "Dir Page Example"

  7. Page directory
  8. Page custom onDirPageShow "" " "
  9. Page instfiles

  10. Function .onInit
  11.   StrCpy $INSTDIR "$PROGRAMFILESmyapp"
  12. FunctionEnd

  13. Function onDirPageShow
  14.   InitPluginsDir ; Initialize $PLUGINSDIR (required)
  15.   ; Now show the page
  16.   dirpage::show /text "Please choose the folder where you
  17.     would like to install $(^Name). $_CLICK" $INSTDIR
  18.   Pop $R0  ; Get result
  19.   StrCmp $R0 "success" ok
  20.   StrCmp $R0 "cancel" skip
  21.     MessageBox MB_OK "Dir Page error: $R0"
  22.   skip:
  23.     Return
  24.   ok:
  25.     Pop $INSTDIR
  26. FunctionEnd

  27. Section
  28.   DetailPrint "$INSTDIR = $INSTDIR"
  29. SectionEnd
复制代码


5415578551913562316.jpg
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-19 13:22 , Processed in 0.110254 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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