0
我正在使用的msi需要从命令行发送SERVER_MODE的属性值才能启动。但是,似乎情况并非如此,因为msi只会在没有问题的情况下安装。日志文件找不到属性名称,我认为它没有定义。以下是我所做的:Wix条件不会阻止安装msi
<Property Id="SERVER_MODE2" Secure="yes">
<CustomAction Id="CheckForDashboardProperty" Error="!(loc.LaunchFromDashboard)" />
<InstallExecuteSequence>
<Custom Action="CheckForDashboardProperty" Before="LaunchConditions">Not SERVER_MODE2 And Not Installed</Custom>
</InstallExecuteSequence>
<InstallUISequence>
<Custom Action="CheckForDashboardProperty" Before="LaunchConditions">Not SERVER_MODE2 And Not Installed</Custom>
</InstallUISequence>