Change your upgrade order (install upgrade, then remove old), but that
requires that you carefully follow the component rules.

The only other thing I can think of (if you really can't change the upgrade
operation order) is this: you may try forcing the level of the feature
containing your non-upgrading component to 0 during removals that happen due
to upgrades. But I don't know under what circumstances that might break.

-----Original Message-----
From: gapearce [mailto:mr_gapea...@yahoo.com] 
Sent: Monday, October 04, 2010 12:17 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] prevent component removal on major upgrade


Hi,

I have 3 components that get installed initially.  But when I want to
upgrade, I'd like to leave one component alone - it never needs to be
upgraded.  But I do want to upgrade the other two components.

I already can do a successful upgrade, but that removes all of the files
first, then re-installs new stuff.

I'd like to do this still, except for the one component that is ok to stay.

I know how to *not* re-install this component - I change the "level' on the
feature to zero so it won't get re-installed, and the condition for this
looks like the following:

<Condition Level="0">OLDERVERSIONBEINGUPGRADED</Condition>

But I'd like to prevent this one special component from getting deleted on
the Upgrade.

Any advice would be greatly appreciated...

Greg

-- 
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/prevent-compon
ent-removal-on-major-upgrade-tp5600477p5600477.html
Sent from the wix-users mailing list archive at Nabble.com.

----------------------------------------------------------------------------
--
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security 
easier or more difficult to achieve? Read this whitepaper to separate the 
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security 
easier or more difficult to achieve? Read this whitepaper to separate the 
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to