使用 NSIS 显示基于操作系统的页面
我正在编写一个 NSIS 脚本,其中有两个目录页面。一种获取程序安装的目录,一种获取放置任何数据的目录。
这样做的原因是,由于 Windows 7 和 Vista 中涉及 Program Files 文件夹的一些控制问题,我希望将数据放置在 Program Files 文件夹之外,但仍然让用户可以选择将其放置在他们想要的位置。
我有 NSIS 的版本插件,并且我了解如何使用它。我的问题是,当有人在 XP 或更早版本上安装时,我不想为他们提供数据选项。
如何根据用户运行的操作系统显示目录页面?
I'm working on an NSIS script in which I have two directory pages. One gets the directory for the program install, and one gets the directory for putting any data.
The reason for this, is that with some of the control issues in windows 7 and vista involving the Program Files folder, I want the data to be placed outside of the Program Files folder but still give the user the option to put it where they want.
I have the version plugin for NSIS, and I understand how to use that. My issue is that when someone is installing on XP or earlier I don't want to give them the options for the data.
How can I show a directory page based on what OS the user is running?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要跳过页面,请在要跳过的页面的预回调函数中调用中止指令。
我还想指出,尽管大多数用户在 2000/XP 上都是管理员,但在任何基于 NT 的平台上都存在同样的权限问题,而不仅仅是 Vista+。
To skip a page, call the abort instruction in the pre callback function for the page you want to skip.
I'd also like to point out that even though most users are admin on 2000/XP, that same permission issue exists on any NT based platform, not just Vista+.