Jump to content

inf %cdrom% (actually %dvdrom%)


Recommended Posts

I am using an inf instead of a cmd file for my unattended install. I would like to speed up the install by installing from my dvdrom. I checked the dirids on gosh's site, but there wasn't one explicitly for a cdrom/dvdrom. I was hoping that someone could shed some light on how to do this.

Thanks

]Bonkers[

Link to comment
Share on other sites


and now to ruin everyone's parade tooting CMD line CDROM variables....

HE"S USING AN INF!

Now that that is done...

Here is what I suggest.... use %1% (it's either %1% or %1)

This is the path to where the INF file was executed from.

So example:

HKLM,%RunOnceEx%\install01,"1",,"%1%\WIHU.EXE /SkipSettings /AUTOINSTALL=0 /INI=applications.ini /RestartWait=80 /log=%systemdrive%\wihu-apps.log"

That will add an entry to the RunOnceEX with %1% being the path to WIHU. I executed the INF file with

rundll32.exe setupapi,InstallHinfSection WIHUSETUP 128 ..\Unattend\RegEdits.inf

So %1% becomes %CDROM%\Unattend\

It's more of a trick then anything else.

Another thing would be to use the SourceDisks section in an INF file. I've never gotten it to work properly, but who knows, maybe you might. CHeck the Microsoft MSDN site for more details. There was also a post on here awhile back about it as well.

Link to comment
Share on other sites

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...