smi Posted May 23, 2005 Share Posted May 23, 2005 Hi!I'm new to the Unattended process, and I have some issues I hope someone can help me with.The case is:Under C:\WINXP\$OEM$\ i have the following files.cmdlines.txtcmdow.exerunonceex.cmdRUNONCEEX.CMD=============cmdow @ /HID@echo off%path%;%CDROM%;%systemdrive%:\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\005 /VE /D "Adobe Reader 6" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\AdobeReader6\setup.exe /qn" /fREG ADD %KEY%\040 /VE /D "MSN Messenger 7.0" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\msn7\msn.exe /qn" /fREG ADD %KEY%\045 /VE /D "Nero Burning ROM v6.3.1.23" /fREG ADD %KEY%\045 /V 1 /D "REGEDIT /S %CDROM%\install\nero\nero.reg" /fREG ADD %KEY%\045 /V 2 /D "%systemdrive%\Nero\Nero63123.exe /silent /noreboot" /fEXITThe unattended works fine, until it comes to the RunOnce install after the first logon. My problem is when it's starting to Install the programs, I't can't find the install path, It tryes to install from C:\install\Adobe\setup.exe. I want It to install the programs from the DVD I have burned (CD/DVDROM\Install\Adobe\setup.exe). What am I doing wrong? I think it's somthing about the path, but I don't know what to use.. I tride %CDROM% ? hehe Or maybe I have put my Install files in the wrong folder? I have put them in $OEM$\$1\Install\appname\setupfile.exe ? Little confused here! Anyone see whats wrong?Sincerly Svein MagneNorway Link to comment Share on other sites More sharing options...
Dahi Posted May 23, 2005 Share Posted May 23, 2005 Use FOR to detect the WIN51 file in your CD and set the CDROM variable to the drive letter. Its explained in the advanced section of the guide.cmdow @ /HID@echo offFOR %%C 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 %%C:\WIN51 SET CDROM=%%C:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\005 /VE /D "Adobe Reader 6" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\AdobeReader6\setup.exe /qn" /fREG ADD %KEY%\040 /VE /D "MSN Messenger 7.0" /fREG ADD %KEY%\040 /V 1 /D "%CDROM%\install\msn7\msn.exe /qn" /fREG ADD %KEY%\045 /VE /D "Nero Burning ROM v6.3.1.23" /fREG ADD %KEY%\045 /V 1 /D "REGEDIT /S %CDROM%\install\nero\nero.reg" /fREG ADD %KEY%\045 /V 2 /D "%CDROM%\Nero\Nero63123.exe /silent /noreboot" /f Link to comment Share on other sites More sharing options...
smi Posted May 23, 2005 Author Share Posted May 23, 2005 Dahi: Thanks for fast reply, but I did not understand all of it..FOR %%C 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 %%C:\WIN51 SET CDROM=%%C:1) Is this setting the CDROM to C:?2) Whats the purpose of the C:\win51 ?2) Use FOR to detect the WIN51 file in your CD and set the CDROM variable to the drive letter. <-- The only thing that stands in my WIN51 file is Windows.. Sincerly SM Link to comment Share on other sites More sharing options...
Dahi Posted May 23, 2005 Share Posted May 23, 2005 1) Is this setting the CDROM to C:?2) Whats the purpose of the C:\win51 ?2) Use FOR to detect the WIN51 file in your CD and set the CDROM variable to the drive letter. <-- The only thing that stands in my WIN51 file is Windows..1. "C" will be the drive letter of the last drive it finds with a file called WIN51 in the root folder. The FOR command makes the "C" loop through all letters from D to Z to look for the WIN51 file.2. All WinXP install CDs should have a file called WIN51 in the root folder.3. Thats fine. It doesnt matter what the WIN51 file contains. Link to comment Share on other sites More sharing options...
smi Posted May 23, 2005 Author Share Posted May 23, 2005 Thanks alot Dahi! I got it working! SMI 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