Jump to content

Adding and deleting files


Recommended Posts


I would be curious Troy. I am trying to install an app, than copy over the updated files into the folder. But the files HAVE to be copied post-install. It will install into Program Files. Should I put the update files in a OEM folder and move them? I was thinking desktop and then move them. I dont know when the OEM gets copied over, so I want to be sure it happens after install. And btw, I am using RunOnceEx method. Thanks!

Link to comment
Share on other sites

$OEM$ folders are copied to your PC before RunOnceEX runs.

So, you'd better create SFXs (or use COPY command) that run via your RunOnceEX. And you put those SFXs in a later phase after original programs are installed.

Link to comment
Share on other sites

So in fact it would be like this

[Jump2reg]
REG ADD %KEY%\iAdd /VE /D "Installing Jump2reg" /f
REG ADD %KEY%\iAdd /V Inum /D "%systemdrive%\Install\Jump2reg\Jump2reg.msi /qn" /f
FLAG2=%ProgramFiles%\Jump2reg\Jump2Reg.J2R

My Jump2Reg.J2R actually get's copied during runoncEX setup and then

RunoncEX

REM       Jump2reg
REG ADD %KEY%\1005 /VE /D "Installing Jump2reg" /f
REG ADD %KEY%\1005 /V 1 /D "%systemdrive%\Install\Jump2reg\Jump2reg.msi /qn" /f
REG ADD %KEY%\1005 /V 2 /D "CMD /C COPY \"%systemdrive%\Install\Jump2reg\Jump2Reg.J2R\" \"%ProgramFiles%\Jump2reg\" /Y"

is copied to =%ProgramFiles%\Jump2reg during runoncEX execution after program is installed..

The /Y will copy it over existing or if you need a DEL then just do it...

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