|
|
#1 |
|
Junior Member
Join Date: Apr 2001
Posts: 4
|
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 |
|
|
|
|
|
#2 |
|
Junior Member
|
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 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Apr 2001
Posts: 4
|
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 |
|
|
|
|
|
#4 | |
|
Banned
Join Date: Jul 2000
Posts: 11,361
|
Quote:
|
|
|
|
|
|
|
#5 |
|
Junior Member
|
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 |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Apr 2001
Posts: 4
|
The problem is that I would like to get it in an offical release. I think there are more people who need that feature.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|