[wix-users] Custom action after InstallFiles

John Cooper JoCooper at jackhenry.com
Fri Feb 17 10:02:04 PST 2017


You can also make the case immaterial.  My memory of the precedence is that the operators come first in any event.  So,

<Custom Action="UpdateUrlsAction" Before="InstallFinalize">NOT REMOVE~="All"</Custom>

works for me.  Or, with the parenthesis:

<Custom Action="UpdateUrlsAction" Before="InstallFinalize">NOT (REMOVE~="All")</Custom>

The tilde makes the comparison case immaterial.

--
John Merryweather Cooper
Senior Software Engineer -- Integration Development Group -- Enterprise Notification Service
Jack Henry & Associates, Inc.® | Lenexa, KS  66214 | Office:  913-341-3434x431050
JoCooper at jackhenry.com



-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Harinatha Narisetty
Sent: Thursday, February 16, 2017 9:33 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Custom action after InstallFiles

The e-mail below is from an external source.  Please do not open attachments or click links from an unknown or suspicious origin.

Let me try that

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Hoover, Jacob
Sent: Thursday, February 16, 2017 10:28 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Custom action after InstallFiles

What kind of file are you updating in your CA? You need to be very careful modifying any file Windows Installer deploys, or it will see the modification and assume it's a user file and won't remove it upon uninstall. There are existing CA's for XML files that could be used as a model.

That being said, have you tried:

      <Custom Action="UpdateUrlsAction" Before="InstallFinalize">NOT (REMOVE="ALL")</Custom>

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Harinatha Narisetty
Sent: Thursday, February 16, 2017 5:43 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Custom action after InstallFiles

Let me take that back.. actually it says file not found to update... but I see the file after installation.

      <Custom Action="UpdateUrlsAction" After="InstallFiles">NOT (REMOVE="ALL")</Custom>

Or 
      <Custom Action="UpdateUrlsAction" After="InstallFinalize">NOT (REMOVE="ALL")</Custom>

Or 
?



-----Original Message-----
From: Harinatha Narisetty 
Sent: Thursday, February 16, 2017 6:40 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: RE: Custom action after InstallFiles

Actually it is running and after I update, the setup is overwriting again.. I don't want setup to modify this file. Is the below line correct for what I am trying to do?

      <Custom Action="UpdateUrlsAction" After="InstallFiles">NOT (REMOVE="ALL")</Custom>

Thanks
Hari

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Hoover, Jacob
Sent: Thursday, February 16, 2017 6:07 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Custom action after InstallFiles

Verbose logs will tell you what is going on.  What makes you say the CA isn't being executed?

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Harinatha Narisetty
Sent: Thursday, February 16, 2017 4:57 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] Custom action after InstallFiles

<Binary Id="EnerpriseCustomActions" SourceFile='..\Temp\BABuild\Enerprise.CustomActions.CA.dll'/>
<CustomAction Id="UpdateUrlsAction" Return="check" Execute="deferred" BinaryKey="EnerpriseCustomActions" DllEntry="UpdateUrls"/>



    <InstallExecuteSequence>
      <Custom Action="UpdateUrlsAction" After="InstallFiles">NOT (REMOVE="ALL")</Custom>
    </InstallExecuteSequence>

The custom action is not executed. I want this to be executed after install files.. so that I can find a file and modify.

Am I doing anything wrong here?

Thanks
Hari

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

NOTICE: This electronic mail message and any files transmitted with it are intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.



More information about the wix-users mailing list