Login to Account Create an Account
Runoncex.inf Runs Only If In Windows\inf
Posted 27 February 2005 - 05:08 PM
I try to run it manually from a command prompt and it won't run unless runonceex.inf is located in %windir%\inf, even though I make the working directory to be where runonceex.inf is located.
I read a post somewhere that said if runonceex.inf is called from cmdlines.txt, that it should be located in same folder as cmdlines.txt. I think this is incorrect.
I would like to make use of %1% to access the CD during install, however, I guess %1% in this case is %windir%\inf, and I am stuck for another method to access the cd. Does anyone know of a way to make this work WITHIN THE INF.
Thank you all.
Posted 27 February 2005 - 06:56 PM
I received the same error message when running the following commands straight from cmdlines.txt:
"rundll32 setupapi,InstallHinfSection XP 128 runonceex.inf"
The location of runonceex.inf was in the $OEM$ folder, but it was not being read for some reason. The second command generated the error message you saw.
To fix it, I modified the path of the first command by adding a .\ in front of runonceex.inf and having both command run in a .cmd file called upon by cmdlines.txt. It ran flawlessly with no errors.
Posted 28 February 2005 - 01:42 AM
BTS DriverPacks | Adobe Reader Switchless (English & French) | NetFrameWork Switchless (English, Dutch, Norwegian) | 7zip SFX Office 2003 36MB | 7zip SFX NIS2005 54MB | RyanVM's MSFN files | Office Schrinker | WPI | nLite | XPize | Latest Office 2003 Updates | CDswitch | WinampUser | AutoIT Script collection
Posted 28 February 2005 - 09:16 AM
Also you can run the .inf straight from the .inf file you add the following lines at the end.
RunOnce = "Software\Microsoft\Windows\CurrentVersion\RunOnce"