Peter
Posts: 17
Joined: Thu Dec 10, 2015 11:52 am

[solved] Updating registry path based on property

[Sorry for my english, I come from Germany]

Hi,
I have the following problem and hope you can help me.

I have created an Enterprise-project. This will install an extension for an other Software which can be installed in different language-versions.
I've created a new Dialog before the "PrepareDlg" where the User can choose which Version of the Base-product is installed. There is a simple ComboBox which changes the Property "BaseLang". The Default value of this Property is "de_DE". That runs perfectly and based on this Property will be also the Application Folder changed.

But now begins the Problem:
I have to set some registry-entries. Depending on the Base-product there are different registry-Key where I have to create some Sub-Key and Entries.
The existing structure can be:
HK_LM\SOFTWARE\xyz\Base-product\de_DE
HK_LM\SOFTWARE\xyz\Base-product\en_US
HK_LM\SOFTWARE\xyz\Base-product\vi_VN
HK_LM\SOFTWARE\xyz\Base-product\...

The Key like "de_DE" is represented by my "BaseLang" Property.
Here is a Screenshot how I've configured this in my Advanced-Installer Project
Image
However, always my Sub-Keys is beeing installed under the Key HK_LM\SOFTWARE\xyz\Base-product\de_DE, even if I changed this property during the Installations-Process to "en_US".
The fact that the works I can see to it that it works for the application path.

Why doesn't the Registry works with the updated Property?

I hope you can understand my issue and can help me.

Thank you,
Peter
Last edited by Peter on Mon Dec 14, 2015 12:47 pm, edited 1 time in total.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Updating registry path based on property

Hi Peter and welcome to Advanced Installer forums.

I'm not sure why you encounter this behavior. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com, so we can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Peter
Posts: 17
Joined: Thu Dec 10, 2015 11:52 am

Re: Updating registry path based on property

Hi Eusebiu,

thanks for your reply. Just now I've sent the AIP and the verbose log to your Support.
I hope there will be a solution.

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

Re: Updating registry path based on property

Hi Peter,

The problem appear because you use a private property (contains lower-case letters) to store the chosen language, but if the value of this property is changed on dialogs (as in your scenario), it will not be passed to the install sequence. So, in order to overcome this problem you need to use a public property (contains only upper-case letters), instead.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Peter
Posts: 17
Joined: Thu Dec 10, 2015 11:52 am

Re: Updating registry path based on property

Hi Eusebiu,

many thanks to you.
I've changed my Property from [Laenderkennung] to [LANG_CODE] and now it seems to be a public property.
It works!

Greetings,
Peter
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Updating registry path based on property

You're welcome Peter. I'm glad you got this working.

Just let us know anytime you encounter a problem.

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

Return to “Building Installers”