MSFN Forum: Micorsoft htmlhelp.exe unattended - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Micorsoft htmlhelp.exe unattended Rate Topic: -----

#1 User is offline   mrmr 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 12-October 04

Posted 27 October 2004 - 03:55 PM

hallo
I've downloaded from M$ a file called htmlhelp.exe from:
http://msdn.microsoft.com/library/default....lpDownloads.asp

nobody know how to install it unattended?

As first thing i've launched installer (htmlhelp.exe) and i've copied the directory created in TEMP somewhere on my disk, then i've used the setup.exe inthere, with relative htmlhelp.inf.

I've menaged to comment out the part that are displaying the windows, change [CustomLDID49100]'s paths (always %ProgramFiles%) andDefaultInstallDir from "C:\Program Files\HTML Help Workshop" to "%ProgramFiles%\HTML Help Workshop", btw, at some times it fails to register the dll with this error:
Advanced INF Install

Error registering the OCX %49000%\itcc.dll


Here the modified htmlhelp.inf:
[Version]
Signature="$Chicago$"  ; Required for 95 and NT
[SourceDisksNames]
1="%Title%",,1
[DefaultInstall]
DelFiles=DelOldHHUpd
AddReg=AddInstallPath, UninstallKey, RenameJava
;CustomDestination=HHWDestinationDir; Ask user for custom destination
CopyFiles=HHWCopy, HHWCopyInc, HHWCopyLib, HHWCopyJava, HHWCopyHelp, HHWCopyRedist, HHWCopySystem
UpdateInis=HHWUpdateShortcuts ; Create / update startmenu shortcuts
;BeginPrompt=BeginPromptSection; Beginning prompt dialog
;EndPrompt=EndPromptSection ; Ending prompt dialog
RunPostSetupCommands=HHUpdate
RegisterOCXs=RegisterItccDLL
[DefaultInstall.NT]
DelFiles=DelOldHHUpd
AddReg=AddInstallPath, UninstallKey, RenameJava
;CustomDestination=HHWDestinationDir
CopyFiles=HHWCopy, HHWCopyInc, HHWCopyLib, HHWCopyJava, HHWCopyHelp, HHWCopyRedist, HHWCopySystem
UpdateInis=HHWUpdateShortcuts.NT; Create / update startmenu shortcuts
;BeginPrompt=BeginPromptSection; Beginning prompt dialog
;EndPrompt=EndPromptSection ; Ending prompt dialog
RunPostSetupCommands=HHUpdate ; Install the client components
RegisterOCXs=RegisterItccDLL
[DefaultInstall.NT5]
DelFiles=DelOldHHUpd
AddReg=AddInstallPath, UninstallKey, RenameJava
;CustomDestination=HHWDestinationDir
CopyFiles=HHWCopy, HHWCopyInc, HHWCopyLib, HHWCopyJava, HHWCopyHelp, HHWCopyRedist, HHWCopySystem
ProfileItems=HHWAddStartGroup.NT5, HHWAddStartIcon1.NT5, HHWAddStartIcon2.NT5
;BeginPrompt=BeginPromptSection; Beginning prompt dialog
;EndPrompt=EndPromptSection ; Ending prompt dialog
RunPostSetupCommands=HHUpdate ; Install the client components
RegisterOCXs=RegisterItccDLL
[BeginPromptSection]
Prompt="%BeginMessage%"
Title="%Title%"
ButtonType=YESNO
[EndPromptSection]
Prompt="%EndMessage%"
[DestinationDirs]
HHWCopy=49000   ; Program Files\HTML Help Workshop
HHWCopyInc=49000,include ; Program Files\HTML Help Workshop\include
HHWCopyLib=49000,lib  ; Program Files\HTML Help Workshop\lib
HHWCopyJava=49000,java ; Program Files\HTML Help Workshop\java
HHWCopyHelp=18  ; Windows\Help
HHWCopyRedist=49000,redist ; Program Files\HTML Help Workshop\redist
HHWCopySystem=11  ; Windows\System
DelOldHHUpd=49000,redist ; Program Files\HTML Help Workshop\redist
[DelOldHHUpd]
hhupd.exe
[HHWCopy]
htmlhelp.inf,uninst.inf,,,96
setup.exe,,,96
setup.ini,,,96
advpack.dll,,,96
cnvcnt.dll,,,96
cnvtoc.dll,,,96
gencnv.dll,,,96
hhcout.dll,,,96
hhkout.dll,,,96
navout.dll,,,96
spcom.dll,,,96
sprbuild.dll,,,96
spredit.dll,,,96
sprfile.dll,,,96
sprlog.dll,,,96
hhc.exe,,,96
hhw.exe,,,96
hhw.gif,,,96
flash.exe,,,96
flash256.gif,,,96
itcc.dll,,,96
license.txt,,,96
readme.txt,,,96
[HHWCopyInc]
htmlhelp.h,,,96
[HHWCopyLib]
htmlhelp.lib,,,96
[HHWCopyJava]
dl.cl,,,96   ; DialogLayout.class
e.cl,,,96   ; Element.class
el.cl,,,96   ; ElementList.class
h.cl,,,96   ; HHCtrl.class
ip.cl,,,96   ; IndexPanel.class
rd.cl,,,96   ; RelatedDialog.class
HHCtrl.cab,,,96
sp.cl,,,96   ; SitemapParser.class
tc.cl,,,96   ; TreeCanvas.class
tv.cl,,,96   ; TreeView.class
cntimage.gif,,,96
[HHWCopyHelp]
api.chm,,,96
hhaxref.chm,,,96
htmlref.chm,,,96
htmlhelp.chm,,,96
[HHWCopyRedist]
hhupd.exe,,,96
[HHWCopySystem]
hha.dll,,,96
[HHWDestinationDir]
49100=CustomLDID49100, 5
49000=CustomLDID49000, 1
[CustomLDID49100]
;"HKLM","SOFTWARE\Microsoft\Windows\CurrentVersion","ProgramFilesDir","","C:\Program Files"
"HKLM","SOFTWARE\Microsoft\Windows\CurrentVersion","ProgramFilesDir","","%ProgramFiles%"
[CustomLDID49000]
"HKLM","SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\hhw.exe","Path","%DirMessage%","%49100%\HTML Help Workshop"
[AddInstallPath]
"HKLM","SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\hhw.exe",,,"%49000%\hhw.exe"
"HKLM","SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\hhw.exe","Path",,"%49000%"
"HKCU","Software\Microsoft\HTML Help Workshop","InstallDir",,"%49000%"
[UninstallKey]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\HTML Help Workshop", "DisplayName",, "HTML Help Workshop"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\HTML Help Workshop", "UninstallString",, "%49000%\setup.exe Uninstall"
[RenameJava]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\HHJava",,,%49000%\java
HKLM,"Software\Microsoft\Windows\CurrentVersion\RenameFiles\HHJava","dl.cl",,"DialogLayout.class"
HKLM,"Software\Microsoft\Windows\CurrentVersion\RenameFiles\HHJava","e.cl",,"Element.class"
HKLM,"Software\Microsoft\Windows\CurrentVersion\RenameFiles\HHJava","el.cl",,"ElementList.class"
HKLM,"Software\Microsoft\Windows\CurrentVersion\RenameFiles\HHJava","h.cl",,"HHCtrl.class"
HKLM,"Software\Microsoft\Windows\CurrentVersion\RenameFiles\HHJava","ip.cl",,"IndexPanel.class"
HKLM,"Software\Microsoft\Windows\CurrentVersion\RenameFiles\HHJava","rd.cl",,"RelatedDialog.class"
HKLM,"Software\Microsoft\Windows\CurrentVersion\RenameFiles\HHJava","sp.cl",,"SitemapParser.class"
HKLM,"Software\Microsoft\Windows\CurrentVersion\RenameFiles\HHJava","tc.cl",,"TreeCanvas.class"
HKLM,"Software\Microsoft\Windows\CurrentVersion\RenameFiles\HHJava","tv.cl",,"TreeView.class"
[HHWUpdateShortcuts]
setup.ini, progman.groups,, "group0="%GroupName%""
setup.ini, group0,, ""%GroupName%""
setup.ini, group0,, """%HHWIconName%"",""%49000%\hhw.EXE"",,0,"
setup.ini, group0,, ""%FlashIconName%""
setup.ini, group0,, """%FlashIconName%"",""%49000%\flash.EXE"",,0,"
[HHWUpdateShortcuts.NT]
setup.ini, progman.groups,, ""group0="%GroupName%"""
setup.ini, group0,, """%HHWIconName%"",""""""%49000%\hhw.EXE""""""
setup.ini, group0,, """%FlashIconName%"",""""""%49000%\flash.EXE""""""
[HHWAddStartGroup.NT5]
Name=%GroupName%,5
[HHWAddStartIcon1.NT5]
Name=%HHWIconName%,1
CmdLine=49000,,hhw.exe
SubDir=%GroupName%
[HHWAddStartIcon2.NT5]
Name=%FlashIconName%,1
CmdLine=49000,,flash.exe
SubDir=%GroupName%
[RegisterItccDLL]
%49000%\itcc.dll
%49000%\sprbuild.dll
%49000%\sprlog.dll
%49000%\sprfile.dll
%49000%\spredit.dll
%49000%\spcom.dll
%49000%\cnvcnt.dll
%49000%\cnvtoc.dll
%49000%\gencnv.dll
%49000%\hhkout.dll
%49000%\hhcout.dll
%49000%\navout.dll
[HHUpdate]
"hhupd.exe /C:""setup.exe NoDlg"" /R:N"
[Strings]
BeginMessage="Do you wish to install HTML Help Workshop 1.3 now?"
EndMessage="HTML Help Workshop install complete."
DirMessage="Choose an installation directory."
Title="HTML Help Workshop 1.3 Setup"; Title for all dialogs
GroupName="HTML Help Workshop"; Name for the start-menu group
HHWIconName="HTML Help Workshop"; Name for hhw.exe icon
FlashIconName="HTML Help Image Editor"; Name for flash.exe icon
;DefaultInstallDir="C:\Program Files\HTML Help Workshop"
DefaultInstallDir="%ProgramFiles%\HTML Help Workshop"


It seem to goes unattended until the error.
I think that there're some problem with hardcoded directories...they are hardcoded to "C:" and "\Program Files" and my installation should work also on other DRIVE & DIR

every help is a step forward
thank you

mrmr


#2 User is offline   neremin 

  • Group: Members
  • Posts: 1
  • Joined: 04-December 10
  • OS:Windows 7 x64

Posted 04 December 2010 - 09:28 AM

Hi,

In your modified .inf file you should uncomment CustomDestination=HHWDestinationDir in all [DefaultInstall] sections and change line 49000=CustomLDID49000, 1 into 49000=CustomLDID49000, 5

This should make your script working. Here's the article I used to find out about all these flags and other inf commands:

http://translate.goo...zone.net%2F3827

#3 User is offline   Jolli 

  • Newbie
  • Group: Members
  • Posts: 34
  • Joined: 18-July 06
  • OS:XP Pro x86
  • Country: Country Flag

Posted 08 December 2010 - 09:47 AM

Perhaps someone can take it, but did you see the date of the post?
Just over 6 years ago.... :whistle:

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy