Were the properties persisted during first time installation ? If not, they'd
be blank during maintenance. Ideally, you'd recover the property values in
the early stages of the (re)installation.

To answer your specific question, for the wix only option, you would add the
condition NOT PATCH to the custom action, rather than the components. Check
what effect this has though because a patch will reinstall all components in
the affected feature.
Component conditions aren't reevaluated during maintenance unless the
component is transitive.
You could also use the OptimizeCustomActions element under the patch element
as a more heavy-handed way of preventing any CAs from running. It depends on
what your CAs do.

-----Original Message-----
From: Raymond Booth [mailto:raymond.bo...@gmail.com] 
Sent: 14 August 2012 11:02
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Wix Patching

Hi 

We are working within a constrained environment which defines a set of custom
actions and custom tables for a deployment framework using wix. 

I am looking at creating simple patches for MSIs which will ONLY copy
modified files or new files to servers as some of the MSIs are reasonably
complex and do not warrant a full upgrade for a couple of file changes. 

I have looked at both methods - using "Patch Creation Properties" and also
using the "Purely Wix" methods described in the documentation at
http://wix.sourceforge.net/manual-wix3/patching.htm

The issue I have in both cases is that the patch appears to run the
ExecXmlFile custom action which "injects" properties from a custom table into
our config files and in the patch the properties are blank.  I do not fully
understand this but I suspect it is something to do with the custom actions
in our framework whcih are effectively a black box. 

However, we would be happy to omit this step as all we really need is a way
of copying new or modified files within the patch. 

I have reviewed the documenation and tried various approaches but cannot find
a way to do this successfully as yet. 

Things I have tried or investigated; 

Patch Creation Properties
 - Looked at trying to populate UpgradedFilesToIgnore to see if I could add
the config files to this but could not find a way to do this within the
patch.wxs - not sure if this would suppress the ExecXmlFile action anyway? 
 - Delete files from the admin upgrade target install to try to get them to
be ignored - no success as I think the custom action still runs 

Wix Only
 - In the Patch file only reference a single component (which doesn't include
any util:XmlFile calls) - still runs the custom action
 - In the MSIs added <Condition>NO PATCH</Condition> to the component(s)
which include the util:XmlFile calls 





--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Wix-Patching-tp
7579825.html
Sent from the wix-users mailing list archive at Nabble.com.

-----------------------------------------------------------------------------
-
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to