2013-06-21 213 views
0

執行我有以下的WiX XML文件:安裝自定義操作上卸載

<Binary Id='IISCustomActionBinary' SourceFile='$(var.Setup.CustomActions.TargetDir)$(var.Setup.CustomActions.TargetName).CA.dll' /> 
    <CustomAction Id='IISCustomActionInstall' BinaryKey='IISCustomActionBinary' DllEntry='ConfigureIis' Execute='deferred'/> 
    <CustomAction Id='IISCustomActionUninstall' BinaryKey='IISCustomActionBinary' DllEntry='UnconfigureIis' Execute='deferred' /> 
    <InstallExecuteSequence> 
     <Custom Action='IISCustomActionInstall' Before='InstallFinalize'> 
      NOT INSTALLED 
     </Custom> 
     <Custom Action='IISCustomActionUninstall' Before='InstallFinalize'> 
      (NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL") 
     </Custom> 
    </InstallExecuteSequence> 

執行不僅安裝,而且在卸載時,「IISCustomActionInstall」自定義操作。我做錯了什麼?

回答

3

您應該使用的變量是Installed。如果我沒有弄錯的話,INSTALLED將被Windows Installer識別爲一個單獨的用戶定義變量。

+0

謝謝。我實際上是用小寫字母寫的,但是在編寫自定義動作實現之前已經改變了.... – Antineutrino

相關問題