Uninstall problem with UAC - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

toschlog
Posts: 26
Joined: Fri Jun 10, 2011 5:39 pm

Uninstall problem with UAC

I'm having a problem on a Windows 7 machine with UAC. When I install, I'm asked if I want to allow the installer to change files. I say yes, and everything works fine. But when I uninstall, I'm not asked and none of the files are deleted from the Program Files folder.

If I right-click on the Uninstall shortcut in the Start Menu and choose "Run as Administrator" then the uninstall works correctly.

Am I doing something wrong? How do I fix this?

Thanks.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Uninstall problem with UAC

Hi,

How did you create the Uninstall shortcut? Did you use the predefined option in "Files and Folders" page? Also, can you reproduce this on a clean machine?
Windows Installer should automatically prompt for elevation when uninstalling a per-machine product.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
toschlog
Posts: 26
Joined: Fri Jun 10, 2011 5:39 pm

Re: Uninstall problem with UAC

We are able to reproduce this on any number of Windows 7 machines with clean installs.

I do two things to enable the installer:

1) I checked "Register product with Windows Installer" under "Add or Remove Programs (Control Panel)" on the Product Details page.

2) I created a shortcut in the Start Menu to the uninstaller.

I get the same behavior (files no deleted from Program Files) whether I uninstall from the shortcut or the Control Panel.

I do have the "Disable Modify" option checked under "Add or Remove Programs (Control Panel)", but I can't see anything else that I might change.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Uninstall problem with UAC

Hi,

Does the uninstall process run without errors? If it does, perhaps the files are not removed because there is a different problem. Can you please send us the .AIP (project) file you are using to support at advancedinstaller dot com so we can investigate it? Also, please attach a verbose log of the installation.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”