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
OS Version
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
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.
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
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Who is online
Users browsing this forum: No registered users and 224 guests