MSFN Forum: Can regfiles be executed from sfx archives before.. - 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

Can regfiles be executed from sfx archives before.. Rate Topic: -----

#1 User is offline   dobbelina 

  • Newbie
  • Group: Banned
  • Posts: 30
  • Joined: 20-May 05

Posted 21 August 2006 - 10:10 PM

Can regfiles be executed from sfx archives before setup runs ?
I was wondering, would this work, and if so, please correct my misstakes.

I add extracted installer files to an sfx rar archive.
Instead of pointing the "Run after extraction" path to setup.exe, I point it to setup.cmd.

In the setup.cmd I put something like this:
REGEDIT /S regtweaks.reg
Application.exe /S


Would this work ?
The reason i'm doing it is because it would be neat to have it all bundled together with the sfx archive,
instead of separate regfiles.

Perhaps one could even execute several bundled sfx archives (all from one) this way ?
I assume those archives that are bundled in the "main archive" can't extract to a temp folder, but has to be extracted directly to a location somewhere... ?

Please comment, maybe the info is here somewhere, but can't find it today :rolleyes:

This post has been edited by dobbelina: 21 August 2006 - 10:12 PM



#2 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 21 August 2006 - 10:37 PM

It should work.

#3 User is offline   dobbelina 

  • Newbie
  • Group: Banned
  • Posts: 30
  • Joined: 20-May 05

Posted 21 August 2006 - 11:09 PM

Ok, thanks.
So there's no need to put in any exotic stuff like "start /wait" between the
regfile executing and the main installer ?

I mean it should execute in the order they are listed, and wait until
each entry is fully processed before going on to the next one.

I think I saw something like this before:
start /wait REGEDIT /S regtweaks.reg
Application.exe /S

This post has been edited by dobbelina: 21 August 2006 - 11:37 PM


#4 User is offline   ajua 

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

Posted 22 August 2006 - 04:56 AM

i always run commands with "start /wait" just to be sure everything get done without going any further with other things in the files.

if you mean that you can make a BIG sfx archive with many sfx archives inside as well and every sfx with its own commands you can do that. i dont know why you want to do that but if you NEED to, then make sure you get all working because this way finding a problem or a spelling error in the commands will be very hard.

#5 User is offline   T D 

  • Go MSFN!
  • PipPipPipPipPip
  • Group: Members
  • Posts: 940
  • Joined: 05-April 06

Posted 22 August 2006 - 06:19 AM

But a reg file takes seconds to write to the registry if it's under 50kb and that's still a lot of text.
But to be safe, use start /wait.

This post has been edited by T D: 22 August 2006 - 06:19 AM


#6 User is offline   dobbelina 

  • Newbie
  • Group: Banned
  • Posts: 30
  • Joined: 20-May 05

Posted 22 August 2006 - 08:44 PM

Ok thanks everyone for your help.
Just did a few testarchives that executes from a cmd file.
Works like a charm !

PS. I noticed if i put "@echo off" in the beginning of the cmd file, none of the entries will be shown.
Is there a way to totally disable the cmd window to come up at all ?
Kinda silent type..

#7 User is offline   ajua 

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

Posted 22 August 2006 - 09:20 PM

use cmdow (a progra to hide the console window) search for it, i can remember where i get it. read the unattender guide, it should be there.

#8 User is offline   dobbelina 

  • Newbie
  • Group: Banned
  • Posts: 30
  • Joined: 20-May 05

Posted 22 August 2006 - 09:37 PM

I already have it (from tools archive in WPI), ehh what would I put in the
cmd file to get this to work ?(an example please)
I assume cmdow.exe has to be added to the archive also.

This post has been edited by dobbelina: 22 August 2006 - 09:38 PM


#9 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 22 August 2006 - 11:01 PM

Put this as the first line in your CMD: cmdow @ /hid

Put cmdow.exe in your system32 for global use.

#10 User is offline   T D 

  • Go MSFN!
  • PipPipPipPipPip
  • Group: Members
  • Posts: 940
  • Joined: 05-April 06

Posted 23 August 2006 - 04:38 AM

Or compile the cmd into an exe with quickbfc and set it as "ghost application".

#11 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 23 August 2006 - 07:58 AM

WinRar supports more than 1 "Run after extraction" command. Add further commands in the comment.

#12 User is offline   dobbelina 

  • Newbie
  • Group: Banned
  • Posts: 30
  • Joined: 20-May 05

Posted 23 August 2006 - 10:27 PM

View Postmazin, on Aug 22 2006, 11:01 PM, said:

Put this as the first line in your CMD: cmdow @ /hid

Put cmdow.exe in your system32 for global use.

Ok, thanks for the tip.


View PostMHz, on Aug 23 2006, 07:58 AM, said:

WinRar supports more than 1 "Run after extraction" command. Add further commands in the comment.

Aha !
Didn't know that :P that's even better.
Just separate the commands with a , or ?

This post has been edited by dobbelina: 23 August 2006 - 10:32 PM


#13 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 24 August 2006 - 12:30 AM

View Postdobbelina, on Aug 24 2006, 02:27 PM, said:

Just separate the commands with a , or ?

In the comment, for example:
Setup=regedit.exe /s regtweaks.reg
Setup=application.exe

Using the WinRar Gui, you should see the comment on the last tab when creating an SFX.

#14 User is offline   dobbelina 

  • Newbie
  • Group: Banned
  • Posts: 30
  • Joined: 20-May 05

Posted 24 August 2006 - 10:24 PM

Many thanks !
Works very well. Great to know.

#15 User is offline   sk8er_boi 

  • I have a headache
  • PipPip
  • Group: Members
  • Posts: 144
  • Joined: 11-December 03

Posted 25 August 2006 - 02:26 AM

View PostMHz, on Aug 24 2006, 12:30 AM, said:

View Postdobbelina, on Aug 24 2006, 02:27 PM, said:

Just separate the commands with a , or ?

In the comment, for example:
Setup=regedit.exe /s regtweaks.reg
Setup=application.exe

Using the WinRar Gui, you should see the comment on the last tab when creating an SFX.


Whoa that was cool. I don't need that bat files anymore.

Is there something with 7z sfx?

#16 User is offline   ajua 

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

Posted 25 August 2006 - 12:36 PM

i use just a few sfx archives but is good to know that you can run multiple commands in one sfx archive. i dont need that, but will come handy from time to time.

thanks for the tip.

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