ipollock
Posts: 137
Joined: Wed Aug 31, 2016 10:46 am

Re: Binding check box value of registry entry to checkbox control

Does this solution work on 12.7.2 (we are using this)?
I've tried the solution above with a test version of 13.2.2 and it doesn't appear to work when installaing on 2012 test server and using more than one check box (3).

I've added a copy of my model AIP to this note.
Attachments
Model-Remember Tick Boxes.aip
(26.7 KiB) Downloaded 192 times
Catalin
Posts: 6585
Joined: Wed Jun 13, 2018 7:49 am

Re: Binding check box value of registry entry to checkbox control

Hello,

From what I can see in the .AIP file you provided, the registry entries are to be written in the following location:

Code: Select all

HKLM:\SOFTWARE\[Manufacturer]\[ProductName]
registry.png
registry.png (38.8 KiB) Viewed 2515 times

However, your search is configured to look at the following entry:

Code: Select all

HKLM:\[Manufacturer]\[ProductName]
searchReg.png
searchReg.png (38.68 KiB) Viewed 2515 times

Therefore, I believe the search will not return anything in this scenario.

Could you please reconfigure your searches to be looking at the right registry entry and let me know if that helps?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ipollock
Posts: 137
Joined: Wed Aug 31, 2016 10:46 am

Re: Binding check box value of registry entry to checkbox control

Hi Catalin,
I updated the searches and built again for testing but still , the boxes are always empty during re- install - any other ideas?
Your model works but i can't see any cross reference that may be wrong in my model,

Thanks,
Ian
Catalin
Posts: 6585
Joined: Wed Jun 13, 2018 7:49 am

Re: Binding check box value of registry entry to checkbox control

Hello Ian,

This might happen because the value of the checkbox controls are saved in different properties (in our case, CHECKBOX_STATE).

To make the checkbox have the same value as your search, you can add few "Set property" custom actions that will set the value of your checkbox controls to your search, e.g.:

set the: CHECKBOX_1_PROP
to: [CHECKBOX_STATE_1]

These custom actions should be added after the "Searches" action group in the "Wizard Dialogs Stage".

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”