I'm creating a Wix installer and I want to show a README note (stored in a .txt file) before the user clicks the Finish button.
I tried using the WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT property to allow users to open the README file after installation by checking a box, but even when I check the box, the file doesn't open.
Here’s what I’ve added to my Wix project:
<!-- Custom Action to launch readme.txt with Notepad -->
<CustomAction Id="LaunchReadme" Directory="x64Folder" ExeCommand="notepad.exe readme.txt" Return="asyncNoWait" Execute="deferred" Impersonate="yes" />
<!-- Trigger the custom action if checkbox is checked -->
<Custom Action="LaunchReadme" Before="InstallFinalize" Condition="WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 AND NOT Installed" />
I also set this property to show the checkbox on the exit dialog:
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="View README file" />
Even with this setup, checking the box doesn't launch the file. Am I missing something in the sequence or configuration?