[wix-users] Custom action at the end of install

Vanniekerk, Tyrel (GE Healthcare) tyrel.vanniekerk at ge.com
Mon Aug 22 09:04:55 PDT 2016


I got an answer (One of the users spent some time helping me out, thanks) that seems to work correctly now.  Using Before InitializeFinalize with a custom action set to ignore the return and execute at commit.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Vanniekerk, Tyrel (GE Healthcare)
Sent: Monday, August 22, 2016 8:46 AM
To: Joel Budreau <joel.budreau at gmail.com>
Cc: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: EXT: [wix-users] Custom action at the end of install

I will do some reading on that, thanks.  I have not been able to get it to work that way, so someone suggested to have it run on the Close button on the exit dialog.  That works, but I don't like doing it that way.



-----Original Message-----

From: Joel Budreau [mailto:joel.budreau at gmail.com] 

Sent: Friday, August 19, 2016 11:12 PM

To: Vanniekerk, Tyrel (GE Healthcare) <tyrel.vanniekerk at ge.com>

Cc: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>

Subject: EXT: Re: [wix-users] Custom action at the end of install



If you want a custom action to be run at the very end of a successful installation I would consider authoring it as a ‘commit’ action to be run at the end of the InstallExecuteSequence. That way it will only run if the installation finishes successfully, and it will also run at the end of a silent install.



- Joel



> On Aug 18, 2016, at 1:14 PM, Vanniekerk, Tyrel (GE Healthcare) <tyrel.vanniekerk at ge.com> wrote:

> 

> Hi,

> 

> I have a WiX installer with custom dialogs.  I want to run an action at the end, but so far I have not had any luck getting it to work.

> 

> 

>    <CustomAction Id="UpdateMuseRemotingConfigFile" BinaryKey="CustomActions.dll" DllEntry="UpdateMuseRemotingConfigFile" Return="check" />

> 

>    <InstallUISequence>

>        <Custom Action="SetInstallFolder" Sequence="1" />

>        <Custom Action="GetIssCertificateList" Sequence="2">NOT Installed</Custom>

>        <Show Dialog="UserExitForm" OnExit="cancel" />

>        <Show Dialog="FatalErrorForm" OnExit="error"><![CDATA[NOT HideFatalErrorForm]]></Show>

>        <Show Dialog="MaintenanceForm" Sequence="999"><![CDATA[Installed <> ""]]></Show>

>        <Show Dialog="ResumeForm" Sequence="998"><![CDATA[Installed="" AND RESUME]]></Show>

>        <Show Dialog="FinishedForm" OnExit="success" />

>        <Show Dialog="WelcomeForm" Sequence="1001"><![CDATA[Installed="" AND NOT RESUME]]></Show>

>        <Custom Action="UpdateRemotingConfigFile" After="FinishedForm">NOT Installed</Custom>

>    </InstallUISequence>

> 

> The custom action in question is the UpdateRemotingConfigFile one.  I also tried InstallFinalize instead of FinishedForm.  With InstallFinalize nothing happens, with FinishedForm I get an error that I should use a different action.

> 

> error LGHT0177: The InstallUISequence table contains an action 'UpdateRemotingConfigFile' that is scheduled to come before or after action 'FinishedForm', which is a special action which only occurs when the installer terminates.  These special actions can be identified by their negative sequence numbers.  Please schedule the action 'UpdateRemotingConfigFile' to come before or after a different action.

> 

> Any ideas?  Not sure what else to try.  I have to add another custom action to run at the end to update the SSL certificate on the HTTP binding, so I really need to have it running after the install is done.

> 

> Thanks,

> Tyrel

> 

> ____________________________________________________________________

> WiX Toolset Users Mailing List provided by FireGiant https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=CwIFaQ&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=oAJIeMTNC3Z6LlnozAjna4bWEZCGLInzcwB6EkZAFeU&m=8jpeiYaHERKP9MYtoQ1ovlc0izygLMoLnt4Txvp0QKU&s=vCgwH-d8mYtlqWF3O_oeAxi5FGrISyTp-ywanmOjfzY&e= 




____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=CwIGaQ&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=oAJIeMTNC3Z6LlnozAjna4bWEZCGLInzcwB6EkZAFeU&m=Ci8voHw7Z4NePam-WVo1r_QFJSanFhdOc_ul4NbLEsw&s=VzZlwNIc9sh8UhhKsCmBm127EcsDV92Umi4iQ8_60As&e= 


More information about the wix-users mailing list