Jump to content

RUNONCEX copy commands?


Recommended Posts

How do I copy in runonceex??

For instance, I have file xyz.exe in my $oem$ folder that is copied over to c:\installs during setup. If I want it to be copied to c:\program files\abc (either instead of c:\installs or from c:\installs) , what would the runonceex code(s) look like??? :blink:

Link to comment
Share on other sites


Example for examdiff_pro

REG ADD %KEY%\1001 /VE /D "ExamDiff Pro" /f
REG ADD %KEY%\1001 /V 101 /D "CMD /C Start /min /Wait E:\APPS\ExamDiff_Pro\setup.exe /SILENT /SP- /NORESTART" /f
REG ADD %KEY%\1001 /V 102 /D "CMD /C COPY \"E:\APPS\ExamDiff_Pro\password.bin\" \"%ProgramFiles%\ExamDiff Pro\" /Y" /f
REG ADD %KEY%\1001 /V 103 /D "REGEDIT /S E:\APPS\ExamDiff_Pro\ExamDiff_Pro1.reg" /f

Your file would be

REG ADD %KEY%\1001 /V 102 /D "CMD /C COPY \"C:\Install\xyz.exe\" \"%ProgramFiles%\abc\" /Y" /f

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