Jump to content

Trying to make an installer with 7 zip


Recommended Posts

I made the sfx file,self extracting exe.

Is there a way when it is executing it, extract the contents to a specific folder, also after it is extracted run a batch file?. Without having to do any but double click the exe?.

Thanks for any help I haven't used 7-Zip that much

Edited by clivebuckwheat
Link to comment
Share on other sites


I made the sfx file,self extracting exe.

Is there a way when it is executing it, extract the contents to a specific folder, also after it is extracted run a batch file?. Without having to do any but double click the exe?.

Thanks for any help I haven't used 7-Zip that much

You may be interested (to get an example) in the CASBAH:

http://www.911cd.net/forums//index.php?showtopic=21123

Basically all the 7zipsfx part you need is this is this:

http://www.911cd.net/forums//index.php?showtopic=21123&st=44

The sintax is clearly explained in the download:

http://sourceforge.net/projects/sevenzip/files/7-Zip/9.20/7z920_extra.7z/download

Mind you there are "enhanced" 7-zip versions, this one adds a number of useful things:

http://7zsfx.solta.ru/en/

You will probably need to use the above to be able to "extract the contents to a specific folder":

The modified module provides a lot of options for creating SFX archives (SFX stands for self=extracting). This is what you can do with this module:

  • specify the path to extract
  • use absolute and relatives paths
  • select between interactive, silent and hidden extraction
  • control the appearance of dialog prompts and text
  • configure different installation options for packaged applications, and use command line switches for choosing the required installation scenario
  • simply extract the archive to the specified folder
  • consequently run several files (.exe, .msi, .reg and so on) after the extraction to install configured applications
  • replace .bat and .cmd files and eliminate the need in supplementary utilities like "StartX.exe", "msistub.exe" and so on
  • create shortcuts for programs with the icons of your choice
  • use archives with different compression methods (LZMA, Deflate, PPMd) supported by 7-zip archiver
  • delete temporary files after use as well as the SFX archive
  • and many more...[

jaclaz

Edited by jaclaz
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...