MSI fails when upgrading from per-user to per-machine install - Advanced Installer Community
sophiasmith
Posts: 1
Joined: Tue Mar 31, 2026 9:41 am
Contact: Website

MSI fails when upgrading from per-user to per-machine install

Hi everyone,

I’m working with Advanced Installer to build an MSI package, and I’ve run into an issue when trying to upgrade an existing installation. The previous version of my app was installed as per-user (Just me), but the new version is set to install as per-machine (All users).

When I run the upgrade, the installer either fails to detect the old version correctly or throws an error during installation, and the upgrade doesn’t complete cleanly.

Is there a recommended way in Advanced Installer to handle upgrades that switch the installation context from per-user to per-machine? Do I need to adjust the UpgradeCode, ProductCode, or use a custom action to remove the old version first?

Any guidance or best practices would be really helpful.
Catalin
Posts: 7847
Joined: Wed Jun 13, 2018 7:49 am

Re: MSI fails when upgrading from per-user to per-machine install

Hello and welcome to our forums,

Normally, a per-machine installation can not upgrade a per-user one and vice-versa.

To do so, you can use the Uninstall previous versions custom action.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”