How to check if another application is installed

Got a problem you cannot solve? Try here.
MikeFieger
Posts: 52
Joined: Thu Jan 26, 2006 9:09 am

How to check if another application is installed

Postby MikeFieger » Thu Mar 30, 2006 3:46 am

Hi!

I am currently writing the Installer for our program 'B' that is a kind of add-on to our program 'A'.

So I want to check if program 'A' is installed before installing 'B'.

How can I check this?
Program 'A' is not creating registry entries, but I know its Product-Code.
The installer for 'A' can hardly be enhanced to writing registry entries as it is already shipped to our customers.

I also would need to find out the $TARGETDIR$ of 'A' because 'B' has to be installed in the same dir without asking the user again.

Can this be accomplished?

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Thu Mar 30, 2006 11:26 am

First is easy - use the Is MSI Setup Installed command. This works with the GUID that you already know, so its great way to do it.

Second - this will be trickier. You have to know some registry key, some product file, some way to track down a change made by the product. You can try Find All Files, Read Registry, etc. from that point onwards...

...but there's got to be a starting point!
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

MikeFieger
Posts: 52
Joined: Thu Jan 26, 2006 9:09 am

Postby MikeFieger » Mon Apr 03, 2006 11:29 am

Thank you!


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 184 guests