sleepnmojo Posted July 29, 2004 Share Posted July 29, 2004 I am trying to incorporate using inf files into my unattended, but can't seem to get it to work properly. It will install fine if I type the command out, but doesn't work if I put it in my RunOnceEx.cmd, or cmdlines.txt.I've tried just having it add registry keys, but no luck.[Version]Signature="$Chicago$"[DefaultInstall];CopyFiles=Web.FilesAddReg=Web.Settings;RegisterDlls=Web.Register[DefaultUninstall];UnregisterDlls=Web.RegisterDelReg=Web.SettingsDelFiles=Web.Files[Web.Settings]HKCU,"%MenuKey%\Image: Zoom &In",,,"%10%\Web\image-zoomin.html"HKCU,"%MenuKey%\Image: Zoom &In","Contexts",0x10001,0x00000022HKCU,"%MenuKey%\Image: Zoom &Out",,,"%10%\Web\image-zoomout.html"HKCU,"%MenuKey%\Image: Zoom &Out","Contexts",0x10001,0x00000022HKCU,"%MenuKey%\Selection: Show Partial Source",,,"%10%\Web\selection-show-source.html"HKCU,"%MenuKey%\Selection: Show Partial Source","Contexts",0x10001,0x00000010HKCU,"%MenuKey%\Page: Copy Meister",,,"res://%10%\Web\ieb.dll/copy-wiz.ieb"HKCU,"%MenuKey%\Page: Interactive HTML Detective",,,"res://%10%\Web\ieb.dll/contextmenu.ieb"HKCU,"%MenuKey%\Page: Page Analyzer",,,"res://%10%\Web\ieb.dll/element.ieb"HKCU,"%MenuKey%\Frame: Open in &New Window",,,"res://%10%\Web\ieb.dll/open-frame-in-new-window.ieb"HKCU,"%MenuKey%\Frame: Open in &This Window",,,"res://%10%\Web\ieb.dll/open-frame-in-this-window.ieb"[DestinationDirs]Web.Files=10,Web[Web.Files]ieb.dllimage-zoomin.htmlimage-zoomout.htmlselection-show-source.html[Web.Register]10,Web,ieb.dll,1[Strings]MenuKey ="Software\Microsoft\Internet Explorer\MenuExt"The command I use to install isRUNDLL32.EXE setupapi,InstallHinfSection DefaultInstall 132 %SYSTEMROOT%\Web\install.infI've tried placing this in different places. I want the settings to apply to all users, which is why I do this in cmdlines.txt. And no I can't switch it to HKLM cause that won't work.I placed this in my $OEM$/$$/Web folder, so thats not wrong. Just need an idea of what I can do to get it working. I would prefer to have this in my cmdlines.txt file, and not a file in the i386 file.Again this works if I type out the command in a cmd window, in both the install, and post install. However it doesn't run in my runonceex.cmd, or cmdlines.txt Link to comment Share on other sites More sharing options...
fillalph Posted July 29, 2004 Share Posted July 29, 2004 This is the line I use from my cmdlines.txt (please note that setup.inf is in the same directory as my cmdlines.txt)rundll32 setupapi,InstallHinfSection DefaultInstall 128 .\setup.inf]Bonkers[ Link to comment Share on other sites More sharing options...
Alanoll Posted July 29, 2004 Share Posted July 29, 2004 what's with the double %? If it's in CMDLINES, i don't think that will work. I know it won't in GUIRUNONCE. Link to comment Share on other sites More sharing options...
sleepnmojo Posted July 29, 2004 Author Share Posted July 29, 2004 what's with the double %? If it's in CMDLINES, i don't think that will work. I know it won't in GUIRUNONCE.Sorry, I pulled that from my script that builds my runonce, it should be single %, I'll update the original post. Link to comment Share on other sites More sharing options...
sleepnmojo Posted July 29, 2004 Author Share Posted July 29, 2004 Bonkers[,Jul 28 2004, 10:36 PM] This is the line I use from my cmdlines.txt (please note that setup.inf is in the same directory as my cmdlines.txt)rundll32 setupapi,InstallHinfSection DefaultInstall 128 .\setup.inf]Bonkers[I will try switching it to 128 to see if that will affect anything. Not sure if the directory that the inf is in should matter, and will try that if this doesn't work. Link to comment Share on other sites More sharing options...
sleepnmojo Posted July 30, 2004 Author Share Posted July 30, 2004 Thanks guys, switching to the 128 worked. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now