December 18, 200421 yr 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
December 18, 200421 yr In "Run after extract" put : cmd /c del /f /q <path-to\settings.reg>Not tested..
December 18, 200421 yr Author 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...
December 18, 200421 yr Place the reg file like next to the sfx then in run before extract: regedit /S %Systemdrive%\Install\bla-bla.reg
December 18, 200421 yr that is what your cleanup.cmd doesso if u use sfx and unpack to temp folderyour cleanup should do that all at the same time.
December 18, 200421 yr Author 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
December 18, 200421 yr 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?
Create an account or sign in to comment