YYY
Posts: 8
Joined: Mon Oct 17, 2022 8:09 am

Installing multiple instances and project rebuilding problem.

Good day! I have faced with some strange problem using Advanced Installer 21.1. I have a project in multiple instances mode. -Generate instances at installation time- option is on. And installation works fine. I install several instances from current installation package. But then I make installation package rebuilding (Rebuild All menu) without any project options changes. After that if i try to execute the new installation package .exe file Windows shows error that another version of this product was already installed and installation cannot continue. If I uninstall instances that were installed with previous installation package the new installation package begins to work fine and I could install several instances again. But the next project rebuilding repeats the problem.
What is the reason? Help me please... :cry:
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Installing multiple instances and project rebuilding problem.

Hello,

Please note that this is the normal behavior.

Your product is identified by the OS by a GUID called ProductCode.

Product Identification (ProductCode and UpgradeCode)
Screenshot_74.png
Screenshot_74.png (51.38 KiB) Viewed 11252 times

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
YYY
Posts: 8
Joined: Mon Oct 17, 2022 8:09 am

Re: Installing multiple instances and project rebuilding problem.

Thank you for the reply.
So I should set new GUID for each rebuilded installation package for compatibility with previous package instance. Is it so? :?:
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Installing multiple instances and project rebuilding problem.

Hello,

If you change something in the project, then yes, you should do so. :)

Addiitonally, it is recommended to also change the version. For instance, if the base version is 1.0.0, then if you change something (e.g. add some files), change the version to 1.0.1 (or 2.0.0). When doing so, you will be asked if you want to generate a new ProductCode and you can select "Yes" there.

This way, the new package will detect the old package and upgrade it, meaning:

- uninstall of the previous version

- install of the newer version

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
YYY
Posts: 8
Joined: Mon Oct 17, 2022 8:09 am

Re: Installing multiple instances and project rebuilding problem.

Good day!
Catalin wrote: If you change something in the project, then yes, you should do so.
But I didn't change something. I just made project rebuilding. :?
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Installing multiple instances and project rebuilding problem.

Hello,

I understand. :)

However, please note that this is how the Windows Installer works - it will not allow you to reinstall the same package on the same machine.

If you need to rebuild and retest the same package, simply uninstall it manually and that should be enough.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
YYY
Posts: 8
Joined: Mon Oct 17, 2022 8:09 am

Re: Installing multiple instances and project rebuilding problem.

Thank you for your help! :P
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Installing multiple instances and project rebuilding problem.

You're always welcome! :)

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

Return to “Building Installers”