wpf - Unable to uninstall with custom WiX installer -
i've created custom wix burn installer using managedbootstrapperapplicationhost
wpf
frontend (using wix 3.9).
the installation of msi works correctly. use mbootstrapperapplication.engine.detect();
determine if msi package present or not. if is, follow flow similar of installation, in order uninstall:
mbootstrapperapplication.engine.plan(launchaction.uninstall);
once it's in plancomplete
event , status == 0
, call mbootstrapperapplication.engine.apply(system.intptr.zero);
, applycomplete
event status == 0
.
unfortunately though, nothing seems have happened @ point.
i'm hooked executemsimessage
, has no messages coming through. when executebegin
is fired, packagecount
0, believe should 1.
i can post code if necessary. wxs file looks this:
<?xml version="1.0" encoding="utf-8"?> <wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/utilextension" xmlns:bal="http://schemas.microsoft.com/wix/balextension" xmlns:netfx="http://schemas.microsoft.com/wix/netfxextension"> <bundle name="custominstallbootstrapper" version="1.0.0.0" manufacturer="square enix ltd." upgradecode="33ca185d-083b-4d45-a0ae-693c2e09c5f0"> <bootstrapperapplicationref id="managedbootstrapperapplicationhost"> <payload sourcefile="d:\project\custominstallbootstrapper\bootstrappercore.config"/> <payload sourcefile="d:\project\custominstallbootstrapper\custominstallbootstrapper.dll"/> </bootstrapperapplicationref> <wixvariable id="wixmbaprereqpackageid" value="ignore" /> <wixvariable id="wixmbaprereqlicenseurl" value="ignore" /> <chain> <packagegroupref id="netfx451redist"/> <msipackage id="launchermsi" sourcefile="d:\project\launcher.msi" cache="yes" visible="no"> </msipackage> </chain> </bundle> </wix>
if run msi on own, can install , uninstall without issues.
Comments
Post a Comment