Archive: Problems by unintallation on Windows Vista


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!


"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)


Yes, my account has Admin rights. But this doesn't solve the problem.


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.


Thank you for figuring out this problem and reporting back, I'm sure other people will run into this also