You are here

7-Zip: 7zip Self-Extracting Installer

5 posts / 0 new
Last post
LittleUnkn0wn
Offline
Last seen: 1 year 4 months ago
Joined: 2006-11-02 11:09
7-Zip: 7zip Self-Extracting Installer

I've opened it up with Resource Hacker, and I would like to specify a directory to extract to. The default is the directory that the exe is currently in. What should I edit?

EDIT: Let me rephrase: I am trying to make a self-extracting archive, and I want it to default to a certain location, instead of its current directory i.e. instead of defaulting to X:\blah blah, I want it to default to C:\, for example.

wsm23
Offline
Last seen: 12 years 9 months ago
Joined: 2006-01-09 22:05
?

Why would you use universal extractor on a sfx/exe archive?

That is the whole point of a self extractor isn't it? So you do not have to use a separate program.

Life is about the journey not the destination!

The Kazoo Spartan

David Dixon II
David Dixon II's picture
Offline
Last seen: 2 years 9 months ago
Developer
Joined: 2007-06-11 22:54
I Have Used Resource Hacker

I Have Used Resource Hacker To Edit A 7Zip Self Extractor.

I Actually Think John Has Done That With The Icon And Everything.
To Add Text You Have To Edit Some Stuff But You Can Get It To Display What You Want.
Its Very Easy.

You'll Find Out How To Edit It And Resave It

Na na na, come on!

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 28 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Don't Bother

The 7-Zip self-extractor installers aren't being used anymore by PortableApps.com apps. And the release of the NSIS-based PortableApps.com Installer for non-PortableApps.com apps is close at hand. It automatically uses a custom icon and other fun things.

Sometimes, the impossible can become possible, if you're awesome!

rab040ma
Offline
Last seen: 5 months 3 days ago
Joined: 2007-08-27 13:35
temporary solution

In other words, until the new version is released:

If you are installing one of the older apps with the self-extractor, install (extract) it into a temporary directory, then copy/move the directory tree to the place you want it to be. Its not elegant, but should work just this once. An "installer" is used by PA to put a pretty face on things; all it really needs is for the directory tree to be extracted.

The new version is likely to prompt you for a place to install, although if you install from the PAM it will put it in a standard location.

If you are making something new (not currently in the Suite), it's definitely better to model your work on one of the NSIS samples than on the 7-zip self-extractor. NSIS is very flexible and pretty easy.

MC

Log in or register to post comments