How to check if another application is installed

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

How to check if another application is installed

Post by MikeFieger »

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:

Post by MichaelNesmith »

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
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
MikeFieger
Posts: 52
Joined: Thu Jan 26, 2006 9:09 am

Post by MikeFieger »

Thank you!
Post Reply