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
[email protected]
“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® 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users