开发者

Launch Condition to Detect Office 2010 Applications

I was trying to create a setup project using VS2开发者_如何学JAVA008.

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)


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


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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