Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 22nd April 2001, 16:54   #1
podien
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
podien is offline   Reply With Quote
Old 22nd April 2001, 17:22   #2
arune
Junior Member
 
Join Date: Apr 2001
Posts: 18
Send a message via ICQ to arune
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
arune is offline   Reply With Quote
Old 22nd April 2001, 17:53   #3
podien
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
podien is offline   Reply With Quote
Old 22nd April 2001, 18:59   #4
rm'
Banned
 
rm''s Avatar
 
Join Date: Jul 2000
Posts: 11,361
Quote:
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
rm' is offline   Reply With Quote
Old 22nd April 2001, 19:08   #5
arune
Junior Member
 
Join Date: Apr 2001
Posts: 18
Send a message via ICQ to arune
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
arune is offline   Reply With Quote
Old 23rd April 2001, 15:09   #6
podien
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.
podien is offline   Reply With Quote
Reply
Go Back   Winamp 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