4

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)

Alexis Pigeon
  • 7,423
  • 11
  • 39
  • 44
Amitd
  • 4,769
  • 8
  • 56
  • 82

2 Answers2

5

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

Edward
  • 1,043
  • 10
  • 24
  • Here the id values for Word 2010: x32 `019C826E-445A-4649-A5B0-0BF08FCC4EEE`, x64 `C0AC079D-A84B-4CBD-8DBA-F1BB44146899` – Dirk Vollmar Apr 08 '11 at 15:40
3

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>
saschabeaumont
  • 22,080
  • 4
  • 63
  • 85
  • Can registry and file search be done at same time?using value found in registry search as input to file search?? – Amitd Mar 29 '10 at 08:19
  • Yes, thats exactly what I'm doing in the above example. Registry value is read looking for a file, then on that file I only match with a minversion and only if both Registry and File match does the property get set. – saschabeaumont Mar 29 '10 at 21:27
  • Any equivalent for purely VS2008 setup project but not WIX. – Amitd Mar 30 '10 at 12:26