使用 NSIS 显示基于操作系统的页面

发布于 2024-09-08 11:51:19 字数 279 浏览 3 评论 0原文

我正在编写一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

醉态萌生 2024-09-15 11:51:19

要跳过页面,请在要跳过的页面的预回调函数中调用中止指令。

我还想指出,尽管大多数用户在 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+.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文