Maxim30
18th May 2006 21:23 UTC
WinNT 3.51 detection by default setup (from NT4 and up)
Hello,
with a default setup with Version plugin, if I use in the .onInit function the following code:
Function .onInit
Version::isWindowsNT351
Pop $0
StrCmp $0 "0" +3
MessageBox ...
Abort
FunctionEnd
Do I get the message box, if the os is Windows NT 3.51, or not ?
That is, do I get the message box before the setup stops because the deafult setup is normally set for Win NT 4 ?
kichik
19th May 2006 11:55 UTC
Windows NT 3.51 is not supported by NSIS. Installers won't even start on it.
Assuming it did, with your script, it'd show the message box and quit, if the installer isn't running on NT 3.51.
Maxim30
19th May 2006 23:32 UTC
Then, is the message shown SURELY on Windows NT 3.51 ?
kichik
20th May 2006 09:48 UTC
Yes. It will skip the message box, if it's not running on NT 3.51. Again, assuming NT 3.51 is supported, which is not the case.
You should use the LogicLib for clearer scripts.