mrmr Posted October 27, 2004 Posted October 27, 2004 halloI've downloaded from M$ a file called htmlhelp.exe from:http://msdn.microsoft.com/library/default....lpDownloads.aspnobody 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 InstallError registering the OCX %49000%\itcc.dllHere the modified htmlhelp.inf:[Version]Signature="$Chicago$" ; Required for 95 and NT[SourceDisksNames]1="%Title%",,1[DefaultInstall]DelFiles=DelOldHHUpdAddReg=AddInstallPath, UninstallKey, RenameJava;CustomDestination=HHWDestinationDir; Ask user for custom destinationCopyFiles=HHWCopy, HHWCopyInc, HHWCopyLib, HHWCopyJava, HHWCopyHelp, HHWCopyRedist, HHWCopySystemUpdateInis=HHWUpdateShortcuts ; Create / update startmenu shortcuts;BeginPrompt=BeginPromptSection; Beginning prompt dialog;EndPrompt=EndPromptSection ; Ending prompt dialogRunPostSetupCommands=HHUpdateRegisterOCXs=RegisterItccDLL[DefaultInstall.NT]DelFiles=DelOldHHUpdAddReg=AddInstallPath, UninstallKey, RenameJava;CustomDestination=HHWDestinationDirCopyFiles=HHWCopy, HHWCopyInc, HHWCopyLib, HHWCopyJava, HHWCopyHelp, HHWCopyRedist, HHWCopySystemUpdateInis=HHWUpdateShortcuts.NT; Create / update startmenu shortcuts;BeginPrompt=BeginPromptSection; Beginning prompt dialog;EndPrompt=EndPromptSection ; Ending prompt dialogRunPostSetupCommands=HHUpdate ; Install the client componentsRegisterOCXs=RegisterItccDLL[DefaultInstall.NT5]DelFiles=DelOldHHUpdAddReg=AddInstallPath, UninstallKey, RenameJava;CustomDestination=HHWDestinationDirCopyFiles=HHWCopy, HHWCopyInc, HHWCopyLib, HHWCopyJava, HHWCopyHelp, HHWCopyRedist, HHWCopySystemProfileItems=HHWAddStartGroup.NT5, HHWAddStartIcon1.NT5, HHWAddStartIcon2.NT5;BeginPrompt=BeginPromptSection; Beginning prompt dialog;EndPrompt=EndPromptSection ; Ending prompt dialogRunPostSetupCommands=HHUpdate ; Install the client componentsRegisterOCXs=RegisterItccDLL[BeginPromptSection]Prompt="%BeginMessage%"Title="%Title%"ButtonType=YESNO[EndPromptSection]Prompt="%EndMessage%"[DestinationDirs]HHWCopy=49000 ; Program Files\HTML Help WorkshopHHWCopyInc=49000,include ; Program Files\HTML Help Workshop\includeHHWCopyLib=49000,lib ; Program Files\HTML Help Workshop\libHHWCopyJava=49000,java ; Program Files\HTML Help Workshop\javaHHWCopyHelp=18 ; Windows\HelpHHWCopyRedist=49000,redist ; Program Files\HTML Help Workshop\redistHHWCopySystem=11 ; Windows\SystemDelOldHHUpd=49000,redist ; Program Files\HTML Help Workshop\redist[DelOldHHUpd]hhupd.exe[HHWCopy]htmlhelp.inf,uninst.inf,,,96setup.exe,,,96setup.ini,,,96advpack.dll,,,96cnvcnt.dll,,,96cnvtoc.dll,,,96gencnv.dll,,,96hhcout.dll,,,96hhkout.dll,,,96navout.dll,,,96spcom.dll,,,96sprbuild.dll,,,96spredit.dll,,,96sprfile.dll,,,96sprlog.dll,,,96hhc.exe,,,96hhw.exe,,,96hhw.gif,,,96flash.exe,,,96flash256.gif,,,96itcc.dll,,,96license.txt,,,96readme.txt,,,96[HHWCopyInc]htmlhelp.h,,,96[HHWCopyLib]htmlhelp.lib,,,96[HHWCopyJava]dl.cl,,,96 ; DialogLayout.classe.cl,,,96 ; Element.classel.cl,,,96 ; ElementList.classh.cl,,,96 ; HHCtrl.classip.cl,,,96 ; IndexPanel.classrd.cl,,,96 ; RelatedDialog.classHHCtrl.cab,,,96sp.cl,,,96 ; SitemapParser.classtc.cl,,,96 ; TreeCanvas.classtv.cl,,,96 ; TreeView.classcntimage.gif,,,96[HHWCopyHelp]api.chm,,,96hhaxref.chm,,,96htmlref.chm,,,96htmlhelp.chm,,,96[HHWCopyRedist]hhupd.exe,,,96[HHWCopySystem]hha.dll,,,96[HHWDestinationDir]49100=CustomLDID49100, 549000=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%\javaHKLM,"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%,1CmdLine=49000,,hhw.exeSubDir=%GroupName%[HHWAddStartIcon2.NT5]Name=%FlashIconName%,1CmdLine=49000,,flash.exeSubDir=%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 dialogsGroupName="HTML Help Workshop"; Name for the start-menu groupHHWIconName="HTML Help Workshop"; Name for hhw.exe iconFlashIconName="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 & DIRevery help is a step forwardthank youmrmr
neremin Posted December 4, 2010 Posted December 4, 2010 Hi,In your modified .inf file you should uncomment CustomDestination=HHWDestinationDir in all [DefaultInstall] sections and change line 49000=CustomLDID49000, 1 into 49000=CustomLDID49000, 5This should make your script working. Here's the article I used to find out about all these flags and other inf commands:http://translate.google.com/translate?hl=ru&sl=ru&tl=en&u=http%3A%2F%2Fwww.oszone.net%2F3827
Jolli Posted December 8, 2010 Posted December 8, 2010 Perhaps someone can take it, but did you see the date of the post?Just over 6 years ago....
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now