PDA

View Full Version : if usage


jenny62
01-27-2006, 09:00 AM
Hi, don't know if this is possible with SUF but I am trying to find a way to do this
at the Post Install stage:

IF the operating system is Windows 95/98/Me
Then FileRun... 9xversion.exe....
Else, if operating system is NT/2000/XP
Then FileRun NTversion.exe....

If it is possible, sure would appreciate a sample code for it,

thanks!

Adam
01-27-2006, 12:33 PM
OS = System.GetOSName();
if OS == "Windows 95" or OS == "Windows 98" or OS == "Windows ME" then
File.Run("9x version");
else
File.Run("NT version");
end


Adam Kapilik

jenny62
01-27-2006, 02:02 PM
wow! never thought it could be so easy
works like a charm, thanks!!:yes