OS Version

Got a problem you cannot solve? Try here.
Post Reply
shomw
Posts: 17
Joined: Wed Jan 18, 2006 9:31 pm

OS Version

Post by shomw »

I need to enter a reg value based on the os version running on the system.

I could not see how to place a condition on a feature.
What var can I use to read the osversion?

and use it to place a condition on a write registry command.

also how do I set a feature as invisible?

Shom
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Hello!

Please first switch to the Code view (ALT+C).

There, use the Get System Information command to first obtain information on the operating system (note that this function checks for the minimum OS version).

Then, use the If and Write Registry commands to write to the registry based on the return of the Get System Information command.

Note that you can type commands directly in the code editor without having to drag-drop them.

Finally, there is no need to create hidden features - just install items directly without any If checks, and they will always be installed. This will become apparent as soon as you review the code view.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply