PDA

View Full Version : Winver reporting wrong version?



timbojones
12-18-2006, 04:19 PM
I have a user who reports that when running our installer, he got a message that Windows 95 is not supported. This message is most likely coming from rt_vc2005redist_x86.sbi. But this user is not using Win95, he is on XP Pro SP2.

How is the value of {WINVER} determined?

linder
12-19-2006, 01:04 AM
Tim,

The installer makes use of Windows API calls to determine the OS (stored in %WINVER%).

You can use a "Display Message Box" to check the %WINVER% value. It should display 64 on a Windows XP machine.

BTW, are you using SB5 or SB6?

Friedrich

timbojones
12-19-2006, 12:46 PM
I already know that this user is getting %WINVER% == $WIN_95$, based on the error message he gets ("Windows 95 not supported") and the stage of installation that he reached.


If %WINVER% Equals "$WIN_95$" Then
Display Message Box "#ERR_LAUNCH_CONDITION_OS#\n\nWindows 95 not suppor..." -- "Windows version error!"
Exit Installation
End

I'm using SB5.

linder
12-20-2006, 03:14 AM
Tim,

The value for %WINVER% is directly based on the GetVersionEx Windows API result.

Please do me a favour and display %WINVER% in a message box. Or send him a test installer that display the %WINVER$ variable value.

Thanks,