chiefannulet
Posts: 2
Joined: Fri Nov 29, 2024 9:24 am

Advanced Installer requires that the Product Code and Upgrade Code GUIDs be changed?

In order to run an older version, a newer version, or even the same version and allow it to overwrite the files, how can I get past this? Or, should I run into this problem, is there a way to always remove the identified installation so that a new one can be installed? InnoSetup and SetupBuilder simply replace the current product without uninstalling it, which is why I find AI's peculiar paradigm so frustrating.
geometry dash lite with Product Code and Upgrade Code GUIDs
cogs33
Posts: 11
Joined: Tue Sep 27, 2022 5:06 pm

Re: Advanced Installer requires that the Product Code and Upgrade Code GUIDs be changed?

In general, never change the upgrade code for a product. Only change the product code with every new build or update. The naming is not intuitive and is often confused by many developers.

We are using a MD5 hash of the product name plus all version details incl. build number as GUID for the product code. This way the code can be generated automatically by our build scripts and set for each AIP file.

Other than that, I would also want to know if there is a setting that would allow a package to be simply reinstalled. I guess this is called "repair" but may be wrong.
chiefannulet
Posts: 2
Joined: Fri Nov 29, 2024 9:24 am

Re: Advanced Installer requires that the Product Code and Upgrade Code GUIDs be changed?

cogs33 wrote: Sun Dec 01, 2024 10:47 am In general, never change the upgrade code for a product. Only change the product code with every new build or update. The naming is not intuitive and is often confused by many developers.

We are using a MD5 hash of the product name plus all version details incl. build number as GUID for the product code. This way the code can be generated automatically by our build scripts and set for each AIP file.

Other than that, I would also want to know if there is a setting that would allow a package to be simply reinstalled. I guess this is called "repair" but may be wrong.
Thanks for sharing your views
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: Advanced Installer requires that the Product Code and Upgrade Code GUIDs be changed?

Hello,

@cogs33,

Thank you for your contributions here.

@chieffannulet,

Unlike InnoSetup and SetupBuilder, Advanced Installer is built upon the WIndows Installer technology (created by Microsoft).

Between different versions of your setup:

- the UpgradeCode must stay the same

- the ProductCode must be different (e.g. v1.0 has a ProductCode, v2.0 has another ProductCode) - unless you are deciding to create a patch.


I would advise a read here:

ProductCode and UpgradeCode

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

Return to “Common Problems”