After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 787179 - setup-mingw64.ps1 fails to find Html Help Workshop on my pristine Windows 7 setup
setup-mingw64.ps1 fails to find Html Help Workshop on my pristine Windows 7 s...
Status: RESOLVED OBSOLETE
Product: GnuCash
Classification: Other
Component: Build system
git-master
Other Windows
: Normal minor
: future
Assigned To: gnucash-core-maint
gnucash-core-maint
Depends on:
Blocks:
 
 
Reported: 2017-09-02 16:33 UTC by Geert Janssens
Modified: 2018-06-29 23:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Geert Janssens 2017-09-02 16:33:57 UTC
Running the above script on a fresh Windows 7 installation it produces the following error:
Next we'll install the HTML Help Workshop includes and libraries into our MinGW directory.                                                                                                                                                   
get-item : Cannot find path 'HKCU:\SOFTWARE\Microsoft\HTML Help Workshop' because it does not exist.                                                                                                                                         
At C:\Users\Geert\Downloads\setup-mingw64.ps1:227 char:20                                                                                                                                                                                    
+    $installed_hh = get-item -path "hkcu:\SOFTWARE\Microsoft\HTML Help Workshop"  ...                                                                                                                                                       
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                            
    + CategoryInfo          : ObjectNotFound: (HKCU:\SOFTWARE\...L Help Workshop:String) [Get-Item], ItemNotFoundExcep                                                                                                                       
   tion                                                                                                                                                                                                                                      
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand                                                                                                                                                      
                                                                                                                                                                                                                                             
cp: cannot stat '/include/htmlhelp.h': No such file or directory

This seems to assume HtmlHelp Workshop is installed rather than installing it if missing. The older build system did install it (in the default system location) in case it was missing.
Comment 1 Geert Janssens 2017-09-02 16:50:19 UTC
I have to correct this. An attempt to manually install Html Help Workshop tells me "A newer version is installed already". So apparently it's available on the system, but the script is not finding it propery. I'm adjusting the bug title accordingly.
Comment 2 Geert Janssens 2017-09-02 17:04:29 UTC
Hmm, and rerunning setup_mingw64.ps1 after this manual attempt to install html help workshop successfully passes.

So it looks like
either the script does install html help workshop (I found the lines to do so) but for some reason doesn't create/update the proper registry key. The manual attempt then rectified this.
or it really doesn't install (or at least didn't for me) and my manual installation was required. I don't understand why it would tell me a newer version was already installed though.

I'm not sure yet how I can revert back to a clean system to try and reproduce more carefully.
Comment 3 John Ralls 2017-09-30 21:28:58 UTC
Installing software puts up a UAC box that will eventually time out. The script doesn't handle that very well.
Comment 4 John Ralls 2018-06-29 23:59:04 UTC
GnuCash bug tracking has moved to a new Bugzilla host. The new URL for this bug is https://bugs.gnucash.org/show_bug.cgi?id=787179. Please continue processing the bug there and please update any external references or bookmarks.