install only on nt/2000/xp?
Is there a way to create an installer that refuses to install unless the OS is NT-based?
6 posts
Originally posted by F. HeidenreichNot a good idea. Another program could create that key. You've to look for the "CurrentVersion" value.
As far as I know is the registry key 'HKEY_CURRENT_USER\Software\Microsoft\Windows NT' only available on NT-based OSes. Try to read this key and if the error flag is set you are on a non NT-based OS.
IfFileExists $SYSDIR\ntoskrnl.exe WinNT
Goto Win9X