fillalph Posted January 5, 2005 Share Posted January 5, 2005 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 More sharing options...
RyanVM Posted January 5, 2005 Share Posted January 5, 2005 If you're in the cmdlines.txt stage, you can use this:SET CDROM=%CD:~0,2%Otherwise, this will work in any stage:for %%i in (C: D: E: F: G: H: I: J:) do if exist %%i\win51ip.SP2 set CDROM=%%i Link to comment Share on other sites More sharing options...
Vadikan Posted January 5, 2005 Share Posted January 5, 2005 Threads about %CDROM% varaible Link to comment Share on other sites More sharing options...
Alanoll Posted January 5, 2005 Share Posted January 5, 2005 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 withrundll32.exe setupapi,InstallHinfSection WIHUSETUP 128 ..\Unattend\RegEdits.infSo %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 More sharing options...
Yzöwl Posted January 5, 2005 Share Posted January 5, 2005 %01% => SourceDrive:\Pathname (the directory from which the INF file was installed) Link to comment Share on other sites More sharing options...
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