The Glimmerman Posted November 22, 2007 Posted November 22, 2007 Hey Guys,I need some expertice. I've read some topics about runonceex inf install, but my problem still exists.This is my inf file:[Version]Signature="$Windows NT$"[SourceDisksNames]1 = %cdname%,%cdtagfile%,,\I386[DefaultInstall]AddReg=RunOnceEx.Addreg[RunOnceEx.AddReg]HKLM,"%RunOnceEx%\",Title,0,"(CDROM Drive: %1%)"HKLM,"%RunOnceEx%\",Flags,0x00010001,20[Strings]cdname = "Windows XP Professional CD-ROM"productname = "Windows XP Professional"cdtagfile = "\win51ip"My problem is when the inf is executed by cmdlines it works but the driveletter for my cdrom is the path where the inf is executed."D:\$OEM$"I tried:1 = %cdname%,%cdtagfile%,,\I3861 = %cdname%,%cdtagfile%,,""Even changed the variable %1% to %1 or %01%but it doesn't work.I have my additional software in the I386 directory named SOFTWARE.I like a clean TOC What am I doing Wrong.
Arie Posted November 22, 2007 Posted November 22, 2007 Click here to read all about running RunOnceEx from CD-ROM.
The Glimmerman Posted November 22, 2007 Author Posted November 22, 2007 @ Arie If you read the title. Its RunonceEx by inf not cmd.But thanks for the reply.
koolezt Posted November 22, 2007 Posted November 22, 2007 A possible approach might be to use HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\\SourcePath. I've never used the .inf method (that's why I'm searching the forum for guidance), so I can't help for syntax, except to suggest the advice in your signature.
Yzöwl Posted November 22, 2007 Posted November 22, 2007 The DIRID %01% is correct, it obviously references D:\$OEM$\ because that is the location of the running inf file.I think that you're confused, the SourcDisksNames section is not setting a variable for the root source of the inf, it is identifying the souce disk for use with a SourceDisksFiles section for any files to be transferred to the PC during the installation.
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