Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
Paradox Me

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:

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...