htmlhelp.sh 795 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. WINEPREFIX=${WINEPREFIX:=$HOME/.wine}
  3. test -d "$WINEPREFIX" || wineprefixcreate
  4. # Setup the registry
  5. wine regedit htmlhelp.reg
  6. # Install HTML Help Workshop
  7. wget 'http://go.microsoft.com/fwlink/?LinkId=14188' -O htmlhelp.exe
  8. wine htmlhelp.exe
  9. # Install ITSS.DLL
  10. cabextract -F hhupd.exe htmlhelp.exe
  11. cabextract -F itircl.dll hhupd.exe
  12. cabextract -F itss.dll hhupd.exe
  13. cp -a itircl.dll "$WINEPREFIX/drive_c/windows/system32/"
  14. cp -a itss.dll "$WINEPREFIX/drive_c/windows/system32/"
  15. wine regsvr32 /s 'C:\WINDOWS\SYSTEM32\itircl.dll'
  16. wine regsvr32 /s 'C:\WINDOWS\SYSTEM32\itss.dll'
  17. # Install MFC40.DLL
  18. wget -N http://activex.microsoft.com/controls/vc/mfc40.cab
  19. cabextract -F mfc40.exe mfc40.cab
  20. cabextract -F mfc40.dll mfc40.exe
  21. cp -a mfc40.dll "$WINEPREFIX/drive_c/windows/system32/"