What are you trying to do in change mode? Detect whenever the user adds Feature_XYZ? Or detect anytime it is either added or stays?
It's hard to write conditions when you don't know the scenario. -----Original Message----- From: little.forest [mailto:little.for...@ymail.com] Sent: Thursday, December 09, 2010 10:25 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to write conditions for 'Change' mode Hi all, We have a customaction: <Custom Action="DoDllRegistration" Before="InstallFinalize" >(Not Installed) AND (&Feature_XYZ = 3)</Custom> This works in initial install, but not in 'Change' mode. >From here(http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/InstallMo de-Conditions-DON-T-work-td707286.html ), I learnt that "there is no such standard property", and "See "Examples of Conditional Statement Syntax" for how you should do it. " So I googled and found this: http://wix.mindcapers.com/wiki/Conditional_Inner_Text. <!-- Run on initial install, repair and minor upgrade --> <Condition Message='Blah'>COMPANYDIR AND NOT REMOVE ~= "ALL"</Condition> Even if it doesn't say 'Change' mode, I still gave it a try. This statement seems working in 'Change' mode: <Custom Action="DoDllRegistration" Before="InstallFinalize" >(NOT REMOVE ~= "ALL") AND (&Feature_XYZ = 3)</Custom> So the question is, is this the right thing to do? Is there any potential risk that could blow our current stuff? How to write the correct condition for initial install and 'Change' mode? Thanks! ---------------------------------------------------------------------------- -- _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users