[wix-users] Custom action after InstallFiles

Harinatha Narisetty harinatha.narisetty at us.abb.com
Thu Feb 16 19:33:25 PST 2017


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/



More information about the wix-users mailing list