Wix: How to run the help file after installation? (WIXUI_EXITDIALOGOPTIONALCHECKBOX)

I know about WIXUI_EXITDIALOGOPTIONALCHECKBOX and WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT.

As I understand it, these things can be used to trigger a custom action.
The examples I saw start an EXE or trigger a custom action in code.

How can I run a .CHM file if the checkbox is checked?

If I simply specify the chm file as FileKey, as shown below, it does not work. I think this approach only works for EXE files.

    <CustomAction Id="LaunchHelp"
                  FileKey="chmfile"
                  ExeCommand=""
                  Impersonate="yes"
                  Return="ignore"
                  />

Thanks to Sasha for the answer ... This worked for me:

<CustomAction Id="LaunchHelp"
              Directory="INSTALLDIR"
              ExeCommand='[WindowsFolder]hh.exe MyHelpFile.chm'
              Execute="immediate"
              Return="asyncNoWait" />
+3
source share
1 answer

hh.exe CHM , CHM . (hh.exe - , .CHM)

. HTML HTML.

EDIT: hh.exe Windows. , , . (Win2k Win7 2008 R2)

+3

Source: https://habr.com/ru/post/1723814/


All Articles