PDA

View Full Version : Change default folder based on operating system?



NewsArchive
03-06-2007, 11:29 AM
Hi,

Can Setupbuilder determine the operating system, and if Vista, change my
default install location? We typically install our software to a standard
"foldername" folder, and have thousands of customers running in this folder.
However, my network tech guy here says we should be installing into a
C:\Users\Public\foldername folder on Vista machines.

Thanks,

Mike

--
Michael Frazer
Frazer Computing, Inc.
www.FrazerComputing.com

NewsArchive
03-06-2007, 11:29 AM
You can use the Get System Information | Major Windows Version script
function
Vista or "Longhorn" server will return 6
http://msdn2.microsoft.com/en-us/library/ms724833.aspx
You can read Windows Product Type to distinguish 1=desktop 2 = domain
controller 3 = server (not domain controller)

Jane Fleming

NewsArchive
03-06-2007, 11:32 AM
What Jane said.

Or:

If %WINVER% Equals "$WIN_VISTA$" Then
End

;-)

Friedrich

NewsArchive
03-07-2007, 08:01 AM
Thanks for the trick, Friedrich :)

Jane