How to not install if another software package installed - 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!

SandyRumble
Posts: 17
Joined: Wed Mar 24, 2010 5:10 pm

How to not install if another software package installed

I've run into a situation where the Microsoft Office 2007 Primary Interop Assemblies (PIA) will not install if the Office 2007 Compatibility Pack is installed (allows office 2003 users to read 2007 documents).

I know the registry key to use to determine if the Compatibility Pack is install. If the key exists the pack is installed, so I want to tell the user there is a conflict in the microsoft tools, and to uninstall the compatiblity pack, install my software, and then reinstall the compatiblity pack. Yes this is very tedious and not the most user friendly thing. I'm hoping the issue will only affect a couple of users, but I have no way of knowing.

Question:
1. How can I test for the existence of the registry key, and if it exists, tell the user how to solve the "known installation issue"?

i'm using advanced installer pro 8

thank you, Sandy
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to not install if another software package installed

Hi Sandy,
How can I test for the existence of the registry key, and if it exists, tell the user how to solve the "known installation issue"?
You can add a search from the Search Page and use the search name public property as a custom launch condition for your installer. You can add the custom launch condition from the Launch Conditions Page, Custom Launch Conditions tab. In the "Description" field you can specify the desired message you want to prompt the user with.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SandyRumble
Posts: 17
Joined: Wed Mar 24, 2010 5:10 pm

Re: How to not install if another software package installed

Some additional questions. I've created the search condition. How do I know what value is returned? I am trying to test for the existence of a key. If the key exists give error message, if the key does not proceed with installation. If the key exists, what value does the RESULT have? or if it doesn't exist, what value does the RESULT have? And then how can I use that in the Custom Launch Condition?

The key itself does not exist on the machine but when I run Test on the custom search I get a message box saying:

Another verion of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.

I'm not displaying this error message, so what is causing it to appear?

thank you,
Sandy
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to not install if another software package installed

Hi Sandy,
Some additional questions. I've created the search condition. How do I know what value is returned? I am trying to test for the existence of a key. If the key exists give error message, if the key does not proceed with installation. If the key exists, what value does the RESULT have? or if it doesn't exist, what value does the RESULT have? And then how can I use that in the Custom Launch Condition?
In this case your launch condition should be:

Code: Select all

NOT YOUR_SEARCH_NAME
In case of the "Registry key exists" the search will be successful if the specified registry key exists( public property value is set to "1" ). If the search is not successful, then the public property will not be set. You can find more information in our user guide.
I'm not displaying this error message, so what is causing it to appear?
This behavior is caused by a bug in Advanced Installer GUI. Thank you for bringing it to our attention. I have discussed the issue with the development team, added it on our TODO list and a fix will be available in future version.
Meanwhile, to get past it, you can uninstall the package built by the project you are currently testing your search from.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”