Jump to content

Recommended Posts

Posted

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%,,\I386

1 = %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 :thumbup

What am I doing Wrong. :blushing:


Posted

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.

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...