We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

buffalonan
Posts: 6
Joined: Thu Jun 08, 2017 9:48 am

Multiple builds with different product codes

Good morning,

My problem is that we have multiple products and they are equal on the installation (only names of folders and parameters change). That is why I unified them into only one installer project with multiple builds. It works using install parameters and components separated by build, but now I am facing the problem of assign a different product code and upgrade code to each build. Is this possible? I see that the /edit command in the command line allows /SetProductCode, which would be a workaround, but I will be glad to do it from the advanced installer GUI.

Thanks and regards,
Ferran
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Multiple builds with different product codes

Hello,

Unfortunately this workflow is not supported using Advanced Installer's GUI, as in the most common scenario, all builds would have the same product code (being the same product). The workaround that you've mentioned is the correct approach.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
buffalonan
Posts: 6
Joined: Thu Jun 08, 2017 9:48 am

Re: Multiple builds with different product codes

Thanks Sorin,

Next problem I found is in the Organization page. Turns out that for each different build the GUID of the components is the same, since it has no distinction per build. Do you know how should I proceed here? Otherwise when installing more than one product registry is mixed up and uninstallation does not work properly

Thanks in advanced,
Ferran
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Multiple builds with different product codes

Hello Ferran,

Unfortunately setting different component GUIDs per each build is not supported.

Your scenario could be implemented with our Custom Templates Projects feature. When creating a new project using a template, the GUID's of the components are automatically changed.
Unfortunately, there is an issue with our Custom Template feature in the latest version Advanced Installer (14.1) but there will be a point release very soon (in a few days) that will address it.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
buffalonan
Posts: 6
Joined: Thu Jun 08, 2017 9:48 am

Re: Multiple builds with different product codes

Hi Sorin,

Unfortunately my whole point was to reduce our project from 8 AIP to 1 parametrized AIP project, so I am not so happy with the project template option. Is not any other way to handle components GUID? or any way to create a property assigned to the GUID? I could not find any command line function or any workaround to be able to automate the process.

Best regards,
Ferran
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Multiple builds with different product codes

Hello,

Unfortunately there is no workaround for your scenario, other then creating a template in a late state of the development of the AIP project and using this template for the other products. Thank you for your understanding.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
buffalonan
Posts: 6
Joined: Thu Jun 08, 2017 9:48 am

Re: Multiple builds with different product codes

Hi Sorin,

No problem! You gave me an idea so I explain it for the audience:

I kept only one project with only one build (just a normal project without builds implemented). This project is going to be the seed, and it has all parameters (folders, searches, evironment, registry....) generalised to several install parameters. Then in my build process i use the command line to duplicate the project:

/edit C:\...\original.aip /DuplicateProject C:\...\duplicated_01.aip

Now I have the same project but with new GUID for the product, upgrade and Components (Finally !)

After that, I use command line as well to set up ProductCode, UpgradeCode, Upgrades and Install parameters of the current build:

/edit C:\...\duplicated_01.aip /SetProperty UpgradeCode={12345678-1234-1234-1234-123456789023}
/edit C:\...\duplicated_01.aip /SetProductCode -langid 1033 -guid {87654321-1234-1234-123456789023}
/edit C:\...\duplicated_01.aip /SetProperty EDITION_FULL="MyProduct_A7.0"
/edit C:\...\duplicated_01.aip /SetProperty EDITION="A7.0"

Afterwards I build it and, in a loop, i do the other 8 installers.

Thanks for your help and regards,
Ferran
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Multiple builds with different product codes

Hello Ferran,

You are always welcome!
Thank you for sharing your workflow.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”