Archive: Operation System dependant variable


Hello,
I need a variable that gets an operation system dependant result. It should be false if it is Windows95/98/ME and true if it is Windows NT/2000. Is it possible to generate that variable? I must install a vxd for W95 and a sys driver for NT/W2K. I did not find anything like that so far.
Best regards
Wolfram Podien


My tip is a bit lame, but it could work...
Use IfFileExists for a file that win95/98/me have and that NT don´t...
I told you that it was lame...
Does somebody have a better idéa?
/arune


Hello,
the thing is that it is easy to implement in source code.
Here it is
vers.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
GetVersionEx (&vers);
switch (vers.dwPlatformId)
{
case VER_PLATFORM_WIN32_WINDOWS : ntacess = false;break;
case VER_PLATFORM_WIN32_NT :
ntacess = true;
break;
default :
AfxMessageBox ("Unknown operating system\n");
exit (0);
}
But how to put it into nsis?
Best regards
Wolfram


Originally posted by podien
But how to put it into nsis?
Best regards
Wolfram
The source is free... so you could always put it in yourself :)

The NSIS source is included with the NSIS installer.
I think you should use Visual C++ when modifying it.
Or you could hope that Justin sees your post and likes the
idea, then he´ll probably add it to the official release...
/arune


The problem is that I would like to get it in an offical release. I think there are more people who need that feature.