armin Posted December 24, 2004 Posted December 24, 2004 Hi guy!I have made my winxpsp2 cd with all the apps i wish to install. this a RunOnceEX procedure. But it seems not to recognize or find my cd drive. the message i get " can't find the file \Apps\WebCamGoPlusDrvsV1_04.exe /silent" /f be sure you chose the right path the Examples of my runonceex running from cdrom:cmdow @ /HID@Echo OffIF EXIST D:\CD.txt set CDROM=D:IF EXIST E:\CD.txt set CDROM=E:IF EXIST F:\CD.txt set CDROM=F:IF EXIST G:\CD.txt set CDROM=G:IF EXIST H:\CD.txt set CDROM=H:IF EXIST I:\CD.txt set CDROM=I:IF EXIST J:\CD.txt set CDROM=J:IF EXIST K:\CD.txt set CDROM=K:IF EXIST L:\CD.txt set CDROM=L:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing programs! Fingers Off The Keyboard Please!!" /fREG ADD %KEY%\001 /VE /D "Pixelview_TV_Pro" /fREG ADD %KEY%\001 /V 1 /D "%cdrom%\Apps\Pixelview_TV_Pro\pvs514_2f.exe /silent" /fREG ADD %KEY%\002 /VE /D "Web CamGo PlusDriver 104" /fREG ADD %KEY%\002 /V 1 /D "%cdrom%\Apps\WebCamGoPlusDrvsV1_04.exe /silent" /fREG ADD %KEY%\003 /VE /D "Office Professional SP1 2003 3in1" /fREG ADD %KEY%\003 /V 1 /D "%cdrom%\Apps\OFFICE2K3\Pro11.msi /qn" /f
Tsunami Posted December 24, 2004 Posted December 24, 2004 Do you have a file called CD.txt in the root of your CD?
Incroyable HULK Posted December 24, 2004 Posted December 24, 2004 looks fine to me... tsunami is probably right.I suggest you use the following code to obtain your %CDROM%:FOR %%i IN (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:\CD.txt SET CDROM=%%i:It is compact and it work great. If you want, you can change the target file it is looking for to anything else you wish that is present at ROOT of your CD. For me, I am looking for a file called CD.bin instead of CD.txt
armin Posted December 27, 2004 Author Posted December 27, 2004 Thanks guys. i figured out that the (\) after &cdrom& shouldn't be there. that always got the error message was because of that. now it works great.it shouldn't be like this="%CDROM%\Software\MSN_Messenger.msi /qn as i saw in the msfn tutorial examplesit didn't work for me anyway, but should be as follow:"%CDROM%Software\MSN_Messenger.msi /qnmaybe many beginners like me make this kind of simple mistakes.thanks everybody who took time and answered me concerning my problem in this case.
Incroyable HULK Posted December 27, 2004 Posted December 27, 2004 It all depends on the code you are using to get your CD-ROM drive letter...In my example, I have to put %CDROM%\
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