I am setting the OutputName element based on a command line property set during 
the call to MSbuild.

The strange thing is that the error only occurs when upgrading from a "full 
install" to a "subset install".  If the upgrade is done with the same feature 
set, there is no error, and if the upgrade is done from a subset to a full 
install, there are no errors.

_____________________________________
Joe Tilley
FW Murphy
Software Engineer
Office
(918) 317-4130
Email
jtil...@fwmurphy.com



-----Original Message-----
From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] 
Sent: Thursday, August 04, 2011 4:13 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] How to handle conditional features on upgrade

Just on the off-chance.. did you rename any of your msi files ? You get that
error if you do.

-----Original Message-----
From: Joe Tilley [mailto:jtil...@fwmurphy.com] 
Sent: 03 August 2011 21:04
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How to handle conditional features on upgrade

I have an installer that uses property values passed on the command line to
determine which features should be installed.

Example:
    <Feature Id="HardwareDefinitions.Internal" Level="1">
      <ComponentGroupRef Id="GRP_InternalHardware"/>

      <Condition Level="0">
        <![CDATA[Installed OR ALLHARDWARE = 0 AND INTERNALHARDWARE = 0]]>
      </Condition>
    </Feature>


The problem I'm having is during upgrade when the new MSI is trying to remove
the previous installation.  If I'm going from a full install (all features)
to a lesser subset of features, I always get a "network error" saying that it
can't read the old MSI ("A network error occurred while attempting to read
from the file").  This error doesn't occur when I go from a subset of
features to a full install.

I'm guessing this has something to do with the new MSI trying to uninstall
features that haven't been marked for installation in the new install?

I'm always doing a "major upgrade" (package ID, product ID, & version #
change, but upgrade code remains the same).

Any ideas on what would cause the "network error"?  I've tried messing with
RemoveFeatures and MigrateFeatures in my UpgradeVersion element, to no avail.

Here is where I'm doing the upgrade check and remove existing features
operation:

    <Upgrade Id="$(var.UpgradeCode)">
      <UpgradeVersion Property="OLD_VERSION_FOUND"
Maximum="$(var.ProductVersion)" IncludeMaximum="no" OnlyDetect="no"
IgnoreRemoveFailure="yes" />
      <UpgradeVersion Property="NEWER_VERSION_FOUND"
Minimum="$(var.ProductVersion)" IncludeMinimum="no" OnlyDetect="yes" />
    </Upgrade>

    <!--Put the upgrade check in the InstallExecute Sequence-->
    <InstallExecuteSequence>
      <RemoveExistingProducts After="InstallFinalize" />
    </InstallExecuteSequence>

Thanks
_____________________________________

Joe Tilley

FW Murphy

Software Engineer

Office

(918) 317-4130

Email

jtil...@fwmurphy.com







“This message and any attachments may contain FW Murphy information
that is highly confidential, privileged, and exempt from
disclosure.  Any recipient other than the intended recipient is
advised that dissemination, distribution, copying, or other use of
this message is strictly prohibited.  If you have received this
message in error, please notify the sender immediately, plus delete
the message and any backups.”
-----------------------------------------------------------------------------
-
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to