narsingani
Posts: 23
Joined: Thu Sep 12, 2013 4:59 am

New Registry key Dynamic value

Hi All,

I need some assistance creating a registry key name using the dynamic name. I have a server installer which includes a port number which gets stored in the registry. The name of this key needs to be dynamic according to the given port number at the time of installation. For example if the user uses port 10000 at the time of installation then the registry key name should be 10000. Is this possible?

Any help will be appreciated.

Thank you in advance!

Upendra
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: New Registry key Dynamic value

Hi Upendra,

This is easy, you'll need to create an Enterprise or above project type:
- go to Dialogs page and add an Edit Box control for the port
- go to the Registry page and reference the property attached to the Edit Box control in the value formatted type field

Code: Select all

[YOUR_EDITBOX_PROP]
This way, the value input by the installing user will be written in the registry.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
narsingani
Posts: 23
Joined: Thu Sep 12, 2013 4:59 am

Re: New Registry key Dynamic value

Hi Mihai,

Thanks for your reply. I was away so didn't check any reply on this post till now.
I am exactly doing the way you are referring to. However my question is to change the registry name not the value. I know and have been doing this but it only changes the registry value and not the name. Please refer to the attached screenshot.
Attachments
Port.jpg
Port.jpg (76.66 KiB) Viewed 4002 times
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: New Registry key Dynamic value

Hello,

To achieve this you should rename you registry key like this [YOUR_EDITBOX_PROP]. Just go to "Registry" page, select the desired key , press "F2" and rename it like this [YOUR_EDITBOX_PROP].

If you have any questions let us know.

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

Return to “Building Installers”