Computing.Net > Forums > Disk Operating System > Make a self-extracting file in DOS?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Make a self-extracting file in DOS?

Reply to Message Icon

Name: El-Trucha
Date: November 17, 2004 at 16:17:19 Pacific
OS: Windows XP SP2
CPU/Ram: 2.8 GHz/448 MB
Comment:

Hello every1!!
OK, I need a DOS program that zips up files and then saves the ZIP to an EXE that runs another program inside the ZIP when it's executed...I need a command-line program, I dont care if it's DOS or Windows...:P
I have an application called "ZIP 2 Secure EXE", but it's not command-line...:(
What program should I use?? I dont care if I need 2 use multiple programs...;)
Thanx!! :)

El-Trucha
http://www.masterleito.ath.cx
ftp://tsfc.homeftp.net
hotline://tsfc.ath.cx



Sponsored Link
Ads by Google

Response Number 1
Name: jboy
Date: November 17, 2004 at 16:53:23 Pacific
Reply:

The classic PKZip and companion Zip2Exe were the DOS utilities most often used. Other archivers could create self extracting files in their own format (ARJ, RAR, LZH etc)

Even WinZip offers a command line utility, but you can use it's graphical interface to create SFX files by various means.


The secret of life is honesty and fair dealing..if you can fake that, you've got it made.


0

Response Number 2
Name: El-Trucha
Date: November 17, 2004 at 17:10:51 Pacific
Reply:

Yeah...I already tried that, but how do I make it run an EXE inside the ZIP when its run?? :P
Thanx!! ;)

El-Trucha
http://www.masterleito.ath.cx
ftp://tsfc.homeftp.net
hotline://tsfc.ath.cx


0

Response Number 3
Name: jboy
Date: November 17, 2004 at 17:31:29 Pacific
Reply:

Wha.. ?

Doesn't really work that way.

To run a program 'from inside' an archive, it has to be extracted somewhere

Programs like ZipMagic allow you the illusion of that - Zips appear as folders and can be treated as such.

Not really sure what you're trying to do - sounds like you're trying to put together some sort of installer package - which is somewhat more than an SFX.


The secret of life is honesty and fair dealing..if you can fake that, you've got it made.


0

Response Number 4
Name: El-Trucha
Date: November 17, 2004 at 18:18:45 Pacific
Reply:

What I want to do is to extract the files to a temporary folder automatically, and then run a program in the folder, all when u run the program...:P
Thanx!! ;)

El-Trucha
http://www.masterleito.ath.cx
ftp://tsfc.homeftp.net
hotline://tsfc.ath.cx


0

Response Number 5
Name: Mechanix2Go
Date: November 17, 2004 at 21:21:59 Pacific
Reply:

http://ourworld.compuserve.com/homepages/anima/zipad.htm

M2


0

Related Posts

See More



Response Number 6
Name: jboy
Date: November 17, 2004 at 21:26:14 Pacific
Reply:

Ok - well, it may require a bit of effort, but ARJ for DOS had that capability - from the ARJ manual:

HOW TO CUSTOMIZE AN EXECUTABLE-SELF EXTRACTING ARJ ARCHIVE

'It is possible to customize an ARJ self extracting archive to execute command line options as if the user typed in the options'

If you're unfamiliar with ARJ, it has an enormous number of options and switches - likely to be a bit of a learning curve.


The secret of life is honesty and fair dealing..if you can fake that, you've got it made.


0

Response Number 7
Name: melee5
Date: November 18, 2004 at 02:45:28 Pacific
Reply:

You just described what seems to be a revelation amoung XP users in that it is installed by default on those machines and all one has to do is type iexpress into the Run Box to get started building your own MS update type of self extracting, self installing executable. You will need Windows and it's 32 bit file system to pull it off though. The program has actually been around since NT days so nothing really new about it.

See this KB article on it and find a download location for XP less peoples.
http://support.microsoft.com/?kbid=237803
A bit more info here.
http://www.calwell.ca/article.php?story=2004062014591936

Copy, Paste into Notepad, Save As an .inf file the following lines. Then right click and choose Install to associate .sed file type such that you can just double click one to launch iexpress. Or launch it from the Start Menu just like a real program. Make sure you have installed the downloaded files to your System or System32(NT) folder first. Shortcuts don't get made if the executable is not where it's supposed to be (no icon to work with).

; IExpress Installer Inf
;

[version]
signature="$CHICAGO$"
AdvancedINF=2.5, "You need a newer version of Advpack.dll"

[DestinationDirs]
Cpyfile =11 ;Windows\System LDID number
; also WinNT\System32 LDID number

[DefaultInstall]
AddReg=Adkeys
UpdateInis=MakLnk

[Adkeys]
HKLM,"Software\CLASSES\.sed",,,"SEDfile"
HKLM,"Software\CLASSES\.sed","Content Type",,"text/config"
HKLM,"Software\CLASSES\.sed\ShellNew","NullFile"
HKLM,"Software\CLASSES\SEDFile",,,"Iexpress SED"
HKLM,"Software\CLASSES\SEDFile\DefaultIcon",,,"iexpress.exe,-2201"
HKLM,"Software\CLASSES\SEDFile\shell\open",,,"&Open"
HKLM,"Software\CLASSES\SEDFile\shell\open\command",,,"%11%\iexpress.exe %1"
HKLM,"Software\CLASSES\SEDFile\shell\print",,,"&Print"
HKLM,"Software\CLASSES\SEDFile\shell\print\command",,,"%10%\NOTEPAD.exe /p %1"
HKLM,"Software\CLASSES\SEDFile\shell\edit",,,"&Edit"
HKLM,"Software\CLASSES\SEDFile\shell\edit\command",,,"%10%\NOTEPAD.exe %1"

[MakLnk]
setup.ini, progman.groups,,"group0="
setup.ini, group0,,"""IExpress"",""""""%11%\Iexpress.exe"""""",,,,,Iexpress"



0

Response Number 8
Name: El-Trucha
Date: November 18, 2004 at 13:03:15 Pacific
Reply:

Mechanix2Go;
I need a self extracting, with auto-execute EXE after extracted...:P

jboy;
OK!! I'll try ARJ...thanx!! ;)

melee5';
Iexpress was my first tought, but its not command-line...:(


Actually, I need a command-line AND small program...:P

Thanx every1!! ;)

El-Trucha
http://www.masterleito.ath.cx
ftp://tsfc.homeftp.net
hotline://tsfc.ath.cx



0

Response Number 9
Name: jboy
Date: November 18, 2004 at 15:53:40 Pacific
Reply:

ARJ has a ridiculous number of options - I doubt if I ever used a tenth of them all of the years I've worked with it. As a command line archiver, hard to beat - supports LFNs as well.

Kind of shareware now, but there are, I think, freeware/nagless versions around.


The secret of life is honesty and fair dealing..if you can fake that, you've got it made.


0

Response Number 10
Name: El-Trucha
Date: November 19, 2004 at 14:22:41 Pacific
Reply:

Well, I looked for it, but I only found that shareware version...:@
What's the freeware called?? :P
Thanx!! ;)

El-Trucha
http://www.masterleito.ath.cx
ftp://tsfc.homeftp.net
hotline://tsfc.ath.cx


0

Response Number 11
Name: jboy
Date: November 19, 2004 at 14:48:46 Pacific
Reply:

Check your email


Never argue with an idiot. They will only bring you down to their level and beat you with experience


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Make a self-extracting file in DOS?

DOS Files Needed for Self Extracting File www.computing.net/answers/dos/dos-files-needed-for-self-extracting-file/3823.html

HELP!....removing a file in dos www.computing.net/answers/dos/helpremoving-a-file-in-dos-/3028.html

How to run a .reg file in dos. www.computing.net/answers/dos/how-to-run-a-reg-file-in-dos/2297.html