开发者

Showing page based on operating system with NSIS

开发者 https://www.devze.com 2023-01-06 19:15 出处:网络
I\'m working on an NSIS script in which I have two directory pages. One gets the directory for the program install, and one get开发者_Go百科s the directory for putting any data.

I'm working on an NSIS script in which I have two directory pages. One gets the directory for the program install, and one get开发者_Go百科s 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?


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+.

0

精彩评论

暂无评论...
验证码 换一张
取 消