frankjin
Posts: 18
Joined: Tue Nov 23, 2010 11:11 pm

Add Registry Key conditionally

Hi Support,

I need to create registry keys (max 5) during the installation, the key names are from the user dialog screen, it makes sense to make a conditional creation of registry key as user may not need all 5 keys. so if the key value from the dialog screen is blank then do not create the registry key. but under the registry page, I cannot see how to add new keys based on conditions.

Thanks
Frank.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Add Registry Key conditionally

Hi Frank,

The solution is very simple, all you need to do is to condition the components attached to the registry entries.
To find the components right click on the registry value/key and select "Go to component". Here you can place a condition using the property attached to the edit box.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”