Page 1 of 1

Prepopulate Text fields with registry values

Posted: Tue Mar 12, 2024 4:17 pm
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

Re: Prepopulate Text fields with registry values

Posted: Wed Mar 13, 2024 5:59 am
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.

Re: Prepopulate Text fields with registry values

Posted: Wed Mar 13, 2024 10:52 am
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

Re: Prepopulate Text fields with registry values

Posted: Sat Mar 16, 2024 4:08 am
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>