• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
keytotime

How to make a 7-Zip Switchless Installer

288 posts in this topic

I am trying to make the unattended acrobate installation. I have Corporation version. I used 7zip i have tried it is not working I don't know why. Can you help me?

0

Share this post


Link to post
Share on other sites

1. if u used the search u would have found the thread dedicated to Adobe Acrobat Pro

2. you would have found the compressing 7zip doesn't save u any space maybe a couple of kb. not much in my opinion.

3. u can use a simple bat file

0

Share this post


Link to post
Share on other sites

Yes, I do have corporation but I need only to know how to config the 7zip file since it is not installing with config above I mentioned. Thank you

0

Share this post


Link to post
Share on other sites

i have a question. I'm trying to make a zip self extracting file; however I'm not using it to actually install a program, but rather just extract multiple zip files into different files. The reason i don't leave them as they are (because the batch file works just fine when ran by itself) is to try and save some space on my cd. So with that said here is my batch file and my config.text file if anyone can help i would much appreciate it.

Batch File:

color 0A
@echo off
SetLocal enableextensions
CLS
Echo.
set fav=%~dp0
7za.exe x -y -aoa %fav%\Favs.7z -o"%USERPROFILE%\Favorites"
7za.exe x -y -aoa %fav%\EBooks.7z -o"%USERPROFILE%\My Documents\My E-Books"
7za.exe x -y -aoa %fav%\pics.7z -o"%USERPROFILE%\My Documents\My Pictures"
7za.exe x -y -aoa %fav%\Prog.7z -o"%ProgramFiles%"
7za.exe x -y -aoa %fav%\Wallpaper.7z -o"%Systmeroot%"
7za.exe x -y -aoa %fav%\Resources.7z -o"%Systmeroot%"
EndLocal
GoTo :EOF
:EOF
EXIT

Config.txt:

;!@Install@!UTF-8!
RunProgram="favs.cmd"
;!@InstallEnd@!

0

Share this post


Link to post
Share on other sites

** no one have a suggestion **

oh well i'll just do it a different way and play around with it until i figure it outs

0

Share this post


Link to post
Share on other sites

Thank you. :)

With this as my guide I was able to make a fantastic SFX of my entire Macromedia collection... Around 146MB for Dreamweaver, Flash, Fireworks and the Flash Video Exporter. :thumbup

[EDIT]

Oh, as a sidenote... Everybody now really HAS to use RyanVM's 7zS file (oh, poor us :thumbup ) because as was said there is now more 7zS file included in the 7-zip distribution.

Edited by galvanocentric
0

Share this post


Link to post
Share on other sites
Oh, as a sidenote... Everybody now really HAS to use RyanVM's 7zS file (oh, poor us  ) because as was said there is now more 7zS file included in the 7-zip distribution.

Does anyone know why they stopped inc. 7zS in the 7-Zip distro?

0

Share this post


Link to post
Share on other sites
Oh, as a sidenote... Everybody now really HAS to use RyanVM's 7zS file (oh, poor us  ) because as was said there is now more 7zS file included in the 7-zip distribution.

Does anyone know why they stopped inc. 7zS in the 7-Zip distro?

It is an extra now. Not everyone needs it, and its purpose is pretty specialized. Cuts down on the size of the installer, and people who want the new one, can just download the extras pack.

0

Share this post


Link to post
Share on other sites

Where do i have to put startx.exe? Should I use this command?

copy /b 7zs.sfx + config.txt + (whatever the archive name).7z (Installer_Name).exe startx.exe

Or should i pack it with the install files?

grtz

EDIT: Ow, I didn't saw this topic has more than 1 page... found the solution:

Copy all the installation files? I assumed you were referring to any files required to install the application we are trying to package. If I am using .msi I must include StartX.exe in the folder with the installation files. (Success)

Maybe someone should add that to the guide

I really love the guide, and when this is added, it would be perfect

Edited by maybeme
0

Share this post


Link to post
Share on other sites

Well... I'll bump this up since I think it's a great guide and should be easy to find.

By the way... I just made an installer for PhotoshopCS using this method (after finding the 7zS.sfx from the extras package) and also by using the built in SFX method in WinRAR. For some reason, my WinRAR SFX came out at 160,357KB and the 7-zip SFX came out at 160,752KB (both set to Ultra Compression). Strange, no? :)

It reminds me of a simple compression algorithm that we had to make for one of my computer science classes. My friend's "compression" algorithm would actually make the output files smaller if the originals were under 50bytes... :P

0

Share this post


Link to post
Share on other sites

hey :hello:

how do i import registries to the install?

could i do this?

copy /b 7zs.sfx + registrytweaks.reg + config.txt + (whatever the archive name).7z (Installer_Name).exe

Edited by maniaq
0

Share this post


Link to post
Share on other sites

