PDA

View Full Version : Detecting Windows 7 in SB7



NewsArchive
12-08-2009, 01:52 AM
It may seem like a newbie question, but I need to detect if the target
system is running Window 7 (any variation) in SetupBuilder 7.

My problem is I have a program that will run fine on everything pre-Windows
7, so I want to set the "Compatibility Mode" to Vista SP2, but only if we're
installing to a Windows 7 system. If we're installing to XP or Vista, etc.,
then I don't want to bother setting the compatibility mode.

Does anyone have anything I can use? I'm having trouble figuring it out
with the Online Help.

Regards,
Flint

NewsArchive
12-08-2009, 01:53 AM
Ok, I was able to get it figured out (newbie question for sure).
SetupBuilder makes this stuff easy:

If %WINVER% Equals "$WIN_7$" Then
Set App Compatibility Mode for "MyPath\MyApp.exe" to [VISTASP2]
End

Regards,
Flint

NewsArchive
12-09-2009, 01:24 AM
>
> If %WINVER% Equals "$WIN_7$" Then
>

100% correct!

Friedrich