NO

Author Topic: TLWHView alpha  (Read 6044 times)

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
TLWHView alpha
« on: December 10, 2017, 11:43:32 PM »
TLWHView is a Windows Help Viewer (HV2).

Usage:
 Create folder like C:\temp\MSDN\
 Download help cabs with URLDownloadToFile.exe to folder C:\temp\MSDN\
 Download help cabs with DownloadCabs.exe to folder C:\temp\MSDN\
 Unpack cabs with UnpackCabs.exe to folder C:\temp\MSDN\msh
 Index .mshc files with WHelpIdxCreate.exe msh\
 Modify TLWHView[64].ini lines
Path=C:\temp\MSDN\msh\
PathIdx=C:\temp\MSDN\TLWHView

After that viewer might work, as it needs indexes for F1 keywords.
It is not a general viewer for help files.

Program uses:
 BrowserApp to view html
 TinyCDB for indexes
 miniz for zip handling

Indexing program come with source, so someone can clean code, like miniz unused code.

EDIT 2017-12-12: TLWHViewPrjBin_a4.zip, PathIdx for location for index files.
New option PathIdx in TLWHView.ini/TLWHView64.ini
Code: [Select]
[mshc]
Path=C:\temp\MSDN\msh\
PathIdx=C:\temp\MSDN\TLWHView
notice that basename for index files, in example TLWHView

EDIT 2017-12-17: TLWHViewPrjBin_a7.zip speed optimized version.
Code: [Select]
@REM DoIt.cmd
URLDownloadToFile.exe
UnpackCabs.exe
WHelpIdxCreate.exe "%~dp0msh\"
pause

Test.cmd
Code: [Select]
@REM Test.cmd
@ECHO [mshc] >TLWHView.ini
@ECHO Path=%~dp0msh >>TLWHView.ini
@ECHO PathIdx=%~dp0TLWHView >>TLWHView.ini
TLWHView.exe /Sleep
pause

EDIT 2017-12-19: New downloader in WHelpTools.zip.
EDIT 2017-12-29: TLWHViewPrjBin_a9.zip
EDIT 2018-01-12: TLWHViewPrjBin_a10.zip fix for WHelpIndexCreate.
EDIT 2018-10-07: TLWHView-2018-10-07_bin.zip fix some UTF8 issues.
« Last Edit: November 16, 2018, 05:17:56 PM by TimoVJL »
May the source be with you

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2096
Re: TLWHView alpha
« Reply #1 on: December 11, 2017, 11:47:18 AM »
Great  :)
The only point to handle better is how add search for helps (not handwritten list) and search for updates  ;)
« Last Edit: December 11, 2017, 11:48:50 AM by frankie »
It is better to be hated for what you are than to be loved for what you are not. - Andre Gide

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: TLWHView alpha
« Reply #2 on: December 11, 2017, 01:07:38 PM »
Viewer use commandline option / for F1 keyword to search using index file.
For example /MessageBox locates info for it.

For my tests i start viewer with index files and after that i use F1 in poide.

I haven't decided where is the best place for index-files :-\
Perhaps an option in ini-file  :-\

EDIT: WHelpIdxSQLite3.zip , an example for creating SQLite3 database from keywords.
« Last Edit: March 25, 2018, 01:10:20 PM by TimoVJL »
May the source be with you

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2096
Re: TLWHView alpha
« Reply #3 on: December 11, 2017, 01:18:48 PM »
Timo I meant how get the list of available help files from MS servers (the list that you put in the file "URLDownloadToFile.ini")..
When you open MS HlpView on the manage contents tab, it shows all help books downloaded and those availeble on MS servers.
It is better to be hated for what you are than to be loved for what you are not. - Andre Gide

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2096
Re: TLWHView alpha
« Reply #4 on: December 11, 2017, 05:24:06 PM »
Found  :).
Accessing the catalogs base https://services.mtps.microsoft.com/ServiceAPI/catalogs/ you'll get a list of available catalogs and related links embedded in <href>.
Following them you'll get a sub-index with all available locals. Each local will download the corresponding language XML contents file. I.e. this is the catalogs list for DEV15 under en-us local.
« Last Edit: December 11, 2017, 06:06:46 PM by frankie »
It is better to be hated for what you are than to be loved for what you are not. - Andre Gide

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: TLWHView alpha
« Reply #5 on: December 12, 2017, 11:47:48 AM »
Thanks.

From older dev14 someone can load help in some other languages too.
« Last Edit: January 03, 2018, 10:21:43 AM by TimoVJL »
May the source be with you