MSFN Forum: sfx Presetup - 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 Presetup Rate Topic: -----

#1 User is offline   sugargenius 

  • Group: Members
  • Posts: 5
  • Joined: 14-May 05

Posted 11 October 2007 - 09:26 AM

I'm trying to create a winrar sfx that extracts to a directory and then runs a batch file. If the destination dir already exists, I want to delete it. I thought I could do this with Presetup:

Path=C:\myapp
Presetup=cmd /c rmdir /s /q C:\myapp
Setup=temp\run.cmd
Silent=2
Overwrite=1
Title=Myappp


It doesn't delete the c:\myapp folder. What am I missing? I tried this too:

Path=C:\myapp
Presetup="cmd /c rmdir /s /q C:\myapp"
Setup=temp\run.cmd
Silent=2
Overwrite=1
Title=Myappp


#2 User is offline   ajua 

  • Custom Installer Maker
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,260
  • Joined: 16-April 05

Posted 11 October 2007 - 10:21 AM

i never came across with a need to delete some folder prior to extracting an sfx archive.
try other commands to se if the presetup is working.

remember that if you use overwrite=1 any file that exist will be overwritten, so if you are trying to delete the folder because of this, you are safe with overwrite=1.

#3 User is offline   kif 

  • Group: Members
  • Posts: 1
  • Joined: 03-July 07

Posted 24 May 2009 - 12:29 PM

For future googlers...


The Presetup step ignores the system's PATH, that's why simply using 'cmd' doesn't work.
On the other hand, environment variables do get expanded, so you can write this instead:

Presetup=%ComSpec% /c rmdir /s /q C:\myapp


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