2
之前執行自定義操作基本上我需要驗證某個程序在安裝之前沒有運行。這是通過自定義操作,它設置一個屬性來完成,APPRUNNING
:在產品條件
<CustomAction Id="CheckingAppIsRunning"
BinaryKey="AppIsRunning"
DllEntry="AppIsRunning"/>
<Binary Id="AppIsRunning"
SourceFile="CustomActions.CA.dll" />
但顯示的消息中,APPRUNNING
似乎是空,也就是說,它根本沒有設置(應爲「0」或「1」)。
<Condition Message="Exit all instances of [APPNAME] before installation (APPRUNNING = [APPRUNNING]).">
<![CDATA[APPRUNNING = "0"]]>
</Condition>
<InstallExecuteSequence>
<Custom Action="CheckingAppIsRunning" Before="LaunchConditions" />
</InstallExecuteSequence>
我想在條件檢查時不會執行自定義動作。自定義操作後執行條件檢查的選項有哪些?
謝謝,就是這樣! – 2012-07-26 16:02:35