Old 18th May 2006, 21:23   #1
Maxim30
Member
 
Maxim30's Avatar
 
Join Date: Sep 2005
Location: Martinsicuro -Teramo- Italy
Posts: 76
Question 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 ?

Massimo
Maxim30 is offline   Reply With Quote
Old 19th May 2006, 11:55   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 19th May 2006, 23:32   #3
Maxim30
Member
 
Maxim30's Avatar
 
Join Date: Sep 2005
Location: Martinsicuro -Teramo- Italy
Posts: 76
Then, is the message shown SURELY on Windows NT 3.51 ?

Massimo
Maxim30 is offline   Reply With Quote
Old 20th May 2006, 09:48   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump