Without using additional scripting (batch,vbs,etc), is it possible to add an additional command in an SFX that deletes a particular file after it runs via the setup parameter?
Basically, ive got a few sfx installers that import reg settings using "Setup=regedit /s settings.reg" and I want to have that file deleted once its been imported...
possible?
t i a
Page 1 of 1
SFX- Remove file after extraction?
#2
Posted 17 December 2004 - 07:02 PM
In "Run after extract" put : cmd /c del /f /q <path-to\settings.reg>
Not tested..
Not tested..
#3
Posted 17 December 2004 - 07:07 PM
Thx for the cmd... I was just trying 'del' and it wasnt working... but Im still left with a problem... how can I import the reg file now that im using the Setup cmd (run file after extraction) for this delete command? I tried placing it in the presetup (run before extraction), but it doesnt seem to work...
#4
Posted 17 December 2004 - 07:20 PM
Place the reg file like next to the sfx then in run before extract:
regedit /S %Systemdrive%\Install\bla-bla.reg
regedit /S %Systemdrive%\Install\bla-bla.reg
#5
Posted 17 December 2004 - 07:28 PM
that is what your cleanup.cmd does
so if u use sfx and unpack to temp folder
your cleanup should do that all at the same time.
so if u use sfx and unpack to temp folder
your cleanup should do that all at the same time.
#6
Posted 17 December 2004 - 07:59 PM
Yea.. i was hoping to have it all bundled in the sfx and not have to worry about cleaning it up with other files...
thx guys
thx guys
#7
Posted 17 December 2004 - 08:43 PM
well if u want to do it that way u can but
wouldn't it be easier to just have one command do it all for u?
wouldn't it be easier to just have one command do it all for u?
Share this topic:
Page 1 of 1



Help

Back to top








