|
|
#41 |
|
Senior Member
|
where do i get exdll.h and other dependencies so i can build my own copy so i can try to add win7 items?
|
|
|
|
|
|
#42 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,781
|
download the source @ http://sourceforge.net/project/showf...ckage_id=15374
or browse the code directly: http://nsis.svn.sourceforge.net/view...Contrib/ExDLL/ and http://nsis.svn.sourceforge.net/view...17&view=markup IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#43 |
|
Junior Member
Join Date: Jun 2006
Posts: 17
|
GetVersion update for Windows 8 and 2008R2
Hello
I currently use GetVersion to successfully control the scripts behaviour dependent on the Windows version and architecture. I see that WinVer.nsh is updated to include the ability to detect Windows 7 and Windows Server 2008 R2 - but since I already use GetVersion I'd prefer to continue using it rather than to switch to WinVer.nsh. Will GetVersion be similarly updated to detect and report Windows 7 and Windows Server 2008 R2 and if so does anyone have any idea when - or is GetVersion no longer being updated? Thanks Tim |
|
|
|
|
|
#44 |
|
Junior Member
Join Date: Jul 2009
Location: South Africa
Posts: 1
|
TJK, you could, for the while being, identify Windows 7 by checking both WindowsServerName and WindowsVersion.
The WindowsVersion would report 6.1 for Windows7/Windows Server 2008 R2. The WindowsServerName would be blank for Windows 7 & filled in for Windows Server 2008 R2. I have included the modifications for Windows 7/Windows Server 2008 R2 and compiled it with Visual C++ 2008 Express, which resulted in the DLL being 21kB! Here is the dll & modified source: http://www.mediafire.com/?sharekey=9...4e75f6e8ebb871 I haven't tested it for Vista & Windows 7 yet. A friend of mine got the following error when he used my dll in Win7 x64 "Could not load: C:\Users\ludwig\AppData\Local\Temp\nszCDEE.tmp\GetVersion.dll"I guess it has to do with .NetFX. Regards Chris Last edited by PadaKwaak; 24th July 2009 at 00:23. |
|
|
|
|
|
#45 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
I have updated the plugin.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#46 |
|
Junior Member
Join Date: Jun 2006
Posts: 17
|
Thanks
|
|
|
|
|
|
#47 |
|
Junior Member
Join Date: May 2009
Location: Lisbon, Portugal
Posts: 2
|
Stu please also add functions to get from wServicePackMajor and wServicePackMinor instead of the localized WindowsServicePack using szCSDVersion
I've added those functions (I'm attaching them). I'm just not sharing the binary DLL 'cause it gets huge (100+KB) when I compile it here. Best regards, Miguel |
|
|
|
|
|
#48 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Thanks, done.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#49 |
|
Junior Member
Join Date: Sep 2009
Posts: 1
|
First of all thanks for the very great plugin
When you display the architecture you return just 32 or 64, but not the processor architecture like AMD64, IA64, EM64T, x64. But sometimes it would be important to know things exactly (e.g. if you want to auto install Net Framework 2.0 the installers of MS are depending on the architecture as the installer is different for IA64 and x64). I totally understand, that in most cases the result 32 or 64 is enough, but why not making an additional function GetVersion::WindowsProcessorArchitecture which shows the processor architectiure string. |
|
|
|
|
|
#50 |
|
Senior Member
Join Date: Jul 2003
Location: Germany
Posts: 106
|
Hey Stu,
thank for this plugin. I've updated the download version information and the changelog on the download page. Kind regards Rainer |
|
|
|
|
|
#51 |
|
Junior Member
Join Date: Sep 2005
Location: Germany
Posts: 35
|
Unfortunately this plugin lacks of detecting the real windows version if the installer is started under compatibility settings.
In this case "GetVersionEx" returns the values of the OS selected in the compatibility settings, not the real installed OS! See the MSDN: Link: http://msdn.microsoft.com/en-us/libr...51(VS.85).aspx "If compatibility mode is in effect, the GetVersionEx function reports the operating system as it identifies itself, which may not be the operating system that is installed. For example, if compatibility mode is in effect, GetVersionEx reports the operating system that is selected for application compatibility." This signature is currently on vacation! |
|
|
|
|
|
#52 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,781
|
And this is a fight you will ALWAYS lose, you could check the version of system dll's etc, but in the end, if the OS wanted to, it could lie about those also, that's the whole point of forcing a compatibility setting
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#53 | |
|
Junior Member
Join Date: Sep 2005
Location: Germany
Posts: 35
|
Quote:
And I'm sure this possibility will never be disabled since it will be always necessary to get the real OS version, since Win2000, XP, Vista and Seven hape parts with annoying different behaviour which is handled differently. The article postet at Monday, February 26, 2007 is very interesting and points out reliable possibilities: http://17slon.com/blogs/gabr/2007_02_01_archive.html This signature is currently on vacation! |
|
|
|
|
|
|
#54 |
|
Junior Member
Join Date: May 2010
Posts: 1
|
Strange results for getVersion
Hi there,
I tried to use this promising plugin for my installer project, but when I do so, I'm getting some strange results from the functions. See attached file. I seems that the result string of GetVersion::WindowsType is translated into chinese or some other "cryptic" language thing. Installer is run in English. But I use unicode version of NSIS to be able to install in Japanese. All other strings I use are displayed correctly. My system setup: Windows XP Professional SP3, German Any ideas? Thanks, Jo |
|
|
|
|
|
#55 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
The plug-in is not Unicode. It needs rebuilding (among mods). I haven't got the time to do it at the moment.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#56 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,781
|
you could try http://nsis.sourceforge.net/CallAnsiPlugin_plug-in (Does not work on every plugin, but you can always give it a shot)
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#57 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Finally got around to building a Unicode version along with some other changes. Uploaded v1.2.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#58 |
|
Major Dude
Join Date: Mar 2003
Posts: 569
|
When I tried using version 1.2 of the GetVersion (ANSI) plugin on my Windows 7 Professional 64-bit system GetVersion::WindowsType reported "Business" instead of "Professional"
|
|
|
|
|
|
#59 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
It does that for me too. I am using the correct constant values defined in winnt.h so it must be right.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#60 |
|
Major Dude
Join Date: Mar 2003
Posts: 569
|
I think the plugin should be returning "Professional" when it is run on a Windows 7 Professional system.
I found this on MSDN: The following table indicates the product types that were introduced in 6.1.0.0, and what they will map to if GetProductInfo is called with version 6.0.0.0 on a 6.1.0.0 system. code: See http://msdn.microsoft.com/en-us/libr...58(VS.85).aspx |
|
|
|
|
|
#61 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Uploaded v1.3.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#62 |
|
Major Dude
Join Date: Mar 2003
Posts: 569
|
Thanks for the new version of the plugin.
GetVersion::WindowsType now reports "Professional" when used on my Windows 7 Professional 64-bit system. |
|
|
|
|
|
#63 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Fixed Unicode build (Visual Studio's fault for not retaining UNICODE define when upgrading the vcproj from 2005 to 2010).
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#64 |
|
Junior Member
Join Date: Oct 2010
Posts: 2
|
Bug in latest version
I just downloaded the latest version of the GetVersion plugin from the NSIS website and there appears to be a bug. When I do my GetVersion::WindowsType call, it is popping up a message box that says Professional in the title and Professional in the box itself. It looks like some debug code may have been left in. It is version 1.4.0.1.
|
|
|
|
|
|
#65 |
|
Junior Member
Join Date: Oct 2010
Posts: 2
|
I guess since you have include the source, I could also recompile it but just wanted to make you aware.
|
|
|
|
|
|
#66 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Thanks, fixed.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#67 |
|
Junior Member
Join Date: May 2009
Posts: 43
|
Winver returns Vista instaed of 7 on win7 64 bit
My app needs to run in the compatability mode on win7 64.
My NSIS installer mis-identifies the OS as Windows Vista 64 bit rather than Win7. Is this the same problem mentioned above, wherein CM will set an OS, not necessarily the installed OS, so that winver is mislead? Is there a way to detect the correct installed OS at this time? Thx. |
|
|
|
|
|
#68 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,781
|
Kernel32::CreateRemoteThreadEx is new in Win7, you could check for it by calling GetProcAddress with the system plugin:
PHP Code:
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#69 |
|
Junior Member
Join Date: May 2009
Posts: 43
|
Thanks, Anders.
I'll check this out. |
|
|
|
|
|
#70 |
|
Junior Member
Join Date: Aug 2011
Posts: 5
|
Hi there,
are you still working on this PlugIn? I would like to check a Windows Server 2012 Great PlugIn bytheway ![]() Greetings from Munich heg |
|
|
|
|
|
#71 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
I will upload the plug-in at some point but I would recommend that you can use this instead anyway... It's an updated version of WinVer.nsh which is bundled with NSIS: http://www.afrowsoft.co.uk/dl/WinVer.nsh
${If} ${IsWin2008} ... Edit: Anders has rightly pointed out that as Windows 8 is not out yet the version number could be different in the final product. This may not be likely but use this at your own risk! Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#72 |
|
Junior Member
Join Date: Aug 2012
Posts: 1
|
Thank Afrow UK. I used GetVersion 6 months ago. It's good! But GetVersion plugin doesn't support Win 8! Can you upgrade for GetVersion plugin? I'm look forward to hearing your answer! Thank you!
|
|
|
|
|
|
#73 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
See the post above yours.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|