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

Make a self-extracting file in DOS?

Reply to Message Icon

Original Message
Name: El-Trucha
Date: November 17, 2004 at 16:17:19 Pacific
Subject: Make a self-extracting file in DOS?
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


Report Offensive Message For Removal


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

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.


Report Offensive Follow Up For Removal

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

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


Report Offensive Follow Up For Removal

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

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.


Report Offensive Follow Up For Removal

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

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


Report Offensive Follow Up For Removal

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

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

M2


Report Offensive Follow Up For Removal


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

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.


Report Offensive Follow Up For Removal

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

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"



Report Offensive Follow Up For Removal

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

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



Report Offensive Follow Up For Removal

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

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.


Report Offensive Follow Up For Removal

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

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


Report Offensive Follow Up For Removal

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

Check your email


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


Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Make a self-extracting file in DOS?

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge