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

WinRAR SFX "wait / timout" help

- - - - -

  • Please log in to reply
4 replies to this topic

#1
thedayismine

thedayismine
  • Member
  • 1 posts
  • Joined 22-October 12
  • OS:Windows 7 x64
  • Country: Country Flag
Hello,
I'm creating a basic WinRAR self-executable
This is my code:

Setup=STB.exe
Setup=SJ.exe
TempMode
Silent=1
Overwrite=1


Problem:
I need it to first start "STB.exe" and then wait about 10-12 seconds for the program to load, and then subsequently begin SJ.exe
Right now it runs them both at the same time.

Any way to do this?

Thank you for reading, =)


How to remove advertisement from MSFN

#2
Sp0iLedBrAt

Sp0iLedBrAt

    MSFN Addict

  • MSFN Sponsor
  • 1,728 posts
  • Joined 19-March 09
  • OS:XP Pro x86
  • Country: Country Flag
Maybe something along the lines of this http://www.msfn.org/...ms/#entry952677

#3
skavenger

skavenger

    Master of Tools

  • Member
  • Pip
  • 55 posts
  • Joined 19-October 05
  • OS:Windows 7 x64
  • Country: Country Flag
Just create a small Batch-file like this:

@echo off
start /wait STB.exe
start /wait SJ.exe

Save it as install.bat, add it to your SFX and use this as Setup.

#4
maddyrox

maddyrox
  • Member
  • 6 posts
  • Joined 01-December 12
  • OS:none specified
  • Country: Country Flag
Can we create SFX using Winrar, which can throw error based on system architecture?

Suppose, a program has to be installed in C:\Program Files (x86) and user changed the extraction path to C:\Program Files, I want that extraction in this case should throw error, as my program should not get installed in this directory ....C:\Program Files....


Can somebody help me in this?

#5
skavenger

skavenger

    Master of Tools

  • Member
  • Pip
  • 55 posts
  • Joined 19-October 05
  • OS:Windows 7 x64
  • Country: Country Flag

Can we create SFX using Winrar, which can throw error based on system architecture?

Suppose, a program has to be installed in C:\Program Files (x86) and user changed the extraction path to C:\Program Files, I want that extraction in this case should throw error, as my program should not get installed in this directory ....C:\Program Files....


Hm, i not really know. what you want.

Why can the users change the extraction-path?
If you want to extract your prog always to c:\program files - set this path as target in advanced sfx-settings in WinRAR and that's it.

But please remember: 'c:\program files (x86)' exists on win x64 machines only.

The better way to extract your program always to the right path is to use system-variables like %programfiles%.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users