overwrite a registy value only if existing - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

DannyLin
Posts: 7
Joined: Thu Jun 25, 2009 6:55 am

overwrite a registy value only if existing

Hi,

Because diff OS version has it's specific registry key.
During installation, I want to change a registry value only if it's there.

I don't see any conditions i can set in the project definition -> Registry.

Can you please help me how to do

thanks,
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: overwrite a registy value only if existing

Hi Danny,

Simply create a registry search on the search page.
Use the property containing the search result to condition the component to which your registry key belongs to.
To find out which registry key it belongs to, right click your key and select "Go to component".

Our guide contains help on how to create a registry search.

I hope this helps.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
DannyLin
Posts: 7
Joined: Thu Jun 25, 2009 6:55 am

Re: overwrite a registy value only if existing

Hi ,

I know how to add a search criteria.
For example, to check if a registry key exists.

But I don't know how to conditionally overwrite the value according to the search result.
I noticed I can add component into my search, is that what you mean "condition the component".
Also there is "Go to component" in project definition -> registry. But it grays out.

can you guide me the detail steps.

thanks
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: overwrite a registy value only if existing

Hi,

You will need to right click on the registry value, not the registry key. Place all registry values under the same component for easier managing. Components are found on the Organization page. Right clicking the registry value and selecting the "Go to component" will send you to the correct component to which your registry value belongs, on the Organization page.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”