Jump to content

Recommended Posts

Posted

Sorry but due to the mass of threads with the keywords and the limitation of the search feature i have no clue how to make a 7-zip that will silently automatically extract it's contents to a particualar folder then run a command.

Thanks for the help


Posted

The topic has already been covered at some point of time. But for the ease of use,

1. make a cmd/bat file with the setup routine you would like to follow.

2. make a 7z file using right click option in file explorer and including the setup.cmd as highlighted in step 1 (7zip is supposed to be installed)

2. Copy this text as config.txt

;!@Install@!UTF-8!

Title="Archive"

BeginPrompt=""

RunProgram="Setup.cmd /T:%%T"

;!@InstallEnd@!

3. Copy the archive say archive.7z, 7zS.sfx, and config.txt in a folder.

4. Go in a dos box and type following command:

copy /b 7zS.sfx + config.txt + archive.7z archive.exe

5. You will get archive.exe in this folder which will do the purpose as required.

btw, I for myself follow enitrely different procedure to make installer. I make the sfx archive using 7z and for final installation as you mentioned in a particular folder use Winrar to first, extract the contents in a particualr folder, and then run command after extraction. It helps with more versatile features.

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...