|
|
#1 |
|
Junior Member
Join Date: Jan 2008
Posts: 18
|
Incorrect Windows Version during Uninstallation
Hi.
I have an application that checks for the windows version during its installation & un-installation. The logic used for finding the windows version is the same as in Windows_Version_Detection. I'm running Windows Vista SP1 and NSIS 2.44. During installation phase, the version is being detected correctly. However, the same function during un-installation is returning the version as Win XP. I even tried the methods used in Version_plug-in and NSIS-OS_plug-in but to no avail. I'm stuck @ this issue since quite a few days. I would really appreciate any help in this matter. Thanks & regards. Rohit. Last edited by pillairohit; 27th March 2009 at 12:56. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,775
|
Have you set it to emulate WinXP? (Check the uninstaller.exe properties)
If not, try using WinVer.nsh IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jan 2008
Posts: 18
|
uninstaller.exe is not emulating XP, if thats what you mean by Compatibility Mode.
Moreover, i'm using Winver.nsh. Its not working in the uninstallation phase. |
|
|
|
|
|
#4 |
|
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
Have you tried with simple code?
code: ( okay, not so simple - couldn't find a command to get -just- the windows string out of winver.nsh ? I must be blind. Anyway, that's what the select/case is for. ) |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Jan 2008
Posts: 18
|
Hi.
Thanks for the sample code. The code works on it own. However, when i try to integrate the same code with my script, the un-installer still returns XP as the windows version. I even tried by calling the sample code by keeping it in a header file, and then calling it from my script. However, in all cases, the version being returned is XP. Is there any direction you may be able to point me, to find out what could be reason that my un-installer is still returning the incorrect version. Thanks and regards. Rohit. |
|
|
|
|
|
#6 |
|
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
haven't the foggiest, I'm afraid.. :\ unless something in your uninstaller is overwriting defines used by WinVer.nsh.
If you can share the code of the uninstaller, that would be a tremendous help. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|