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>