- NSIS Discussion
- Force display of Help File: How To?
Archive: Force display of Help File: How To?
jaschulz
20th October 2003 19:52 UTC
Force display of Help File: How To?
My app requires some fairly detailed set up steps once it has been installed. I have written an HTMLHelp file to help the user through this process, and I would like to guarantee that that help file is opened once the installer finishes. However, all the options I can find in the MUI seem to allow the user of "uncheck" the "show readme" option. How can I force my help file to be displayed after the installer finishes?
JAS
DrO
20th October 2003 20:24 UTC
you'd need to use EnableWindow(check_wnd,0) which will block the checkbox from being changed by the user (will appear grayed out). you'd need to use the system plugin to do it
-daz
Joost Verburg
20th October 2003 20:44 UTC
NSIS has an EnableWindow command, no need to use System.
DrO
20th October 2003 20:47 UTC
oops, i'll read up on the commands a bit more i think ;) thanks for the heads up Joost
-daz
kichik
20th October 2003 21:21 UTC
You can also simply show the readme yourself in the leave function of the finish page. No need to give the user an option that's not really an option.
jaschulz
21st October 2003 19:19 UTC
Yes, that sounds right to me. Another question: is it possible to use ExecShell to open MyHelp.chm at a specific page?
JAS
kichik
21st October 2003 19:24 UTC
Sure, just use it in the pre, show or leave function according to the place you want it to show.
jaschulz
21st October 2003 19:27 UTC
Sorry, I wasn't clear about my question. I was wondering if it was possible to use ExecShell to open MyHelp.chm at one of its pages, i.e. to the "SetUp" entry of the MyHelp TOC.
JAS
Joost Verburg
21st October 2003 19:37 UTC
I don't think you can use ExecShell, but there might be some command line parameters for the MS HTML Help Viewer, you will have to check MSDN.
jaschulz
22nd October 2003 15:29 UTC
In case anyone's still following this thread, the right way to open HTMLHelp to a specific page (via NSIS) is:
Exec "$WINDIR\hh.exe $INSTDIR\MyHelp.chm::/MyPage.html"