wix3.6 - WiX bootstrapper: Uninstall packages in a chain -


 <exepackage id="packageid1" displayname="xxx" compressed="yes"               sourcefile="..\xxx\myexe.exe" vital="yes"               installcommand="parameters exe"               uninstallcommand="parameters exe"/> 

when trigger uninstall action:

this.engine.detect(); this.engine.plan(launchaction.uninstall); this.engine.apply(system.intptr.zero); 

the exepackage not invoked. however, during install, enters exe package right parameters.

am missing here?

you need detectcondition attribute on exepackage element. detectcondition how burn engine determines if package installed on machine or not. without detectcondition engine think package never installed never need uninstalled. since executables different have provide own detectcondition. xxxsearch elements in util namespace helpful detect if executable installed.

note: can see 'plan' in log file , should show packageid1 package being detected 'absent' though installed.


Comments