Page 1 of 1

OS Version

Posted: Fri Jan 27, 2006 12:13 pm
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

Posted: Fri Jan 27, 2006 12:24 pm
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.