It's a real pain in the neck to have to edit a 7zip file with reshack, do some scripting, and write some .cmd files just to make a silent installer, when the ability is already built into Winrar. I mean who really cares about a few kb or a few megs? Doesn't anyone use a dvd-rw for their unattended?

Is there a reason for using 7zip over Winrar other than allegedly smaller installer size?

I say "allegedly" cause I made 2 silent installers for Quicktime Alternative, 1 with 7zip and 1 with Winrar. The difference in size was a matter of a few kb, and it was alot easier and faster to make the Winrar silent installer.

Edited by SyntaxError
0

Share this post


Link to post
Share on other sites

I guess it is a matter of preference. I have used both WinRAR and 7ZIP and I prefer the 7ZIP method. I find it more flexible.

Use what you are comfortable with.

0

Share this post


Link to post
Share on other sites
hey :hello: 

how do i import registries to the install?

could i do this?

copy /b 7zs.sfx + registrytweaks.reg + config.txt + (whatever the archive name).7z (Installer_Name).exe

I don't think that would work. Just make another regfile and putt it in runonex

grtz

PS: Can a moderator please make this thread a sticky?

0

Share this post


Link to post
Share on other sites

Does anybody know if you can unpack that file again. I get an error, so I want to check if I mistyped something in my config.txt. Anybody an idea?

grtz

0

Share this post


Link to post
Share on other sites

Extract the file. Install 7-Zip, right click and choose extract. Then try again.

0

Share this post


Link to post
Share on other sites

Hello,

I'm new to this stuff and i've read this guide and made a simple winrar installer but i've got a few questions :

- how do i tell it which path to install?

- hoe can i preconfigure some setup options? (like shortcuts yes/no and file associations and whatever..)

or is this not possible?

Thanks!

0

Share this post


Link to post
Share on other sites
Hello,

I'm new to this stuff and i've read this guide and made a simple winrar installer but i've got a few questions :

- how do i tell it which path to install?

- hoe can i preconfigure some setup options? (like shortcuts yes/no and file associations and whatever..)

or is  this not possible?

Thanks!

These settings you have to set with the switches. Just look if you can find all the switches for your type of installer.

grtz

0

Share this post


Link to post
Share on other sites
Hello,

- how do i tell it which path to install?

- hoe can i preconfigure some setup options? (like shortcuts yes/no and file associations and whatever..)

or is  this not possible?

Thanks!

When you're making the archive, choose "Create SFX Archive" then click on the "Advanced" tab and then "SFX options"

From there you can configure paths, silent/nonsilent mode. shortcuts etc.

Try the help button if you need more info on each option.

File associations will need a reg file or a cmd file

0

Share this post


Link to post
Share on other sites

awesome guide ! thank you very much :)

my first program installed like this was perfectdisk 7 + reg

0

Share this post


Link to post
Share on other sites

nice guide...

Hopefully this will assist with w2k system revamp as I want to try unattended AutoPatcher(Sept) patching of w2ksp4...been using hfslip tool, which is great.

Have had hotfix issues though, so, here goes nutin'...

thanX.

post-46536-1127412481_thumb.jpg

0

Share this post


Link to post
Share on other sites

I know this is about silent switchless sfx 7zip.... but some people also want silent extraction of a 7z archive (no program in the archive that requires installing)...

I have a 7z archive with lots of files sorted in 2 folders (windows and program files), these are extracted to %systemdrive%.

I do it like this, a cmd file started from my RunOnceEx containing:

7za.exe x %cddrive%\XPCD\InstallApps\SYSTEMDRIVE.7z -y -o %systemdrive%\

(I have 7za.exe in my system32 folder by then..)

Now, this works... BUT it does not extract .exe files!!!!! I tried several older versions of 7za.exe, as well as the newest (nonbeta) one... same problem..

tried on several machines... can't figure it out.

For example, in the archive systemdrive.7z: program files\Exact Audio Copy\EAC.exe

Now the Exact Audio Copy folder is created in program files... and all eac files are extracted to that folder EXCEPT EAC.EXE !!!

It is an extremely annoying problem... I hope anyone can bring some sense cause it is really driving me crazy!

(BTW if I extract with Winrar gui or 7zip gui, .EXE files DO get extracted).

EDIT: found the problem... after many weeks..

seems it could not overwrite some files, resulting in an error that was not noticed (no report).

I thought "-y", 'yes on all queries' meant 'overwrite all' but for that the -aoa switch is required:

7za.exe x %cddrive%\XPCD\InstallApps\SYSTEMDRIVE.7z -aoa -y -o %systemdrive%\

The strange thing is, because of this, none of the .exe files were extracted.

I have lots of files and programs (eac, patched MSN files, pdfreader, encoderfiles (xvid etc) some themes and other system32 stuff) in 1 7zip pack, this saves time during setup, and makes the entire process more simple.

Edited by ZileXa
0

Share this post


Link to post
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.