Hi All,

 

I try to add / remove some features depend on several conditions by WiX
directives. I use WixUI_Mondo UI. I've found that dialog VerifyReadyDlg is
always will be shown during install / change / repair.

 

So now I setup addlocal / remove events for one of its buttons.

 

<Publish Dialog="VerifyReadyDlg" Control="Install" Event="AddLocal"
Value="FeatureIMSDesktop.fr_FR"><![CDATA[PRODUCT_LANGUAGE = "fr-FR" AND
&FeatureIMSDesktop = 3]]></Publish>

<Publish Dialog="VerifyReadyDlg" Control="Install" Event="AddLocal"
Value="FeatureIMSDB.fr_FR"><![CDATA[PRODUCT_LANGUAGE = "fr-FR" AND
&FeatureIMSDB = 3]]></Publish>

<Publish Dialog="VerifyReadyDlg" Control="Install" Event="AddLocal"
Value="FeatureIMSLS.fr_FR"><![CDATA[PRODUCT_LANGUAGE = "fr-FR" AND
&FeatureIMSLS = 3]]></Publish>

<Publish Dialog="VerifyReadyDlg" Control="Install" Event="AddLocal"
Value="FeatureIMSRF.fr_FR"><![CDATA[PRODUCT_LANGUAGE = "fr-FR" AND
&FeatureIMSRF = 3]]></Publish>

<Publish Dialog="VerifyReadyDlg" Control="Install" Event="AddLocal"
Value="FeatureIMSBT.fr_FR"><![CDATA[PRODUCT_LANGUAGE = "fr-FR" AND
&FeatureIMSBT = 3]]></Publish>

 

<Publish Dialog="VerifyReadyDlg" Control="Install" Event="Remove"
Value="FeatureIMSDesktop.fr_FR"><![CDATA[NOT (PRODUCT_LANGUAGE = "fr-FR" AND
&FeatureIMSDesktop = 3)]]></Publish>

<Publish Dialog="VerifyReadyDlg" Control="Install" Event="Remove"
Value="FeatureIMSDB.fr_FR"><![CDATA[NOT (PRODUCT_LANGUAGE = "fr-FR" AND
&FeatureIMSDB = 3)]]></Publish>

<Publish Dialog="VerifyReadyDlg" Control="Install" Event="Remove"
Value="FeatureIMSLS.fr_FR"><![CDATA[NOT (PRODUCT_LANGUAGE = "fr-FR" AND
&FeatureIMSLS = 3)]]></Publish>

<Publish Dialog="VerifyReadyDlg" Control="Install" Event="Remove"
Value="FeatureIMSRF.fr_FR"><![CDATA[NOT (PRODUCT_LANGUAGE = "fr-FR" AND
&FeatureIMSRF = 3)]]></Publish>

<Publish Dialog="VerifyReadyDlg" Control="Install" Event="Remove"
Value="FeatureIMSBT.fr_FR"><![CDATA[NOT (PRODUCT_LANGUAGE = "fr-FR" AND
&FeatureIMSBT = 3)]]></Publish>

 

So it works ok for Install, but at repair operation all additional
components were removed.

 

I've found that in different cases a different buttons starts installation
process.

 

At Install case it is Install button.

At Change case it is Change button.

At Repair case it is Repair button.

Also there are InstallNoShield, ChangeNoShield, RepairNoShield buttons. I'm
not sure about its purpose.

 

Does this means that I should duplicate my AddLocal / Remove events for each
of this buttons?  It will be big number of lines, and I don't think it will
be a good solution.

 

Is there most elegant way to implement this? May be I should use
InstallExecuteSequence element and define custom action that will be run
before start installation process.

 

Thanks.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to