Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launch Condition to Detect Office 2010 Applications

I was trying to create a setup project using VS2008.

Is there anyway to detect if a particular Office 2010 application is installed or not?
(as a prerequisite) .eg: i want to detect if Powerpoint 2010 is installed on client machine.

I was trying to use windows installer search option in lauch condition but unable to find
what is component id of powerpoint 2010?

Are there any more ways to detect the same? (can be programmatic)

like image 989
Amitd Avatar asked Feb 27 '23 08:02

Amitd


2 Answers

The component Id's for PowerPoint 2010 are listed below. You should be able to do an installer search for one of these to determine whether PowerPoint is installed.

{EE8D8E0A-D905-401D-9BC3-0D20156D5E30} - 64-bit PowerPoint 
{E72E0D20-0D63-438B-BC71-92AB9F9E8B54} - 32-bit PowerPoint 

Ed

like image 88
Edward Avatar answered May 01 '23 10:05

Edward


Here's relevant code to check for Office 2010 (specifically Word) using WiX. First we check for the "App Paths" key, then on the file version of the EXE file referenced. You should be able to do something similar in VS2008

    <Property Id="WORDEXE" Secure="yes">
        <RegistrySearch Id="RegSearch_WORDEXE" Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Winword.exe" Type="file">
            <FileSearch Name="WINWORD.EXE" MinVersion="14.0.0.0" />
        </RegistrySearch>
    </Property>
like image 44
saschabeaumont Avatar answered May 01 '23 09:05

saschabeaumont