Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 11th September 2009, 13:39   #1
TrifonovS
Member
 
Join Date: Apr 2009
Location: Bulgaria
Posts: 68
Problems by unintallation on Windows Vista

Hello experts,

I checked the posts connected to my problem, but I still can't solve it. I have made a installation script for my application. The installation/uninstallation runs without any problems on Windows 2000 and XP. When I tried to install it on Windows Vista, everything was ok too, but I have a problem with the uninstallation. I always get message "You do not have sufficient access to uninstall ... Please contact your system administrator." But this happens only when I try to uninstall the application from the Control Panel. When I start directly the uninstaller, everything works fine. I tried with "RequestExecutionLevel admin", but the result is the same.
By the way, UAC is switched off...
Can you advice me how to solve the problem?

Thanks!
TrifonovS is offline   Reply With Quote
Old 11th September 2009, 15:01   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,783
"RequestExecutionLevel admin" does NOTHING when UAC is off

Are you running as Admin? (If you are not, but you stored the uninstall info in HKLM, it would make sense for Vista to stop you)

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 11th September 2009, 15:28   #3
TrifonovS
Member
 
Join Date: Apr 2009
Location: Bulgaria
Posts: 68
Yes, my account has Admin rights. But this doesn't solve the problem.
TrifonovS is offline   Reply With Quote
Old 15th September 2009, 09:17   #4
TrifonovS
Member
 
Join Date: Apr 2009
Location: Bulgaria
Posts: 68
Hi again,

I have solved my problem and I decided to write some notes what was the reason for this behavior, because it was really strange.
The problem comes from my script. The UninstallString that I'm writing in the registry was wrong. There was one quotation mark symbol at the beginning (but not at the end). When I removed it, the uninstallation on Vista was executed without any problems.
Here are two concussions:
1. Windows Vista checks better the syntax of this UninstallString. On Windows 2000 and XP this error doesn't make any problems.
2. Windows Vista shows completely wrong message in this case - there is no problem with the access rights and it is difficult to understand what is the real problem.
TrifonovS is offline   Reply With Quote
Old 15th September 2009, 15:23   #5
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,783
Thank you for figuring out this problem and reporting back, I'm sure other people will run into this also

IntOp $PostCount $PostCount + 1
Anders 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