create patch - how to extract multilanguage msi - Advanced Installer Community
Jon
Posts: 42
Joined: Tue Jan 14, 2014 4:26 pm

create patch - how to extract multilanguage msi

We have a multi-language installer (English and French). To create a patch, I've read that we need to create one for each language. To to do so, will need to use "/extract" command to extract the msi for each language. I can only get the msi for English (default language) extracted. How to extract msi for other languages?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: create patch - how to extract multilanguage msi

Hi,

Indeed, this is the normal behavior, only the MSI for the original language is extracted. The other languages are displayed only by applying a transform on the original MSI.

However, in order to have the MSI packages for all languages, you can go in the Translations page of your project and select the "Create separate packages and a multilingual package" option from the "Languages" tab.

You can also use the following workaround:
- create the patch for the English language with the "Product must match base database" option unchecked in the "Images" page of the patch project
- open the built MSP package using the Orca editor
- go to "View -> Summary Information" option
- in the "Target" field add the Product Code of the French package after the Product Code available in that field (i.e. {GUID_EN}{GUID_FR})

You can find the Product Code of the French package in the Product Details page, "Produce IDs" tab of the main project

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ischafer
Posts: 8
Joined: Fri Dec 06, 2013 12:03 pm

Re: create patch - how to extract multilanguage msi

Hi,

Thanks for this procedure, I use that now to create a single patch for a multilanguage installer.
Is there no possibility to get the same behavior without using Orca? I am asking because there seem to be options in Advanced Installer concerning Product Code mismatches. But they do not seem to help for multilanguage issues.

Best regards
Iwan
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: create patch - how to extract multilanguage msi

You're welcome Iwan.

I'm afraid that this behavior cannot be implemented without using Orca. However, I added this improvement on our TODO list and it will be available in a future version of Advanced Installer.

The Product Code mismatches option allows you to create patches between two MSIs even if they do not have the same Product Code.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ischafer
Posts: 8
Joined: Fri Dec 06, 2013 12:03 pm

Re: create patch - how to extract multilanguage msi

Hi,

After some research I found a possibility to automate part of this procedure for my application, because I need to build an updated patch daily. Maybe it's useful for other users.

I created a Post-Build Event in my Patch-Project with the following settings:
- Command: C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\MsiInfo.Exe
- Arguments: "[|AI_BUILD_OUTPUT_FILE]" /P {PRODUCT_CODE_EN};{PRODUCT_CODE_DE};{PRODUCT_CODE...}

As you can see, the Windows SDK needs to be installed. Maybe there is a better way using a property to call MsiInfo.exe but for the moment this is good enough for me.

Best regards,
Iwan
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: create patch - how to extract multilanguage msi

Hi Iwan,

Thank you for sharing your solution with us, I'm sure it will help other users in the future.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”