htmlhelp.sh 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/sh
  2. #
  3. # Copyright (C) by Daniel Molkentin <danimo@owncloud.com>
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful, but
  11. # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  12. # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  13. # for more details.
  14. #
  15. WINEPREFIX=${WINEPREFIX:=$HOME/.wine}
  16. test -d "$WINEPREFIX" || wineprefixcreate
  17. # Setup the registry
  18. wine regedit htmlhelp.reg
  19. # Install HTML Help Workshop
  20. wget 'http://go.microsoft.com/fwlink/?LinkId=14188' -O htmlhelp.exe
  21. wine htmlhelp.exe
  22. # Install ITSS.DLL
  23. cabextract -F hhupd.exe htmlhelp.exe
  24. cabextract -F itircl.dll hhupd.exe
  25. cabextract -F itss.dll hhupd.exe
  26. cp -a itircl.dll "$WINEPREFIX/drive_c/windows/system32/"
  27. cp -a itss.dll "$WINEPREFIX/drive_c/windows/system32/"
  28. wine regsvr32 /s 'C:\WINDOWS\SYSTEM32\itircl.dll'
  29. wine regsvr32 /s 'C:\WINDOWS\SYSTEM32\itss.dll'
  30. # Install MFC40.DLL
  31. wget -N http://activex.microsoft.com/controls/vc/mfc40.cab
  32. cabextract -F mfc40.exe mfc40.cab
  33. cabextract -F mfc40.dll mfc40.exe
  34. cp -a mfc40.dll "$WINEPREFIX/drive_c/windows/system32/"