WINAMP.COM | Forums > Developer Center > NSIS Discussion > GetVersion plugin |
| Pages (2): [1] 2 » |
Last Thread
Next Thread
|
| Author |
|
|
Afrow UK Moderator
Registered: Nov 2002 |
GetVersion plugin
A 4kB plugin to get Windows version info: __________________ |
||
|
|
|
onad Senior Member
Registered: Dec 2004 |
Great, but better call it "GetOSversion" to avoid confusion with get FileVersion data. __________________ |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
I didn't call it that because I may add other version stuff to it, e.g. IE version or perhaps Microsoft Office etc. __________________ Last edited by Afrow UK on 07-16-2005 at 06:18 PM |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
New version with support for x64, Longhorn, Vista. __________________ |
||
|
|
|
Jamyn Junior Member
Registered: Aug 2002 |
Thanks
Thanks for this; it is appreciated. __________________ |
||
|
|
|
sissy Junior Member
Registered: Mar 2006 |
stu |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
Right I'll look into it. __________________ |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
Please try this out (WindowsType function). __________________ |
||
|
|
|
sissy Junior Member
Registered: Mar 2006 |
Hi Stu, |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
I did say WindowsType function not WindowsName __________________ |
||
|
|
|
o_owd Senior Member
Registered: Feb 2003 |
hello, |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
1) GetVersion::WindowsName will return e.g. "Windows 2000" __________________ |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
I am going to rebuild the plugin just to return 2000 if /short is specified as a parameter. __________________ |
||
|
|
|
o_owd Senior Member
Registered: Feb 2003 |
thanks, i will try it. |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
Uploaded. __________________ |
||
|
|
|
o_owd Senior Member
Registered: Feb 2003 |
i will. thanks again. |
||
|
|
|
{_trueparuex^} Senior Member
Registered: Dec 2005 |
__________________ |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
What would have expected it to return? __________________ |
||
|
|
|
{_trueparuex^} Senior Member
Registered: Dec 2005 |
__________________ |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
What is in "HKLM\SYSTEM\CurrentControlSet\Control\ProductOptions\ProductType"? __________________ |
||
|
|
|
{_trueparuex^} Senior Member
Registered: Dec 2005 |
It's "WinNT" __________________ |
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
FYI: |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
I may remove that function. You can read the IE version from the registry. Infact there's a function in the NSIS documentation under Useful Scripts which reads from the registry. Does that work? __________________ |
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
Yep, that works. |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
The plugin function reads the version value from shdocvw.dll __________________ |
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
Yep, right you are. I just checked mine and it is version 6.0.2900.2919. |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
Thanks __________________ |
||
|
|
|
Hywkar Junior Member
Registered: Jul 2008 |
Is there an easy way to detect if the operating system is windows server 2000? I tried the latest release and on windows 2000 server it gives me "Windows 2000 version 5.0 (Type : Professional, Server Name : )". code: |
||
|
|
|
MP_chefkoch Junior Member
Registered: Jul 2004 |
Hi Stuart, |
||
|
|
|
o_owd Senior Member
Registered: Feb 2003 |
Hey, |
||
|
|
|
xbarns Senior Member
Registered: Aug 2007 |
Hi Stuart, |
||
|
|
|
mark.ruys Junior Member
Registered: Jan 2009 |
|
||
|
|
|
kichik M.I.A. [NSIS Dev, Mod]
Registered: Oct 2001 |
You need to use RequestExecutionLevel to avoid Vista's compatibility hacks. If it doesn't work, there might be a problem with the embedded manifest. Maybe it was converted to UTF-16 as well though it should stay UTF-8. __________________ |
||
|
|
|
mark.ruys Junior Member
Registered: Jan 2009 |
|
||
|
|
|
cowwoc Junior Member
Registered: Feb 2005 |
What about Vista x64 and Windows7?
How about adding support for detecting Vista 64-bit and Windows 7? __________________ |
||
|
|
|
Anders Major Dude
Registered: Jun 2002 |
you already have a header with 64 bit stuff. __________________ |
||
|
|
|
Miguel Ventura Junior Member
Registered: May 2009 |
Service Pack is localized :( -- improvement suggestion
Hi |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
I'm afraid I do not have the tools available to build this plugin at this time (nor can I install them because I am on Vista here). __________________ |
||
|
|
|
jweinraub Senior Member
Registered: Jan 2004 |
There is a new version of WinVer.nsh that does detect Windows 7. I have the latest build, RC-1 on my laptop. I am willing to test GetVersion on it, as I need to have routines in my installers that detect Windows 7. |
||
|
|
|
| Pages (2): [1] 2 » |
Last Thread Next Thread
|
WINAMP.COM | Forums > Developer Center > NSIS Discussion > GetVersion plugin |
Forum Rules:
|