Installer Hanging At "UninstallPreviousVersions" - Advanced Installer Community
cadenzach
Posts: 2
Joined: Thu Apr 17, 2025 5:51 pm

Installer Hanging At "UninstallPreviousVersions"

I'm running into an issue during an upgrade from an older product version to a newer one where the installer seems to be perpetually waiting on something to complete. If I use the Analyze Wait Chain feature in Task Manager, I just see that the installer process is waiting on "msiexec.exe". The last line that is shown in the logs with verbose mode on is:

Code: Select all

MSI (c) (38:5C) [09:41:16:961]: Doing action: UninstallPreviousVersions
Is there any way to further diagnose or log what it might be waiting on?
In my case the installer has to update services, a normal process, files on disk, and the registry, but I don't see anything still running that would prevent it from replacing anything on the machine.

Some more of the logging context is shown below:

Code: Select all

MSI (c) (38:5C) [09:41:16:487]: Doing action: AI_DetectSoftware
Action start 9:41:16: AI_DetectSoftware.
MSI (c) (38:2C) [09:41:16:805]: Invoking remote custom action. DLL: C:\Windows\SystemTemp\MSI2DE2.tmp, Entrypoint: OnDetectSoftware
Action ended 9:41:16: AI_DetectSoftware. Return value 1.
MSI (c) (38:5C) [09:41:16:816]: Doing action: AI_AppSearchEx
Action start 9:41:16: AI_AppSearchEx.
MSI (c) (38:50) [09:41:16:886]: Invoking remote custom action. DLL: C:\Windows\SystemTemp\MSI2F2B.tmp, Entrypoint: DoAppSearchEx
Action ended 9:41:16: AI_AppSearchEx. Return value 1.
MSI (c) (38:5C) [09:41:16:941]: Doing action: AI_RESTORE_AI_SETUPEXEPATH
Action start 9:41:16: AI_RESTORE_AI_SETUPEXEPATH.
Action ended 9:41:16: AI_RESTORE_AI_SETUPEXEPATH. Return value 1.
MSI (c) (38:5C) [09:41:16:941]: Doing action: AI_PRESERVE_INSTALL_TYPE
Action start 9:41:16: AI_PRESERVE_INSTALL_TYPE.
MSI (c) (38:BC) [09:41:16:950]: Invoking remote custom action. DLL: C:\Windows\SystemTemp\MSI2FA9.tmp, Entrypoint: PreserveInstallType
Action ended 9:41:16: AI_PRESERVE_INSTALL_TYPE. Return value 1.
MSI (c) (38:5C) [09:41:16:960]: Doing action: FindRelatedProducts
Action start 9:41:16: FindRelatedProducts.
MSI (c) (38:5C) [09:41:16:961]: PROPERTY CHANGE: Adding OLDPRODUCTS property. Its value is '{5942CCCE-C0AF-4282-8BA6-C9C2D9D1C19A}'.
MSI (c) (38:5C) [09:41:16:961]: PROPERTY CHANGE: Adding MIGRATE property. Its value is '{5942CCCE-C0AF-4282-8BA6-C9C2D9D1C19A}'.
Action ended 9:41:16: FindRelatedProducts. Return value 1.
MSI (c) (38:5C) [09:41:16:961]: Doing action: UninstallPreviousVersions
Catalin
Posts: 7847
Joined: Wed Jun 13, 2018 7:49 am

Re: Installer Hanging At "UninstallPreviousVersions"

Hello and welcome to our forums,

The "upgrade" support is almost done entirely by Windows Installer - it basically comes out of the box with the technology.

Actions such as FindRelatedProducts, RemoveExistingProducts etc. are standard and proprietary to Windows Installer.

Are you able to reproduce this behavior on multiple machines, or is it happening on one machine only?

If the latter one, then the first thing I would check would be the AV product to see whether that is blocking the installation.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cadenzach
Posts: 2
Joined: Thu Apr 17, 2025 5:51 pm

Re: Installer Hanging At "UninstallPreviousVersions"

Hi there!

This issue seems to be reproducible almost 100% of the time in my testing, and I've been using virtual machines for the majority of the test runs. I can try ensuring that AV is disabled, but I don't think that has been an issue up to this point during iterative testing.

Is there any additional logging or information I can look into locally to see what might be getting stuck in the Windows installer?

Thank you!
Catalin
Posts: 7847
Joined: Wed Jun 13, 2018 7:49 am

Re: Installer Hanging At "UninstallPreviousVersions"

Hello,

Being able to constantly reproduce this is a good news for us.

Could you please share with me the following resources:

- a copy of the AIP file

- a download link of the setup v1

- a download link of the setup v2

by email at support at advancedinstaller dot com so I can run some tests on my end and further investigate this behavior?

Looking forward to hearing from you!

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

Return to “Common Problems”