Jump to content

Recommended Posts

Posted

I made a runonceex.cmd using the runonceex.cmd creator. I put this file in %cdrom%\$OEM$ and put in it cmdlines.txt. This part is ok - the installer runs, but when it does, it says that it can't find any of the filenames if the apps. I'm sure I typed their names in correctly.

I specified the apps to be in %cdrom%\Apps, and that's exactly where they are.

This is my runoncecmd.exe:

____________________________________________________________________________

cmdow @ /HID

@Echo Off

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:\win51ip.SP2 SET CDROM=%%i:

SET PP=%cdrom%\Apps\

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

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

REG ADD %KEY%\000 /VE /D ".net2" /f

REG ADD %KEY%\000 /V 1 /D "%PP%dotnet2.exe" /f

REG ADD %KEY%\001 /VE /D ".netsp1" /f

REG ADD %KEY%\001 /V 1 /D "%PP%dotnet11sp1.exe" /f

REG ADD %KEY%\002 /VE /D "java" /f

REG ADD %KEY%\002 /V 1 /D "%PP%jre506.exe" /f

REG ADD %KEY%\003 /VE /D "Kaspersky Antivirus" /f

REG ADD %KEY%\003 /V 1 /D "%PP%kavscript.exe" /f

REG ADD %KEY%\004 /VE /D "MSAntispyware" /f

REG ADD %KEY%\004 /V 1 /D "%PP%MSAntispyware.exe" /f

REG ADD %KEY%\005 /VE /D "MSN_Messenger_7.5.0322" /f

REG ADD %KEY%\005 /V 1 /D "%PP%MSN_Messenger_7.5.0322.exe" /f

REG ADD %KEY%\006 /VE /D "MsgPlus-362.exe" /f

REG ADD %KEY%\006 /V 1 /D "%PP%MsgPlus-362.exe /SilentInstallNoSponsor" /f

REG ADD %KEY%\007 /VE /D "reader705.exe" /f

REG ADD %KEY%\007 /V 1 /D "%PP%reader705.exe" /f

REG ADD %KEY%\008 /VE /D "Office 2003" /f

REG ADD %KEY%\008 /V 1 /D "%PP%Office2003\PRO11.msi /QB" /f

REG ADD %KEY%\009 /VE /D "Photoshop CS2" /f

REG ADD %KEY%\009 /V 1 /D "%PP%PhotoshopCS2\PhotoshopCS2Script.exe" /f

REG ADD %KEY%\010 /VE /D "Spybot.exe" /f

REG ADD %KEY%\010 /V 1 /D "%PP%Spybot.exe" /f

REG ADD %KEY%\011 /VE /D "UltraEdit" /f

REG ADD %KEY%\011 /V 1 /D "%PP%uesetup.exe /s" /f

REG ADD %KEY%\012 /VE /D "WinRAR" /f

REG ADD %KEY%\012 /V 1 /D "%PP%winrarscript.exe" /f

EXIT

___________________________________________________________________________

any idea what the problem is?


Posted

Ok...since it says "cant find \Apps\etcetcetc" it just be the first line:

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:\win51ip.SP2 SET CDROM=%%i:

This is supposed to find the CDROM, but it doesn't.

Runonceex.cmd creator generated this, so what's wrong?

Posted (edited)

Since a DOS batch file knows where it executes, then try this:

cmdow @ /HID
@Echo Off

SET PP=%~d0Apps\

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

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

REG ADD %KEY%\000 /VE /D ".net2" /f
REG ADD %KEY%\000 /V 1 /D "%PP%dotnet2.exe" /f

REG ADD %KEY%\001 /VE /D ".netsp1" /f
REG ADD %KEY%\001 /V 1 /D "%PP%dotnet11sp1.exe" /f

REG ADD %KEY%\002 /VE /D "java" /f
REG ADD %KEY%\002 /V 1 /D "%PP%jre506.exe" /f

REG ADD %KEY%\003 /VE /D "Kaspersky Antivirus" /f
REG ADD %KEY%\003 /V 1 /D "%PP%kavscript.exe" /f

REG ADD %KEY%\004 /VE /D "MSAntispyware" /f
REG ADD %KEY%\004 /V 1 /D "%PP%MSAntispyware.exe" /f

REG ADD %KEY%\005 /VE /D "MSN_Messenger_7.5.0322" /f
REG ADD %KEY%\005 /V 1 /D "%PP%MSN_Messenger_7.5.0322.exe" /f

REG ADD %KEY%\006 /VE /D "MsgPlus-362.exe" /f
REG ADD %KEY%\006 /V 1 /D "%PP%MsgPlus-362.exe /SilentInstallNoSponsor" /f

REG ADD %KEY%\007 /VE /D "reader705.exe" /f
REG ADD %KEY%\007 /V 1 /D "%PP%reader705.exe" /f

REG ADD %KEY%\008 /VE /D "Office 2003" /f
REG ADD %KEY%\008 /V 1 /D "%PP%Office2003\PRO11.msi /QB" /f

REG ADD %KEY%\009 /VE /D "Photoshop CS2" /f
REG ADD %KEY%\009 /V 1 /D "%PP%PhotoshopCS2\PhotoshopCS2Script.exe" /f

REG ADD %KEY%\010 /VE /D "Spybot.exe" /f
REG ADD %KEY%\010 /V 1 /D "%PP%Spybot.exe" /f

REG ADD %KEY%\011 /VE /D "UltraEdit" /f
REG ADD %KEY%\011 /V 1 /D "%PPsetup.exe /s" /f

REG ADD %KEY%\012 /VE /D "WinRAR" /f
REG ADD %KEY%\012 /V 1 /D "%PP%winrarscript.exe" /f

EXIT

Sorry, codebox rips empty lines.

Edited by MHz
Posted (edited)
Since a DOS batch file knows where it executes, then try this:

~code

Sorry, codebox rips empty lines.

what if the cdrom drive isn't D?

Based on the configuration of your RunOnceEx file, you need to create a CD.txt file and place it in the root folder of your XP install disk. More information on it here:

http://unattended.msfn.org/unattended.xp/v...074c5ece9d622c/

See if that helps.

Same dif right?

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:\win51ip.SP2 SET CDROM=%%i:

Runonceex.cmd uses the file win51ip.SP2 instead of CD.txt

What's the purpose of a blank file that can't be written to anyway?

Edited by bellsprout

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