MSFN Forum: SFX- Remove file after extraction? - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

SFX- Remove file after extraction? Rate Topic: -----

#1 User is offline   durex 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 953
  • Joined: 21-October 04

Posted 17 December 2004 - 06:47 PM

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


#2 User is offline   Whampoom 

  • Junior
  • Pip
  • Group: Members
  • Posts: 58
  • Joined: 14-April 04

Posted 17 December 2004 - 07:02 PM

In "Run after extract" put : cmd /c del /f /q <path-to\settings.reg>
Not tested.. :D

#3 User is offline   durex 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 953
  • Joined: 21-October 04

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 User is offline   Whampoom 

  • Junior
  • Pip
  • Group: Members
  • Posts: 58
  • Joined: 14-April 04

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

#5 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,338
  • Joined: 02-December 03

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.

#6 User is offline   durex 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 953
  • Joined: 21-October 04

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

#7 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,338
  • Joined: 02-December 03

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?

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy