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!

ml123
Posts: 21
Joined: Mon Jun 09, 2014 9:35 pm

Conditional Registry based on Office version

Hi,

I need to add a registry key during installation only if the PC has an Office version 2010 and up.
Is it possible? How can that be done?

Thanks!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Conditional Registry based on Office version

Hello,

Yes, this can be done. All you have to do is to perform a search for the installed Office version and, then use the search result to condition the component of your registry value.

For instance, you can create a project configured like this:
1. go to "Search" page and using the "Add/Remove Predefined Search..." context menu option add our "Microsoft Office 2010 installation path" and "Microsoft Office 2013 installation path" predefined searches; the search results will be saved in their associated properties which actually are their names (i.e. "OFFICE_2010_PATH" and "OFFICE_2013_PATH"); if the searches fail their associated properties won't be set (will be left empty)
2. go to "Registry" page and add your registry value; from its context menu choose "Go To Component" option
3. in "Organization" page add in the "Condition" field of the selected component an expression like this:

Code: Select all

OFFICE_2010_PATH OR OFFICE_2013_PATH
4. build and test the installation

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ml123
Posts: 21
Joined: Mon Jun 09, 2014 9:35 pm

Re: Conditional Registry based on Office version

Works like a charm!

Thanks!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Conditional Registry based on Office version

You're always welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”