MSFN Forum: Problem detecting CDROM drive - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Problem detecting CDROM drive No Disc In Drive Rate Topic: -----

#1 User is offline   Kryptonneke 

  • Group: Members
  • Posts: 1
  • Joined: 20-April 05

Posted 25 August 2005 - 05:04 AM

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 like

FOR %%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 driverpacks
But 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?


#2 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,195
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 25 August 2005 - 03:07 PM

If your using Windows XP or higher, then try something from here instead.

#3 User is offline   GreenMachine 

  • ineXPlicable
  • Group: Developers
  • Posts: 3,062
  • Joined: 22-August 03

Posted 25 August 2005 - 03:28 PM

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=%%~dI
Works for me ...

#4 User is offline   muiz 

  • SPECIAL
  • PipPipPipPipPipPip
  • Group: Banned
  • Posts: 1,055
  • Joined: 03-August 03
  • OS:none specified
  • Country: Country Flag

Posted 21 October 2006 - 04:10 AM

Sorry for replying on an old topic , but this was the only one that suits my question. :blushing:



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.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy