Hi,

I've been using WiX v2 on XP for a while and I'm moving to WiX v3 on Windows
Vista.  I have the following setup:

Product: Px

Components:
c1
c2
c3

Features:
f1 (c1,c2) - level 1
f2 (c1,c3)  - level 2
f3 (c3) - level 3

At the command line, I use:

$msiexec /i px.msi /qn ADDLOCAL=f3

in order to install f3.  By default f1 is installed if ADDLOCAL is omitted. 
That's good.  However, let's say that I want to install f3 after f1 is
installed on my computer.  What's happening is that f1 is not being removed,
and f3 is being installed.  I'm including my WiX file that I'm using to
prototype this behaviour at the bottom of this message.  To build this file,
do the following:

candle Px.wxs
light Px.wixobj -sice:ICE61

I use -sice:ICE61 to get rid of the warning: " warning LGHT1076 : ICE61:
This product should remove only older versions of itself. No Maximum version
was detected for the current product. (PREVIOUSVERSIONFOUND)"  I do this
because I find myself going back and forth between versions for testing
purposes, I want the product - Px - to be completely uninstalled regardless
of what feature what was previously installed.  Kind of like a Permanent
Major upgrade.  Efficiency is not a priority.

My second question is after installing Px with f1 or f2 or f3, how do I make
that information available in the add/remove section.  Presently, only Px is
showing up.  It would be nice if Px (f3) showed up if I installed Px with
the ADDLOCAL=f3 option to indicate what feature I chose.

Any help or examples would be greatly appreciated.  Here's the WiX file:

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
                <Product Id="0C21DBCF-AFBF-4a8b-ACB5-8A7D0A480EE0" Name="Px"
Language="1033" Version="1.0.0.0" Manufacturer="Acme"
UpgradeCode="3270AA0F-1072-4805-8932-CE0D13348094">
                <Package InstallerVersion="200" Compressed="yes" />

                <Upgrade Id="3270AA0F-1072-4805-8932-CE0D13348094">
                        <UpgradeVersion IncludeMinimum="yes" Minimum="0.0.0.0"
Property="PREVIOUSVERSIONFOUND" />
                </Upgrade>
                        
                <Media Id="1" Cabinet="Px.cab" EmbedCab="yes" />

                <Directory Id="TARGETDIR" Name="SourceDir">
                        <Directory Id="ProgramFilesFolder">
                                <Directory Id="INSTALLLOCATION" Name="Px">

                                        <Component Id="P" 
Guid="E42976CF-B8BB-48b3-8EF6-1349F4B0E3C3">
                                                <File Id="P" Name="P.exe" 
Source="P.exe" DiskId="1" KeyPath="yes" />
                                        </Component>

                                        <Component Id="S" 
Guid="F2F266A6-3772-4e68-AEEA-F37C8B606A89">
                                                <File Id="S" Name="S.dll" 
Source="S.dll" DiskId="1" KeyPath="yes" />
                                        </Component>

                                        <Component Id="C" 
Guid="BDDA2AF6-5DE2-49ff-8F5B-A3C3102DC4EC">
                                                <File Id="C" Name="C.dll" 
Source="C.dll" DiskId="1" KeyPath="yes" />
                                        </Component>
                                        
                                </Directory>
                        </Directory>
                </Directory>

                <Feature Id="PrismClient" Title="PrismClient" Level="1">
                        <ComponentRef Id="P" />
                        <ComponentRef Id="C" />
                </Feature>

                <Feature Id="PrismServer" Title="PrismServer" Level="2">
                        <ComponentRef Id="P" />
                        <ComponentRef Id="S" />
                </Feature>                      
                        
                <Feature Id="Server" Title="Server" Level="3">
                        <ComponentRef Id="S" />
                </Feature>

                <InstallExecuteSequence>
                        <RemoveExistingProducts
After="InstallFinalize"><![CDATA[PREVIOUSVERSIONFOUND]]></RemoveExistingProducts>
                </InstallExecuteSequence>                       

        </Product>
</Wix>


-- 
View this message in context: 
http://www.nabble.com/Full-Uninstall-and-Reinstall-of-Features-tf4394330.html#a12530165
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to