The msi I am working on needs to send a property value for SERVER_MODE from the command line to launch. However, it seems the condition is not even there because the msi will just install without problems. The log file can't find the property name, which I assume it is not defined. Here is what I did:
<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>