Archive: Navigating a section from the .chm file in CreateShortcut


Navigating a section from the .chm file in CreateShortcut
Hi all,
I am trying to navigate lets say "Section: 1 Introduction" from the help file(.chm).I searced in the web but not found any reference.

CreateShortcut "Path\a.l
Can anybody help me in this regard?

Regards
Pradeep


CHM (Compiled Help Modules) files are used in the Microsoft HTML Help system. You can use the hh.exe program (distributed with HTML Help) to open a CHM file at a particular topic. Here is a simple batch file that opens the NSIS User Guide at the "2.2 Script Files" page:

hh.exe "mk:@MSITStore:C:/Program Files/NSIS/NSIS.chm::/Section2.2.html#2.2"
Google can find more information for you, e.g. this page describes some command-line options for hh.exe:
http://www.help-info.de/en/Help_Info...hh_command.htm

Or just read the manual online:

http://nsis.sourceforge.net/Docs/Contents.html


makensis.nsi contains a full example.

Function ShowReleaseNotes
${If} ${FileExists} $WINDIR\hh.exe
StrCpy $0 $WINDIR\hh.exe
Exec '"$0" mk:@MSITStore:$INSTDIR\NSIS.chm::/SectionF.1.html'
${Else}
SearchPath $0 hh.exe
${If} ${FileExists} $0
Exec '"$0" mk:@MSITStore:$INSTDIR\NSIS.chm::/SectionF.1.html'
${Else}
ExecShell "open" "http://nsis.sourceforge.net/Docs/AppendixF.html#F.1"
${EndIf}
${EndIf}
FunctionEnd