I have a Bootstrapper that will install an MSI package. But when uninstalling the Bootstrapper, it won't uninstall the MSI which was previously installed by Bootstrapper.
How can I uninstall the MSI package along with uninstalling the bootstrapper ? Following is what I do to install the MSI package in Bootstrapper. How to enhance this code to uninstall this MSI package at uninstall ?
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Bundle Name="Name" Version="1.0.0.0" Manufacturer="MyCompany" UpgradeCode="00000000-0000-0000-0000-000000000000" DisableModify="yes" DisableRepair="yes" >
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense">
<bal:WixStandardBootstrapperApplication
LicenseUrl=""
ThemeFile=".\Theme\RtfTheme.xml"
LocalizationFile=".\Theme\RtfTheme.wxl"
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension" />
<Payload SourceFile=".\Images\Logo.gif" />
</BootstrapperApplicationRef>
<Chain>
<PackageGroupRef Id="MyMSI"/>
</Chain>
</Bundle>
<Fragment>
<PackageGroup Id="MyMSI">
<MsiPackage Id="MyMSI"
DisplayName="My applicaton"
DisplayInternalUI="yes"
Compressed="no"
Visible="yes"
InstallSize="549"
Cache="yes"
Vital="yes"
Permanent="no"
SourceFile="$(var.MyAppllicationWIX_MSI.TargetPath)"/>
</PackageGroup>
</Fragment>
</Wix>