DrBob
Posts: 17
Joined: Fri Mar 05, 2010 9:54 am

Multiple builds create duplicate entries in Add/remove progr

Hi
We have a proiduct that is available with both German and English resources. I am trying to build two installer files, one for the german market and one for the UK market. Some customers will want to install both German and English on the same machine. I have built the two installers by creating one with all features and then duplicating the build to generate enGB and deDE variants (from which I remove the unwanted features).

The problem is that, if I install the both enGB and then deDE variants, I end up with two identical entries in Add/remove programs. What I had intended is that users would only have one entry in add/remove programs and uninstalling the program would remove both enGB and deDE variants.

I have tried both "Automatically upgrade older product versions" and "Allow side by side installs"

AIP file attached.

Any ideas?
Attachments
CalendarForGrid2.aip
(116.64 KiB) Downloaded 457 times
Bogdan
Posts: 2791
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Multiple builds create duplicate entries in Add/remove p

Hi,
What I had intended is that users would only have one entry in add/remove programs and uninstalling the program would remove both enGB and deDE variants.
I'm afraid this is not possible using two different setup packages. If you want a single entry in Control Panel list of programs it is recommended to use a single setup package for both versions.

For separating the contents installed you can create two major features, one for each language and install them based on the user's options, set from a new custom dialog, or by automatically detecting the
OS language. Here are some articles that could help you:

http://www.advancedinstaller.com/user-g ... ature.html
http://www.advancedinstaller.com/user-g ... ditor.html
http://www.advancedinstaller.com/user-g ... ialog.html

If you have any questions please let us know.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DrBob
Posts: 17
Joined: Fri Mar 05, 2010 9:54 am

Re: Multiple builds create duplicate entries in Add/remove p

Since we ship over 16 languages and each language it about 300Mb it is not feasible to ship a single install. Is the limitaiation the way MSI technology works, or the way AI implements the build process?

When I create installers for the enGB and deDE versions I cant find a way to set different product details for the different buildsand so cant have different text in Add/remove programs (eg "MyApp (English UK)" and "Myapp (German)") . I get the build drop down on Install Parameters, Launch Conditions, Themes and Translations, but not on any other views.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Multiple builds create duplicate entries in Add/remove p

Hello,

To achieve hiding the installing product's entry in the Add/Remove Programs list, you can try the following:
- get the product codes for both languages from the menu bar -> Project -> Options -> Project IDs tab
- from the Search page add an extended search that detects if the other language package is installed on the target machine( Product Version (identify by Product Code) )
- add a "Set Property with Formatted" custom action after the InstallUISequence AppSearch standard action
- it should set the ARPSYSTEMCOMPONENT property to 1 like described in the following article:
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
- set it with "Execute only once if present in both sequence tables" scheduling option
- share the custom action in the InstallExecuteSequence
- condition both custom actions with the name of the search you added previously

I also attached a sample project that demonstrate the above settings:
test.aip
(8.92 KiB) Downloaded 444 times
To uninstall the other language package when uninstalling you can try the following:
- add a similar search like described above
- add its name to the execution condition of the custom action from the following article:
http://www.advancedinstaller.com/user-g ... l-msi.html

Let us know if you have any questions.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”