Detecting Installed Applications
Detecting Installed Applications
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?
How to read registry keys / installed progids?
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.
Can you give me a basic idea of how I would detect if, for example, the PowerPoint.Application ProgId is present?
Thanks.
Re: How to read registry keys / installed progids?
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.
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.
What do I need to do differently? I thought this would work!!
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!!
I figured it out.
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
Who is online
Users browsing this forum: No registered users and 37 guests