JaimeSG
Posts: 2
Joined: Mon Oct 28, 2013 6:38 pm

Dynamic Registry

Hi There, i'm just new using this program, and i have to say i liked so far. But i'm having trouble trying to do some things, that unfortunately the guides and how to haven't been able to help me, meaby because i'm not understanding how to do it. So here is the thing.

I need to know if i can create a dynamic registry by selecting the features during the installation.
For example: I have around 11 features that can be selected or no, which each feature represents a letter of the alphabet.
Feature 1 = A
Feature 2 = B
Feature 3 = C
.
.
.
Feature 11= K

Depending on which features are selected must create a Registry containing those letters.
For example if i select Feature 1 and 3 the registry must have AC.

I was reading that you can custom the seleccion dialog, but i couldn't understand the part the check boxes and how associate with the features.

What i want to know if it's possible to do that dynamic registry.
Also if it's possible could some one provide a more detailed guide for the steps to follow?
I'm at your best disposition.

Sincerely yours, Jaime SG.
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Dynamic Registry

Hi Jaime and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

In order to achieve what you want you can use the [ADDLOCAL] property which contains a list of all the features that will be installed, delimited by comma. For this you can follow the steps below:
- go in the Organization page, select each feature and modify the "Identifier" field with the name that you want to be written in the registry
- go in the Registry page and add a new registry value as in the attached image

In this case the registry entry will contain the list of features delimited by comma. If you want to have it without commas, you can copy the [ADDLOCAL] property into another property using the Set installer property predefined custom action, then write a simple custom action that removes the commas contained by the new property and write that property in the registry instead of [ADDLOCAL].

Otherwise, you can let us know so we can give you another workaround which is a little bit more complicated.

Best regards,
Eusebiu
Attachments
Registry Value.png
Registry Value.png (30.41 KiB) Viewed 2570 times
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JaimeSG
Posts: 2
Joined: Mon Oct 28, 2013 6:38 pm

Re: Dynamic Registry

Thank you very much for the help.
Yes i managed to get the [ADDLOCAL] property with the identifiers of each feature.

And In fact i was going to ask you about removing the commas, but you already told me how to do it, and no it's fine with this solution. I really appreciate the help and this guide, I'll check out how to make that custom action.

Again thank you so much for the help.
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Dynamic Registry

You're welcome Jaime. Glad to help.

Just let us know anytime you need help.

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

Return to “Building Installers”