Jump to content

Recommended Posts

Posted

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 Off

IF 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\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing programs! Fingers Off The Keyboard Please!!" /f

REG ADD %KEY%\001 /VE /D "Pixelview_TV_Pro" /f

REG ADD %KEY%\001 /V 1 /D "%cdrom%\Apps\Pixelview_TV_Pro\pvs514_2f.exe /silent" /f

REG ADD %KEY%\002 /VE /D "Web CamGo PlusDriver 104" /f

REG ADD %KEY%\002 /V 1 /D "%cdrom%\Apps\WebCamGoPlusDrvsV1_04.exe /silent" /f

REG ADD %KEY%\003 /VE /D "Office Professional SP1 2003 3in1" /f

REG ADD %KEY%\003 /V 1 /D "%cdrom%\Apps\OFFICE2K3\Pro11.msi /qn" /f


Posted

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

Posted

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 examples

it didn't work for me anyway, but should be as follow:

"%CDROM%Software\MSN_Messenger.msi /qn

maybe many beginners like me make this kind of simple mistakes.

thanks everybody who took time and answered me concerning my problem in this case.

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