Jump to content

Recommended Posts

Posted

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.


Posted

Is this the right code for the copy?

REG ADD %KEY%\005 /VE /D "Installing Super Collapse 2" /f
REG ADD %KEY%\005 /V 1 /D "%SystemDrive%\Install\Applications\SuperColapse\ReColapse.exe /s" /f
REG ADD %KEY%\005 /V 2 /D CMD.EXE /Q /C %SystemDrive%\Install\Applications\SuperColapse\ReColapse.exe "%PROGRAMFILES%\supercollapse"

Thanks..

Posted

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\""

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