How to determine a unique application? - Advanced Installer Community

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!

enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

How to determine a unique application?

hi,

How to determine whether two applications are unique or they are the same? I ask this question because I need to release two versions of my software: one for tester and one for customer. Both of them need the same files and configuration files and everything. But they are different applications in the sense that they can be installed paralleled. For the build process I need to use scripts to update the version number. Currently I am creating two AI files for each versions. I am thinking about consolidating these two files into one, and let the script switch the product name at the runtime . Will this do? Will this still create 2 applications, even though there is only a single AI file?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to determine a unique application?

Hi,
I am thinking about consolidating these two files into one, and let the script switch the product name at the runtime . Will this do?
I'm afraid that this approach cannot generate the packages you need. This is because the two builds will generate two packages which have the same name, version, Product Code etc. Unfortunately, what you need can be done only by using different projects.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

Re: How to determine a unique application?

cosmin wrote:Hi,
I am thinking about consolidating these two files into one, and let the script switch the product name at the runtime . Will this do?
I'm afraid that this approach cannot generate the packages you need. This is because the two builds will generate two packages which have the same name, version, Product Code etc. Unfortunately, what you need can be done only by using different projects.

Regards,
Cosmin
But let's say that I changed the name and version for different package, will that do?

What I mean is let's say there is an AI file, A.aip, when I want to release tester version I set the name to AppTest, and product version to a number, and build it, and when I want to release customer version I set the name to AppCus, and product version to another number, and build it, will these two builds different?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to determine a unique application?

Hi,

Please note that the identity of a package is determined by the Product Code, not by the Product Name. Therefore, you can have two different packages with the same name and the same version, but with different Product Codes.

In order to obtain identical packages with different Product Codes, you can use the "File" -> "Save as Template" menu. This allows you to create a template from an existing project. Every time you will create a project by using this template, all the GUIDs in the project (including Product Code) will be changed (you will obtain an independent package).

If you use multiple builds in a project, the Product Codes of all the builds will be the same. Therefore, these builds cannot be installed on the same machine at the same time.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

Re: How to determine a unique application?

cosmin wrote:Hi,

Please note that the identity of a package is determined by the Product Code, not by the Product Name. Therefore, you can have two different packages with the same name and the same version, but with different Product Codes.

In order to obtain identical packages with different Product Codes, you can use the "File" -> "Save as Template" menu. This allows you to create a template from an existing project. Every time you will create a project by using this template, all the GUIDs in the project (including Product Code) will be changed (you will obtain an independent package).

If you use multiple builds in a project, the Product Codes of all the builds will be the same. Therefore, these builds cannot be installed on the same machine at the same time.

Regards,
Cosmin
I see, but is there anyway to change the product code without changing the AI file?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to determine a unique application?

Hi,
is there anyway to change the product code without changing the AI file?
An Advanced Installer project uses the same Product Code for all the builds in it. Therefore, the Product Code of the generated packages can be changed only after the packages are created (for example by using Orca).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

Re: How to determine a unique application?

cosmin wrote:Hi,
is there anyway to change the product code without changing the AI file?
An Advanced Installer project uses the same Product Code for all the builds in it. Therefore, the Product Code of the generated packages can be changed only after the packages are created (for example by using Orca).

Regards,
Cosmin
I see, but I thought that the product code is actually encoded inside the AIP file, no?
enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

Re: How to determine a unique application?

cosmin wrote:Hi,
is there anyway to change the product code without changing the AI file?
An Advanced Installer project uses the same Product Code for all the builds in it. Therefore, the Product Code of the generated packages can be changed only after the packages are created (for example by using Orca).

Regards,
Cosmin
Whatever it is, I hope that future AI will allow us to build different application through a single AIP file.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to determine a unique application?

Hi,
I thought that the product code is actually encoded inside the AIP file, no?
Yes, the Product Code is specified inside the AIP. However, it is the same for all builds (if it is changed, the modification will be made for all builds).
I hope that future AI will allow us to build different application through a single AIP file.
This feature is already on our TODO list and it will be available in a future version of Advanced Installer.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”