Netcrawler Posted September 7, 2004 Posted September 7, 2004 How can I copy a file from a folder during the installation of applications using RunOnceEx.cmd.What I am doing is I am installing a game and I need to replace the original game .exe that executes the game with the new NO-CD .exe that I have.All is done unattended with the RunOnceEx.cmd. I just need the string to enter to copy and replace the existing .exe.Thanks.
sleepnmojo Posted September 7, 2004 Posted September 7, 2004 if you are using COPY, addCMD.EXE /Q /C COPY PATH\TO.EXE "%PROGRAMFILES%\PROGRAM"If it is a seperate program, like xcopy, then you don't need the cmd.exe part.
Netcrawler Posted September 7, 2004 Author Posted September 7, 2004 Is this the right code for the copy?REG ADD %KEY%\005 /VE /D "Installing Super Collapse 2" /fREG ADD %KEY%\005 /V 1 /D "%SystemDrive%\Install\Applications\SuperColapse\ReColapse.exe /s" /fREG ADD %KEY%\005 /V 2 /D CMD.EXE /Q /C %SystemDrive%\Install\Applications\SuperColapse\ReColapse.exe "%PROGRAMFILES%\supercollapse"Thanks..
sleepnmojo Posted September 7, 2004 Posted September 7, 2004 to fix your last line, and your should be set.REG ADD %KEY%\005 /V 2 /D "CMD.EXE /Q /C %SystemDrive%\Install\Applications\SuperColapse\ReColapse.exe \"%PROGRAMFILES%\supercollapse\""
Netcrawler Posted September 7, 2004 Author Posted September 7, 2004 Thanks I will give that a try tonight..
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