[wix-users] run a custom action on upgrade and if the feature is selected, run it, problem is it is NOT running :(
Steve Ogilvie
SOGILVIE at msn.com
Tue Feb 21 13:51:03 PST 2017
Sigh,
I am going nuts...
I have a client product installed
I am running a new version as an upgrade
I want to run a custom action if:
1. it is an upgrade
2. the feature is selected
this is a major upgrade:
Here is the feature from the upgrade MSI log:
MSI (s) (40:DC) [16:32:42:155]: Feature: Feature_TMC; Installed: Absent; Request: Local; Action: Local
this is what my custom action looks like:
<CustomAction Id="CA_Set_COPYFILEUPLOG4NET" Property="CA_COPYFILEUPLOG4NET" Value="[CLIENT_SERVICE_PATH]|[DIRECTORY_PATH_CLIENT]|log4net.dll"/>
<CustomAction Id="CA_COPYFILEUPLOG4NET" BinaryKey="BIN_CustomAction" DllEntry="CopyFilesAfterInstall" Impersonate="no" Execute="deferred" Return="ignore"/>
<InstallExecuteSequence>
<Custom Action="CA_Set_COPYFILEUPLOG4NET" After="InstallFiles"><![CDATA[((&Feature_BOB=3) AND NOT(!Feature_BOB=3)) AND WIX_UPGRADE_DETECTED]]></Custom>
<Custom Action="CA_COPYFILEUPLOG4NET" Before="InstallFinalize"><![CDATA[((&Feature_BOB=3) AND NOT(!Feature_BOB=3)) AND WIX_UPGRADE_DETECTED]]></Custom>
However the log file has:
MSI (s) (5C:28) [16:34:10:703]: Skipping action: CA_Set_COPYFILEUPLOG4NET (condition is false)
MSI (s) (5C:28) [16:34:10:906]: Skipping action: CA_COPYFILEUPLOG4NET (condition is false)
What is up?
thanks,
Steve
More information about the wix-users
mailing list