jm2008
Posts: 62
Joined: Tue Jul 08, 2008 10:24 am

Uninstallation as Administrator

Hi,

When the user installs our package, AI requires Administrator privilege, and popup the user with the required dialog box for that.

But when the user (limited account) tries to uninstall, why AI doesn't perform the same behavior and asks the user for Administrator Privilege?

Can I do that from AI?

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

Re: Uninstallation as Administrator

Hi,

The elevation is handled automatically by Windows Installer during the uninstall process. If your package is installed per-machine or if its uninstall process needs Administrator privileges, an elevation prompt should be shown automatically on Vista and Windows7. On XP and older Windows version the uninstall process fails. Is your package installed per-machine? Also, what Windows version are you using?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jm2008
Posts: 62
Joined: Tue Jul 08, 2008 10:24 am

Re: Uninstallation as Administrator

Thanks Cosmin for your reply.

The package is per machine, Windows Vista/2008 and 7
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Uninstallation as Administrator

Hi,

Since it's installed per-machine the package uninstall process should prompt for elevation. Did you try testing the package on other machines? Also, how are you uninstalling the package? Please note that using an elevated process to launch the uninstall (for example an elevated command prompt or an elevated custom action) will make the uninstall run with that process credentials.

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

Return to “Common Problems”