August 25, 200520 yr On my machine I have a 4 in 1 cardreader that exposes the 4 cards as drives with removable media that is always connected to my machine via USB.When trying to determine which drive is my CDROM drive with something likeFOR %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist "%%i:%tagfile%" set CDDRIVE=%%i:I always get error multiple messages (3 or 4) popping up stating something like "No disc in drive". This happens at various stages during the unattended install. e.g. this code is used in the preset.cmd file of Bâshrat the Sneaky's driverpacksBut it also happens during [GUIRUNONCE] etc.I understand why this happens (no discs in the removable media drives) but it is very annoying as it effectiely breaks the unattended install.Only solution I have found so far as to stop the search at the letter f or so. Any other suggestions to avoid these popups?
August 25, 200520 yr The "No Disk In Drive" message is just one of many drawbacks of looping through all possible drive letters. In almost all cases that I have seen of people using this method, what the user is really trying to do is simply find the CD Drive from which Windows Installation was done. When this is the information I need (as the Install CD is almost always there where the installation was done ... ), I simply query the registry for the value of the SourcePath, get the drive letter, and asign the varible INSTALLCD with that value. In other words ...FOR /F "TOKENS=3" %%I IN ('REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "SourcePath" ^| FINDSTR "SourcePath"') DO SET INSTALLCD=%%~dIWorks for me ...
October 21, 200619 yr Sorry for replying on an old topic , but this was the only one that suits my question. But how do i use this with WPI?When i have a cardreader atached,the setup is messed up, and it says no disc in drive.
Create an account or sign in to comment