Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

SFX- Remove file after extraction?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
durex

durex

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 952 posts
  • Joined 21-October 04
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
Need a free, easy, ad-free place to toss your images? Enjoy.


How to remove advertisement from MSFN

#2
Whampoom

Whampoom

    Junior

  • Member
  • Pip
  • 58 posts
  • Joined 14-April 04
In "Run after extract" put : cmd /c del /f /q <path-to\settings.reg>
Not tested.. :D

#3
durex

durex

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 952 posts
  • Joined 21-October 04
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...
Need a free, easy, ad-free place to toss your images? Enjoy.

#4
Whampoom

Whampoom

    Junior

  • Member
  • Pip
  • 58 posts
  • Joined 14-April 04
Place the reg file like next to the sfx then in run before extract:
regedit /S %Systemdrive%\Install\bla-bla.reg

#5
Astalavista

Astalavista

    MSFN loyalist

  • Member
  • PipPipPipPipPipPipPipPipPip
  • 3,417 posts
  • Joined 02-December 03
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.

#6
durex

durex

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 952 posts
  • Joined 21-October 04
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
Need a free, easy, ad-free place to toss your images? Enjoy.

#7
Astalavista

Astalavista

    MSFN loyalist

  • Member
  • PipPipPipPipPipPipPipPipPip
  • 3,417 posts
  • Joined 02-December 03
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?