I tried to enable a disabled feature in an msp using Wix 3.5 and Windows
Installer 4.5, and ran into two problems.
I created the disabled feature as a placeholder is an msi, and that msi has
already been delivered to customers. The purpose was so that the disabled
feature could be enabled later in an msp, and then installed via a change
install.
In the original MSI, I created the disabled feature as follows:
<Feature Display="hidden" Id="Feature_XYZ" Title="XYZ" Level="0"
AllowAdvertise="yes" ConfigurableDirectory="ABC" Description="XYZ"
InstallDefault="local">
<ComponentGroupRef Id="cg_XYZcomponents" />
</Feature>
Problem #1:
---------------
In a subsequent patch, I tried to enable the feature by changing the Level
attribute to "100" and removing the Display attribute, as show below:
<Feature Id="Feature_ XYZ " Title=" XYZ " Level="100" AllowAdvertise="yes"
ConfigurableDirectory=" ABC" Description="XYZ" InstallDefault="local">
<Condition Level="0"><![CDATA[NOT ((VersionNT = 601) OR (VersionNT64 =
601))]]></Condition>
<ComponentGroupRef Id="cg_ XYZcomponents " />
</Feature>
The problem is that when I try to build the patch, MSIMSP.exe throws an error
indicating that it cannot find one of the component files included in the
"cg_XYZcomponents" component group. The list of components in the component
group never changed.
Does anyone know if there is a way to properly enable this feature in the patch?
Problem #2:
---------------
I tried a different approach to enable the feature by leaving the level at
zero, and then conditionally changing it to 100.
<Feature Id="Feature_ XYZ " Title=" XYZ " Level="0" AllowAdvertise="yes"
ConfigurableDirectory=" ABC" Description="XYZ" InstallDefault="local">
<Condition Level="100"><![CDATA[(VersionNT = 601) OR (VersionNT64 =
601)]]></Condition>
<ComponentGroupRef Id="cg_ XYZcomponents " />
</Feature>
When I did that, the patch was created successfully and I could even
successfully patch the original msi with it. Unfortunately I ran into a big
problem when, while doing a change install, I selected the feature in the
feature tree to be installed. The change install failed, yielding the
following error:
"The file 'xxxx' cannot be installed because the file cannot be found in
cabinet file 'Product.cab'...".
Does anyone know how to get around this problem?
Thanks.
Adam
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users