Detecting Installed Applications

For all your non-technical questions.
mtciamndn

Detecting Installed Applications

Postby mtciamndn » Mon Jul 25, 2005 3:05 pm

In my MSI, I need to detect whether the user's computer has various applications or dlls installed (such as QuickTime or Flash or whatever). Is this something that InstallAware can handle?

Guest

Postby Guest » Tue Jul 26, 2005 12:28 pm

Absolutely. You can read registry keys, files, installed product guids, and literally everything else you may need to do for detecting an installed product.

mtciamndn

How to read registry keys / installed progids?

Postby mtciamndn » Mon Aug 08, 2005 11:54 am

I installed the evaluation version of InstallAware Enterprise 2005, but I can't find anywhere in the "Application Requirements" or "Registry" sections of the project where I can read existing registry values or check for installed ProgIds.

Can you give me a basic idea of how I would detect if, for example, the PowerPoint.Application ProgId is present?

Thanks.

Guest

Re: How to read registry keys / installed progids?

Postby Guest » Mon Aug 08, 2005 12:23 pm

mtciamndn wrote:I installed the evaluation version of InstallAware Enterprise 2005, but I can't find anywhere in the "Application Requirements" or "Registry" sections of the project where I can read existing registry values or check for installed ProgIds.

Can you give me a basic idea of how I would detect if, for example, the PowerPoint.Application ProgId is present?

Thanks.


Let me clarify a bit:

Suppose I want to check to see if the registry key [HKEY_CLASSES_ROOT\\PowerPoint.Application] exists. How would I do that?

Thanks.

Guest

Postby Guest » Mon Aug 08, 2005 1:10 pm

I though I had figured it out on my own... but it's still not working. I put the following code toward the beginning of the script, right after where the script checks the browser version.

Code: Select all

// Get an empty string for comparison
Set Variable EMPTYSTRING to
Read Registry Key HKCR\\PowerPoint.Application\\ into CHECKPPT
if Variable CHECKPPT Equals EMPTYSTRING
  MessageBox: $TITLE$ Setup Error, This product requries Microsoft PowerPoint to be installed. Please install it and try again.
  Terminate Installation
end


What do I need to do differently? I thought this would work!!

sinan
Site Admin
Posts: 1020
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Mon Aug 08, 2005 1:13 pm

It should. Try pasting your actual code so I can see what you may be doing wrong.

Guest

I figured it out.

Postby Guest » Mon Aug 08, 2005 2:00 pm

I figured out how to make it work. It just seems a little counterintuitive to just leave out the "Compare With" field to compare against an empty string.. especially with the way it looks in the code view.

Code: Select all

Read Registry Key HKCR\\PowerPoint.Application\\ into CHECKPPT
if Variable CHECKPPT Equals
     MessageBox: $TITLE$ Setup Error, This product requires Microsoft Excel to be installed. Please install it and try again.
     Terminate Installation
end


Return to “Non-Technical”

Who is online

Users browsing this forum: No registered users and 37 guests