Jump to content

Path to Install files (Nero, Adobe etc)


Recommended Posts

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

cmdow.exe

runonceex.cmd

RUNONCEEX.CMD

=============

cmdow @ /HID

@echo off

%path%;%CDROM%;%systemdrive%:\

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f

REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\AdobeReader6\setup.exe /qn" /f

REG ADD %KEY%\040 /VE /D "MSN Messenger 7.0" /f

REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\msn7\msn.exe /qn" /f

REG ADD %KEY%\045 /VE /D "Nero Burning ROM v6.3.1.23" /f

REG ADD %KEY%\045 /V 1 /D "REGEDIT /S %CDROM%\install\nero\nero.reg" /f

REG ADD %KEY%\045 /V 2 /D "%systemdrive%\Nero\Nero63123.exe /silent /noreboot" /f

EXIT

The 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 :blushing: 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 Magne

Norway

Link to comment
Share on other sites


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 off

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:

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\AdobeReader6\setup.exe /qn" /f

REG ADD %KEY%\040 /VE /D "MSN Messenger 7.0" /f
REG ADD %KEY%\040 /V 1 /D "%CDROM%\install\msn7\msn.exe /qn" /f

REG ADD %KEY%\045 /VE /D "Nero Burning ROM v6.3.1.23" /f
REG ADD %KEY%\045 /V 1 /D "REGEDIT /S %CDROM%\install\nero\nero.reg" /f
REG ADD %KEY%\045 /V 2 /D "%CDROM%\Nero\Nero63123.exe /silent /noreboot" /f

Link to comment
Share on other sites

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

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

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