Registrykey with combobox text - Advanced Installer Community
mipiz
Posts: 2
Joined: Tue Sep 06, 2016 10:45 am

Registrykey with combobox text

Hi

I want to create a registrykey with the textvalue of a combobox. So I create under "Registry" my key with the name "ADMINGROUP" and I set the comboboxproperty "ADMINGROUP" to.
After the installation the registry was created but it got the combobox value and not the text.

How can I change this? I ve already set the comobbox attribut "Combo List" to "True"
What I get:
What I get:
Registryvalue.PNG (5.7 KiB) Viewed 2315 times
What I want:
What I want:
Registryvalue2.PNG (5.28 KiB) Viewed 2315 times
Thanks for your help

Mik
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Registrykey with combobox text

Hello Mik and welcome to our forums,

This is the normal Windows Installer behavior. The combo box property is always set to the value of the combo box item selected. To achieve what you want you will have to create a custom action to extract the selected combo box item text and save it into another property.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mipiz
Posts: 2
Joined: Tue Sep 06, 2016 10:45 am

Re: Registrykey with combobox text

Hi Daniel,

Sorry for the late response.

It works like a charm.

Thank you very much for your help!

Best Regards

Mik
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Registrykey with combobox text

You're always welcome Mik.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”