PDA

View Full Version : Check for Windows 7



LCarlton
10-24-2013, 08:51 AM
Hello,

is there any way to check if a user is running Windows 7? I have to perform some actions on Windows 7, and on Windows 7 only.

Thanks,
Lynn

linder
10-24-2013, 08:53 AM
Lynn,

No problem. Just use:

If %WINVER% Equals "$WIN_7$" Then
! Yada
End

Friedrich

LCarlton
10-24-2013, 09:00 AM
That works, thank you friedrich.

Another question: I have to start a redistributable on Windows 8.1 only but not on 8.0. Our old installation system was unable to detect 8.1 (it always returned 8.0). Can I detect Windows 8.1 with SetupBuilder?

Thanks again for your quick reply. Amazing support, amazing product.

Lynn

linder
10-24-2013, 09:04 AM
Lynn,

Thank you for your kind words!

Windows 8.1 detection is no problem. But you need the latest SetupBuilder 8.1:

This is an interesting reading:

http://www.lindersoft.com/forums/showthread.php?t=40650

If %WINVER% Equals "$WIN_81$" Then
! Launch redist here
End

Friedrich

LCarlton
10-24-2013, 10:23 AM
Yippee! It works great! Installer sent to our beta testers.

Lynn

linder
10-24-2013, 10:25 AM
Good job, well done! :)

Friedrich

LCarlton
10-26-2013, 04:01 AM
Lindersoft,

Beta test completed and not a single installation related problem! The setup.exe installs 1500 files (155MB) in under one minute. Our previous install vendor did not even complete the "initialization" part in the same amount of time. Very impressive!

Lynn

linder
10-26-2013, 04:04 AM
Wow..music to my ears :) Thanks for sharing the good news!

Friedrich

LCarlton
10-29-2013, 07:06 AM
If %WINVER% Equals "$WIN_81$" Then
! Launch redist here
End

Is it possible that the above code does not work as expected on Windows 8.1 64-bit?

Lynn

linder
10-29-2013, 07:12 AM
Lynn,

Unfortunately, there is a bug in the runtime. The %WINVER% variable returns "Windows 8.0" on machines running "Windows 8.1". We have already fixed it and a maintenance build will be available this week.

http://www.lindersoft.com/forums/showthread.php?t=40710
http://www.lindersoft.com/forums/showthread.php?t=40709

Sorry for the inconveniences!

Friedrich

LCarlton
10-29-2013, 07:16 AM
No problem. Thanks for the confirmation :)

We have to release on next Monday, so we should be good with a maintenance build this week.

Lynn

LCarlton
11-04-2013, 04:26 AM
My SetupBuilder updated to Build 4227. Thanks for the quick Windows 8.1 detection fix. Works as expected now :)

Lynn