nsis packaging fails because user-guide.chm is missing
Following the win32/64 step-by-step guide, I am able to compile successfully. but I am unable to package the program into an installer.
The build commands complete with no errors, but I can't find the user-guide.chm file in the build tree, and when I try to package, nsis fails because it can't see the file. I've tried forcing a build of the user-guide_chm project, and it executes what looks like docbook compile commands, and says it completes, but there is no .chm file that I can find.
I already verified that I correctly installed asciidoctorj, xsltproc, and docbook-bundle
I re-ran the choco install -y asciidoctorj xsltproc docbook-bundle and it said the bundles were already up-to-date.
this first command runs without error:
msbuild /m /p:Configuration=RelWithDebInfo nsis_package_prep.vcxproj
on second command nsis fails saying the user-guide.chm file is missing
msbuild /m /p:Configuration=RelWithDebInfo nsis_package.vcxproj
SectionEnd
SectionGroupEnd
Section: "Documentation" ->(SecDocumentation)
SetOutPath: "$INSTDIR"
File: "C:\Curtis\wireshark_dev\wsbuild64\docbook\user-guide.chm" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
/oname=outfile one_file_only)
Error in script "wireshark.nsi" on line 1167 -- aborting creation process
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targe
ts(209,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Curtis\wireshark_dev\wsbuild64\nsis_package.vcxproj]
1>Done Building Project "C:\Curtis\wireshark_dev\wsbuild64\nsis_package.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\Curtis\wireshark_dev\wsbuild64\nsis_package.vcxproj" (default target) (1) ->
(CustomBuild target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.tar
gets(209,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Curtis\wireshark_dev\wsbuild64\nsis_package.vcxpro
j]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:02.24
Please execute the following build command and then post the contents of docbuild.txt to a public share, and then post a link to the file back here:
I did some work on my own, looking at the output from the compiler and noticed that user-guide generation was being suppressed because something in the environment was missing. So I studied the logs from the generation of the build folder and found that it said the HTMLHelp tool was missing. There were no instructions for installing HTMLHelp in the windows setup instruction page, but I found a note about it in the tools section of the setup guide. I downloaded the HTMLHelp workbench installer, and ran it. The workbench installer gave me a warning that it was already installed, then said install complete.
Just in case, I tried regenerating the builds and compiling. It all works now.
Don’t know why that HTMLHelp component wasn’t seen when the installer said it was already installed, but the repeated install seems to have fixed whatever pointer had gotten corrupted.
It ...(more)
I have the exact problem. Where can I re-download the HTMLHelp workbench installer? The links at Microsoft are wrong. I don't recall installing HTML Help but it is on my machine.
Try here for the MS download or install the chocolatey package html-help-workshop.
Chocolatey worked great - thanks. There's a note on their site:
UPDATE: The official Microsoft download link for HTML Help Workshop is no longer online. Since version 1.32.1, this package downloads from archive.org.