bellsprout Posted February 13, 2006 Posted February 13, 2006 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 OffFOR %%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\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Programs" /fREG ADD %KEY%\000 /VE /D ".net2" /fREG ADD %KEY%\000 /V 1 /D "%PP%dotnet2.exe" /fREG ADD %KEY%\001 /VE /D ".netsp1" /fREG ADD %KEY%\001 /V 1 /D "%PP%dotnet11sp1.exe" /fREG ADD %KEY%\002 /VE /D "java" /fREG ADD %KEY%\002 /V 1 /D "%PP%jre506.exe" /fREG ADD %KEY%\003 /VE /D "Kaspersky Antivirus" /fREG ADD %KEY%\003 /V 1 /D "%PP%kavscript.exe" /fREG ADD %KEY%\004 /VE /D "MSAntispyware" /fREG ADD %KEY%\004 /V 1 /D "%PP%MSAntispyware.exe" /fREG ADD %KEY%\005 /VE /D "MSN_Messenger_7.5.0322" /fREG ADD %KEY%\005 /V 1 /D "%PP%MSN_Messenger_7.5.0322.exe" /fREG ADD %KEY%\006 /VE /D "MsgPlus-362.exe" /fREG ADD %KEY%\006 /V 1 /D "%PP%MsgPlus-362.exe /SilentInstallNoSponsor" /fREG ADD %KEY%\007 /VE /D "reader705.exe" /fREG ADD %KEY%\007 /V 1 /D "%PP%reader705.exe" /fREG ADD %KEY%\008 /VE /D "Office 2003" /fREG ADD %KEY%\008 /V 1 /D "%PP%Office2003\PRO11.msi /QB" /fREG ADD %KEY%\009 /VE /D "Photoshop CS2" /fREG ADD %KEY%\009 /V 1 /D "%PP%PhotoshopCS2\PhotoshopCS2Script.exe" /fREG ADD %KEY%\010 /VE /D "Spybot.exe" /fREG ADD %KEY%\010 /V 1 /D "%PP%Spybot.exe" /fREG ADD %KEY%\011 /VE /D "UltraEdit" /fREG ADD %KEY%\011 /V 1 /D "%PP%uesetup.exe /s" /fREG ADD %KEY%\012 /VE /D "WinRAR" /fREG ADD %KEY%\012 /V 1 /D "%PP%winrarscript.exe" /fEXIT___________________________________________________________________________any idea what the problem is?
bellsprout Posted February 13, 2006 Author Posted February 13, 2006 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?
MHz Posted February 13, 2006 Posted February 13, 2006 (edited) Since a DOS batch file knows where it executes, then try this:cmdow @ /HID@Echo OffSET PP=%~d0Apps\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Programs" /fREG ADD %KEY%\000 /VE /D ".net2" /fREG ADD %KEY%\000 /V 1 /D "%PP%dotnet2.exe" /fREG ADD %KEY%\001 /VE /D ".netsp1" /fREG ADD %KEY%\001 /V 1 /D "%PP%dotnet11sp1.exe" /fREG ADD %KEY%\002 /VE /D "java" /fREG ADD %KEY%\002 /V 1 /D "%PP%jre506.exe" /fREG ADD %KEY%\003 /VE /D "Kaspersky Antivirus" /fREG ADD %KEY%\003 /V 1 /D "%PP%kavscript.exe" /fREG ADD %KEY%\004 /VE /D "MSAntispyware" /fREG ADD %KEY%\004 /V 1 /D "%PP%MSAntispyware.exe" /fREG ADD %KEY%\005 /VE /D "MSN_Messenger_7.5.0322" /fREG ADD %KEY%\005 /V 1 /D "%PP%MSN_Messenger_7.5.0322.exe" /fREG ADD %KEY%\006 /VE /D "MsgPlus-362.exe" /fREG ADD %KEY%\006 /V 1 /D "%PP%MsgPlus-362.exe /SilentInstallNoSponsor" /fREG ADD %KEY%\007 /VE /D "reader705.exe" /fREG ADD %KEY%\007 /V 1 /D "%PP%reader705.exe" /fREG ADD %KEY%\008 /VE /D "Office 2003" /fREG ADD %KEY%\008 /V 1 /D "%PP%Office2003\PRO11.msi /QB" /fREG ADD %KEY%\009 /VE /D "Photoshop CS2" /fREG ADD %KEY%\009 /V 1 /D "%PP%PhotoshopCS2\PhotoshopCS2Script.exe" /fREG ADD %KEY%\010 /VE /D "Spybot.exe" /fREG ADD %KEY%\010 /V 1 /D "%PP%Spybot.exe" /fREG ADD %KEY%\011 /VE /D "UltraEdit" /fREG ADD %KEY%\011 /V 1 /D "%PPsetup.exe /s" /fREG ADD %KEY%\012 /VE /D "WinRAR" /fREG ADD %KEY%\012 /V 1 /D "%PP%winrarscript.exe" /fEXITSorry, codebox rips empty lines. Edited February 13, 2006 by MHz
abarax66 Posted February 13, 2006 Posted February 13, 2006 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.
bellsprout Posted February 14, 2006 Author Posted February 14, 2006 (edited) Since a DOS batch file knows where it executes, then try this:~codeSorry, 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.txtWhat's the purpose of a blank file that can't be written to anyway? Edited February 14, 2006 by bellsprout
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