Detecting NT
I'm trying to detect whether a user is trying to install under NT/2K/XP/etc., and abort with an error if so. What is the proper way to do this? I searched and ended putting the following in .onInit:
This causes the error to pop up when it should. This is good. However, the installer just quits under 95/98/Me. This is not good, as these are the only supported platforms. :weirdReadRegStr $0 HKLM SOFTWAREMicrosoftWindowsCurrentVersion VersionNumber
|MB_ICONEXCLAMATION "This program is for Windows 95/98/Me only"
StrCmp$0 "" 0 +2
MessageBox MB_OK
>Abort
>
Any ideas as to what I may be doing wrong?