Prepopulate Text fields with registry values

Common questions about using Actual Installer.
Post Reply
thomasmfields
Posts: 4
Joined: Fri Jun 04, 2021 3:39 pm

Prepopulate Text fields with registry values

Post by thomasmfields »

Hi there,

I'm new to Actual Installer and have an issue I'm not certain how to solve.

During my installation, I need to query the registry for a key (string value) and display it in the UI as the default value for a text field. In the Interface->Additional Information tab, I tick "Enable" and "Custom Field", and enter a Field Name but then I'm not sure how I prepopulate the field with my registry value. Is this possible?

Many thanks
Tom
Leo
Site Admin
Posts: 458
Joined: Fri Jan 22, 2010 12:40 pm

Re: Prepopulate Text fields with registry values

Post by Leo »

Hi and welcome!

Yes, it is possible:
go to the System / Variables page and add a variable:
name the variable <QueryCustom>
and specify the registry details.

More information on how to use variables is described here.
Leo,
Actual Installer Team
https://www.actualinstaller.com
thomasmfields
Posts: 4
Joined: Fri Jun 04, 2021 3:39 pm

Re: Prepopulate Text fields with registry values

Post by thomasmfields »

Hi Leo,

Thanks for your reply. I can't seem to get that to work in version 9.7 (I'm on Trial).

See the image attached for my setup.

I'm expecting the .NETFramework version number in "My Custom Field" but it's empty.

Thanks
Tom
Attachments
installer.png
(40.73 KiB) Not downloaded yet
Leo
Site Admin
Posts: 458
Joined: Fri Jan 22, 2010 12:40 pm

Re: Prepopulate Text fields with registry values

Post by Leo »

Try to use two variables:
1st: name it as e.g. <Var1>
specify the GETMAXREGKEY value for it.

2nd: name it <QueryCustom>
Set empty for Reg Key and Reg Val.
In the Default Value specify the 1st variable name <Var1>
Leo,
Actual Installer Team
https://www.actualinstaller.com
Post Reply