Is it possible to upgrade the program without closing the software? - Advanced Installer Community
jeramyabshire
Posts: 1
Joined: Thu Dec 29, 2022 4:39 pm

Is it possible to upgrade the program without closing the software?

Hi support team,

I've created the MSI file by Advanced installer. There are 2 versions of msi file with the same ProductCode.

1.msi
C:\Program Files\test.exe
C:\Program Files\test.dll

2.msi
C:\Program Files\test.exe (-new version-)
C:\Program Files\test.dll (-new version-)

I've installed the 1.msi, then launch the test.exe.

1. If the test.exe is launching, is it possible upgrade the test.exe by install the 2.msi without closing the test.exe ?

If yes, then
2. If the 2.msi installed successfully, the test.exe will upgrade automatically after user close the test.exe ?
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Is it possible to upgrade the program without closing the software?

Hello and welcome to our forums,

In that specific scenario, please note that Windows Installer (the technology provided by Microsoft on which Advanced Installer is built upon) will automatically spawn the "FilesInUse" dialog.

As per the article:
A FilesInUse dialog box alerts the user of processes currently running files that must be overwritten or deleted by the installation. This gives the user the opportunity to shut down these processes and avoid having to reboot the computer to complete the replacement or deletion of these files
With that being said, I'm afraid what you want to achieve is not possible.

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

Return to “Common Problems”