[wix-users] Weird un-install behavior

jayd page jayd at maximasoftware.co.za
Mon Feb 15 02:32:25 PST 2016

I am using Wix 3.10 I have a scenario whereby in some cases I need to pass
a parameter "MATERIALS" to the installer to install feature "y" instead of
feature "x". I have all of this working as expected.

Bundle.wxs (Burn)

<Variable Name="MATERIALS" bal:Overridable="yes" Type="string" Value="x"/>
<MsiPackage Id="MaxCut" SourceFile="$(var.SolutionDir)\Setup.msi"
         <MsiProperty Name="MATERIALS" Value="[MATERIALS]" />

Product.wxs (Wix)

<Property Id="MATERIALS" Value="x"/>
<Feature Id="xMaterialsFeature" Title="x materials" Level="0"
Display="hidden" AllowAdvertise="no" Absent="allow">
      <ComponentGroupRef Id="xMaterialsFragment"/>
      <Condition Level="1">

<Feature Id="yMaterialsFeature" Title="y materials" Level="0"
Display="hidden" AllowAdvertise="no" Absent="allow">
      <ComponentGroupRef Id="yMaterialsFragment"/>
      <Condition Level="1">

Everything works fine on a normal installation. However I have encountered
some strange behavior when I pass in a value for my MsiProperty;

D:\Bootstrapper\Setup.exe MATERIALS=y

Un-installing and re-installing by running my installer with the parameter
is working as expected but if I un-install through the control panel and
try to re-install the program, the installer runs and completes
immediately. Nothing is installed. Further investigation shows that some
registry entries are left behind when un-installing through the control

Can someone please explain why un-installing through the control panel
causes this behavior? Is there a way to rectify this?


Jayd Page
Skype maxima.jayd
+27 (0) 31 813 5968

More information about the wix-users mailing list