September 4, 200421 yr How do I add a file to a folder(A), delete a file(Z), then add my custom file(Z)?
September 4, 200421 yr Author When I install an application, you have an .exe file. I want to delete that one, and add my own. Then I want to add a custome file into the folder with the .exe file.
September 6, 200421 yr Author I got it all figured out. If anyone wants to know how I did it, just ask.
September 6, 200421 yr 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!
September 7, 200421 yr $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.
September 7, 200421 yr So in fact it would be like this[Jump2reg]REG ADD %KEY%\iAdd /VE /D "Installing Jump2reg" /fREG ADD %KEY%\iAdd /V Inum /D "%systemdrive%\Install\Jump2reg\Jump2reg.msi /qn" /fFLAG2=%ProgramFiles%\Jump2reg\Jump2Reg.J2RMy Jump2Reg.J2R actually get's copied during runoncEX setup and then RunoncEXREM Jump2regREG ADD %KEY%\1005 /VE /D "Installing Jump2reg" /fREG ADD %KEY%\1005 /V 1 /D "%systemdrive%\Install\Jump2reg\Jump2reg.msi /qn" /fREG 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...
Create an account or sign in to comment