[wix-users] Uninstaller does not remove 2 of the 3 main features...

Steve Ogilvie SOGILVIE at msn.com
Thu Nov 3 12:24:31 PDT 2016


Hi all

I have a new installer that will install 3 features based on what the user selects in the Bootstrapper (I have 3 checkboxes that determines which feature to install in the MSI)

The 3 features are being installed properly, but on uninstall it is not removing all the features (i.e. it installs all the features but does not remove all the features)

The MSI features are:


<Property Id="DIRECTORY_PATH_CLIENT_TMC" Secure="yes">

      <RegistrySearch Id="Search_DIRECTORY_PATH_CLIENT_TMC"

                      Key='SOFTWARE\TITUS\TMC'

                      Name='InstallPath'

                      Root='HKLM'

                      Type='directory'

                      Win64='no'/>

    </Property>

    <Property Id="DIRECTORY_PATH_CLIENT_TCD" Secure="yes">

      <RegistrySearch Id="Search_DIRECTORY_PATH_CLIENT_TCD"

                      Key='SOFTWARE\TITUS\TCD'

                      Name='InstallPath'

                      Root='HKLM'

                      Type='directory'

                      Win64='no'/>

    </Property>

    <Property Id="DIRECTORY_PATH_CLIENT_TCO" Secure="yes">

      <RegistrySearch Id="Search_DIRECTORY_PATH_CLIENT_TCO"

                      Key='SOFTWARE\TITUS\TCO'

                      Name='InstallPath'

                      Root='HKLM'

                      Type='directory'

                      Win64='no'/>

    </Property>

<Property Id="INSTALLCLIENT1CHECKBOX" Secure="yes" Value="1">
      <RegistrySearch Id="GetFeatureSelectedRegValueForTMC"
                      Root="HKLM"
                      Key="SOFTWARE\TITUS\TMC"
                      Name="FeatureSelected"
                      Type="raw"
                      Win64="no"/>
    </Property>
    <Property Id="INSTALLCLIENT2CHECKBOX" Secure="yes" Value="1">
      <RegistrySearch Id="GetFeatureSelectedRegValueForTCO"
                      Root="HKLM"
                      Key="SOFTWARE\TITUS\TCO"
                      Name="FeatureSelected"
                      Type="raw"
                      Win64="no"/>
    </Property>
    <Property Id="INSTALLCLIENT3CHECKBOX" Secure="yes" Value="1">
      <RegistrySearch Id="GetFeatureSelectedRegValueForTCD"
                      Root="HKLM"
                      Key="SOFTWARE\TITUS\TCD"
                      Name="FeatureSelected"
                      Type="raw"
                      Win64="no"/>
    </Property>

    <Property Id="TITUS_FOUNDPRODUCTPLATFORM" Secure="yes">
      <RegistrySearch Id="Search_TITUS_FOUNDPRODUCTPLATFORM"
                      Key='SOFTWARE\TITUS\PEP'
                      Name='ProductBitness'
                      Root='HKLM'
                      Type='raw'
                      Win64='no'/>
    </Property>


<!-- TMC client -->

    <Feature Id="Feature_TMC"

             Title="TITUS Message Classification Client"

             Description="The TITUS Client software is required on all end user systems."

             Level="0"

             Display="expand"

             ConfigurableDirectory="DIRECTORY_PATH_CLIENT_TMC">

      <ComponentGroupRef Id="ProductComponents_TMC" />

      <ComponentRef Id="Cmp_RemoveDPCDir_TMC"/>

      <Condition Level="1"><![CDATA[INSTALLCLIENT1CHECKBOX=1 AND TITUS_FOUNDPRODUCTPLATFORM="x86"]]></Condition>

    </Feature>



    <Feature Id="Feature_TMCSharedFiles"

             Title="TITUS TMC Common Files"

             Description="The TITUS Client software is required on all end user systems."

             Level="0"

             Display="hidden"

             ConfigurableDirectory="DIRECTORY_PATH_SHARED">

      <ComponentRef Id="cmp_TL_DsoFileHooks"/>

      <ComponentRef Id="cmp_TL_DsoFileHooks_x64"/>

      <Condition Level="1"><![CDATA[INSTALLCLIENT1CHECKBOX=1 AND TITUS_FOUNDPRODUCTPLATFORM="x86"]]></Condition>

    </Feature>



    <!-- TCO client -->

    <Feature Id="Feature_TCO"

             Title="TITUS Classification for Microsoft Office"

             Description="The TITUS Client software is required on all end user systems."

             Level="0"

             Display="expand"

             ConfigurableDirectory="DIRECTORY_PATH_CLIENT_TCO">

      <ComponentGroupRef Id="ProductComponents_TCO" />

      <ComponentRef Id="Cmp_RemoveDPCDir_TCO"/>

      <Condition Level="1"><![CDATA[INSTALLCLIENT2CHECKBOX=1 AND TITUS_FOUNDPRODUCTPLATFORM="x86"]]></Condition>

    </Feature>



    <!-- TCD client -->

    <Feature Id="Feature_TCD"

             Title="TITUS Desktop Classification Client"

             Description="The TITUS Client software is required on all end user systems."

             Level="0"

             Display="expand"

             ConfigurableDirectory="DIRECTORY_PATH_CLIENT_TCD">

      <ComponentGroupRef Id="ProductComponents_TCD"/>

      <ComponentRef Id="Cmp_RemoveDPCDir_TCD"/>

      <ComponentRef Id="cmp_FileWatcherSDF"/>

      <ComponentRef Id="cmp_TitusServices"/>

      <Condition Level="1"><![CDATA[INSTALLCLIENT3CHECKBOX=1 AND NOT VersionNT64]]></Condition>

    </Feature>

I am saving the properties to the registry so on uninstall it should get that info, i.e.
DIRECTORY_PATH_CLIENT_TXX
INSTALLCLIENTXCHECKBOX
TITUS_FOUNDPRODUCTPLATFORM

The uninstalls my product but leaves behind the 2 main first features
Feature_TMC
Feature_TCO

But every other feature is removed...

Is there anything I am missing?

Thanks,

Steve




More information about the wix-users mailing list