Hibiscus
Posts: 2
Joined: Mon Nov 13, 2017 10:53 am

Modify a registry entry post install

Mon Nov 13, 2017 12:05 pm

Hello All.

Our software requires a registry entry to point to a database, the client side of our software needs a pointer to the server and the database name.

Ideally I could do with a dialogue box on install that the user can amend which would in turn amend the registry entry

Any help would be greatly appreciated

Cheers

Simon

Dan
Posts: 4513
Joined: Wed Apr 24, 2013 3:51 pm

Re: Modify a registry entry post install

Tue Nov 14, 2017 9:44 am

Hello Simon and welcome to the Advanced Installer Forum

You can do what you wish quite easily.

Simply go to the Dialogs page and create a new dialog from the ribbon --> "New Dialog" (RegistryDlg) or select an existing one.
Click on the "Controls Toolbox" that is located on the ribbon as well and from there add a Edit Box. Let's set it's Property Name to DATABASE_PROP_REG.

In order to store the information provided by the user, go to the Registry page. Here you can click on the "New Value" (Value Database)
from the ribbon and the Edit Registry entry dialog will pop up. In the data field insert the [DATABASE_PROP_REG] property. You can also take a look on the Add registry keys and values to your package article with related information for hints and guidance.

I have included a sample project detailing this.

Regards,
Dan
Attachments
Registry storage.rar
(3.08KiB)Downloaded 230 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Hibiscus
Posts: 2
Joined: Mon Nov 13, 2017 10:53 am

Re: Modify a registry entry post install

Tue Nov 14, 2017 5:38 pm

Cheers Dan.

Much appreciated I'll give it a whirl

Cheers

Simon

Dan
Posts: 4513
Joined: Wed Apr 24, 2013 3:51 pm

Re: Modify a registry entry post install

Tue Nov 21, 2017 2:05 pm

You're welcome Simon,

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”