Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i add a button to wix installer finish dialog box

Tags:

wix

I am currently using WixUI_Minimal dialog set, So, just like optional text (CA_Set_WIXUI_EXITDIALOGOPTIONALTEXT) can we add a button to the finish or exit dialog box on success scenario? I want to open a pdf file on the button click action.

Below is the code of how i am adding a custom text on finish dialog:

<UIRef Id="WixUI_Minimal" />
    <CustomAction Id="CA_Set_WIXUI_EXITDIALOGOPTIONALTEXT" Property="WIXUI_EXITDIALOGOPTIONALTEXT" Value="Thank you for installing [ProductName]."/>
    <InstallUISequence>
      <Custom Action="CA_Set_WIXUI_EXITDIALOGOPTIONALTEXT" After="FindRelatedProducts">NOT Installed</Custom>
    </InstallUISequence>
like image 473
KhanStan99 Avatar asked Dec 14 '25 21:12

KhanStan99


1 Answers

You can have a look at this sample: https://github.com/glytzhkof/WiXOpenLogFile

It will show a check box that you can use to open the MSI log file. The MsiLogging property defined in the source file means that the log file will always be created. If you remove it the check box in the last dialog will be hidden (unless the log is still created by policy).

Here are a couple of other samples:

  • Custom Dialog Basics: https://github.com/glytzhkof/WiXCustomDialog - this sample shows the basic of customizing WiX dialogs. You base yourself off an existing WiX default dialog set and then extend it as necessary. This sample is very basic.
  • Experimental Dialog: https://github.com/glytzhkof/WiXViewLogExperiment - this little experiment uses a spawned dialog to show "something" at the end of the setup. Not too successful, but at least functional for testing and further experimentation. It is essentially an effort to prevent the update problems of normal MSI dialogs.

Links:

  • On WiX dialogs and MSI GUI
  • Injecting dialogs in WiX dialog sets
like image 87
Stein Åsmul Avatar answered Dec 16 '25 23:12

Stein Åsmul



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!