durex Posted December 18, 2004 Share Posted December 18, 2004 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 Link to comment Share on other sites More sharing options...
Whampoom Posted December 18, 2004 Share Posted December 18, 2004 In "Run after extract" put : cmd /c del /f /q <path-to\settings.reg>Not tested.. Link to comment Share on other sites More sharing options...
durex Posted December 18, 2004 Author Share Posted December 18, 2004 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... Link to comment Share on other sites More sharing options...
Whampoom Posted December 18, 2004 Share Posted December 18, 2004 Place the reg file like next to the sfx then in run before extract: regedit /S %Systemdrive%\Install\bla-bla.reg Link to comment Share on other sites More sharing options...
Astalavista Posted December 18, 2004 Share Posted December 18, 2004 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. Link to comment Share on other sites More sharing options...
durex Posted December 18, 2004 Author Share Posted December 18, 2004 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 Link to comment Share on other sites More sharing options...
Astalavista Posted December 18, 2004 Share Posted December 18, 2004 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? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now