Skip to content
⌘ NSIS Forum Archive

Show an InstallOptions-Screen only when the OS is NT

4 posts

Defcon0#

Show an InstallOptions-Screen only when the OS is NT

Hello,

I have a question concerning InstallOptions.
Is there any way to avoid an InstallOptions-Screen from being shown if the used OS isn't NT ?

This is how I, at the time, check if the user has Win9x:
ClearErrors
UserInfo::GetName
IfErrors Win9x
...
Thanks in forward.

Bye Defcon0
Afrow UK#
If you're only using the UserInfo plugin to get the operating system then it'd be better to use the GetWindowsVersion function.

As for not displaying the page, just jump over the InstallOptions call or call Abort before displaying it.

Stu
kichik#
The preferred method is the new WinVer.nsh.
!include LogicLib.nsh
!include WinVer.nsh
#...
${If} ${IsNT}
# nt here...
${Else}
# not nt
${EndIf}