2013-05-17 48 views
1

我的填充性能与安装的Office版本检查第三方软件版本安装

<Property Id="VISIOVERSION"> 
       <RegistrySearch Id="VisioVersion14x64" 
        Root="HKLM" 
        Key="SOFTWARE\Microsoft\Office\14.0\Visio" 
        Name="InstalledVersion" 
        Type="raw" Win64="yes" /> 
</Property> 

我如何比较这版采用了最低版本要求?版本看起来像14.0.5432.3

回答

2

如果办公室版本14.0.5432.3是所需的最低版本,请尝试此条件。

<Condition Message="Minimum office version 14.0.5432.3 is required to continue the installation."> 
    (VISIOVERSION >= "14.0.5432.3") 
</Condition> 
0

A LaunchCondition应该在这里帮忙。检查先决条件版本是否足够高是一个简单的>=操作。但是,始终在您的LaunchConditions中包含Installed以确保在先决条件被移除的情况下可以卸载软件。一个完整的例子:

<Condition Message="Viso v14.0.5432.3 or newer is required before installing [ProductName]."> 
    Installed OR (VISIOVERSION >= "14.0.5432.3") 
</Condition>