Uninstall fails when uninstalled by different user - 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!

unklefolk
Posts: 1
Joined: Fri Mar 16, 2012 10:48 am

Uninstall fails when uninstalled by different user

Our installer runs custom actions when it is installed.

If the software is installed by UserA and uninstalled by UserA, then everything works fine.

However, if the software is installed by UserA but uninstalled by UserB the install fails (the user gets a blank message dialog with an OK button and then the uninstall rolls back).

I suspect this is because the custom action dll is placed in C:\Users\UserA\AppData\Local\Temp\MyCustomInstallAction.dll and therefore, when UserB attempts an uninstall, the system can't find or doesn't 'know' that the MyCustomInstallAction.dll is in the UserA user folder.

Therefore, my question is what do I need to do to ensure that UserB can uninstall an application installed by UserA?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Uninstall fails when uninstalled by different user

Hello and welcome to Advanced Installer forums,
what do I need to do to ensure that UserB can uninstall an application installed by UserA?
Please keep in mind that this is the normal and intended behavior. The installation should be either per-user or per-machine (Install Parameters page).

If you need the application to be accessed by all users, the installation should be installed in a per-machine location, otherwise per-user.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”