Detecting an existing COM dll - 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!

ian.infermed
Posts: 2
Joined: Tue Feb 23, 2010 4:10 pm

Detecting an existing COM dll

Is there a way that I can detect whether a particular COM dll is already installed on a target machine, then only install it if it isn't already there?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Detecting an existing COM dll

Hello,

You can try creating a registry search under HKCR if the COM is registered, or a file search on the disk if the com is not registered.
You can check our guide on Search Page to find out more about how to create the searches.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
ian.infermed
Posts: 2
Joined: Tue Feb 23, 2010 4:10 pm

Re: Detecting an existing COM dll

Thats works great, can you suggest how i can use the output from this search to control whether or not a file gets installed please?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Detecting an existing COM dll

Hi Ian,

Let's assume your search stores its result in a property named SEARCH_RESULT.
Locate your file in the Files and Folders page, right click it and select "Go to component" from the context menu.
You will be taken to the component to which your file belongs.
With this component selected, go to the right pane and in the "General" section of this pane you will find the "Condition" field. Depending on this condition, your component (and all resources that belong to it including your file) will be installed or not.
Fill in this field like this:

Code: Select all

SEARCH_RESULT
Thus your file will only install if SEARCH_RESULT has a value (it only has a value when the search was successful)

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

Return to “Common Problems”