Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

sfx Presetup

Featured Replies

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


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.

  • 1 year later...

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

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.