views:

16

answers:

1

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?

+1  A: 

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

Anders
Heh, I'm well aware of that, I'm just a lowly intern doing what I'm told though. Thanks!
Nedloh
worked like a charm, thanks.
Nedloh