November 22, 200718 yr 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.
November 22, 200718 yr Author @ Arie If you read the title. Its RunonceEx by inf not cmd.But thanks for the reply.
November 22, 200718 yr 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.
November 22, 200718 yr 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.
Create an account or sign in to comment