• 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

You're most welcome, mate :)

However, i'm affraid i cannot really be of any help with your next problem, unfortunetly - except if the error message you saw where about not being able to find the inf file altogether, which then would be because you haven't entered the path to the inf in the 7z-sfx, as opposed to the RAR-sfx...

About your other question, then 7z.exe is 7-Zip's command-line version and it's dynamically linked(externally) to the libs in the 7-Zip distribution, whereas 7za.exe is the stand-alone version, which has the libs statically linked(internally), and is restricted to only support 7z, zip, gzip, bzip2, Z and tar.

Lastly, then just a little tip... When working with the 7z installer sfx module, then the archive is always unpacked into %temp%, except if defined otherwise, so you would actually then only need the two 'RunProgram' parameters and could ditch the 'InstallPath' one...

Edited by Martin H
0

Share this post


Link to post
Share on other sites

Your SFX editing is not working because of 1033... Change it to zero "0"

zeroru7.jpg

EDIT: Try this config.txt

;!@Install@!UTF-8!
InstallPath="%WinDir%\\Temp\\Avira"
RunProgram="%%T\\basic\\setup.exe /inf=setup.inf"
RunProgram="hidcon:cmd /c tskill avscan"
GUIMode="2"
;!@InstallEnd@!

or this

;!@Install@!UTF-8!
InstallPath="%WinDir%\\Temp\\Avira"
RunProgram="%%T\\basic\\setup.exe /inf=\"%%T\\basic\\setup.inf\""
RunProgram="hidcon:cmd /c tskill avscan"
GUIMode="2"
;!@InstallEnd@!

%%S - full path to the SFX archive file

%%T - full extraction path

Edited by ricktendo64
0

Share this post


Link to post
Share on other sites

All that hacking with ResHacker confuses me, why not make the silent installer with WinRAR? Please don't say "why are you asking that in a 7z topic" :rolleyes: Just seems simpler with WinRAR, you only need the comment and pack a QBFC exe with it to do the business. You can even pack in 7za.exe and do it that way with a 7z archive inside the WinRAR SFX archive. :angel

Edited by LeveL
0

Share this post


Link to post
Share on other sites

Well, for starters because 7-Zip is free, much more advanced(with the moded module) and features better compression...

Personally, then i never change the icons away from the defaults, as the icons for me is totally irellavant, but to each there own, of course :)

0

Share this post


Link to post
Share on other sites
All that hacking with ResHacker confuses me, why not make the silent installer with WinRAR? Please don't say "why are you asking that in a 7z topic" :rolleyes: Just seems simpler with WinRAR, you only need the comment and pack a QBFC exe with it to do the business. You can even pack in 7za.exe and do it that way with a 7z archive inside the WinRAR SFX archive. :angel

Winrar is nice but not free, not a terrible difference with compressions though. Just remember the more compression can sometimes mean greater installation time. Gotta weigh the difference & the speed of the machine your installing on.

0

Share this post


Link to post
Share on other sites

And also with 7-Zip you can retrieve the config.txt for a nice installer you come across. Same as the comments in the WinRAR SFX. Just use the 7z SFX Archive Splitter for fast learning about 7zip SFX mods.

0

Share this post


Link to post
Share on other sites

i dont understant what i need to write insted this:

–switch

i try to make switchless to icq6 but i didnt success

Edited by rafi2391
0

Share this post


Link to post
Share on other sites
i dont understant what i need to write insted this:

–switch

i try to make switchless to icq6 but i didnt success

Try CMenu or SendToA3X

Right click on the installer an choose "Identify Installer"

Edited by ricktendo64
0

Share this post


Link to post
Share on other sites

the software doesn't work for all the software

i didn'd success to create switchless file

who can help me?

0

Share this post


Link to post
Share on other sites
the software doesn't work for all the software

i didn'd success to create switchless file

who can help me?

Sometimes just running the installer with the /? switch will give you a pop up of switches, other times just looking at the installer icon and trying other known switches like /S or /SILENT & /VERYSILENT can yield you a switch Edited by ricktendo64
0

Share this post


Link to post
Share on other sites

i try all your option but i didnt success again

in addition i try you 2 software that you gave me before and i didnt success for 3 software that i need

waht i need to do?

0

Share this post


Link to post
Share on other sites

Search MSFN/google for :

<programname> silent install

If there isn't a silent switch provided in the used installer, then either write an AutoIT script, or simply capture all the added files, folders and reg-entries(with e.g. Regshot unicode) and then make a batch/reg-file.

0

Share this post


Link to post
Share on other sites

it is no help me

i want to make switchless install for icq6.who can help me with "-switch"?

0

Share this post


Link to post
Share on other sites
it is no help me

i want to make switchless install for icq6.who can help me with "-switch"?

Let me remind you the topic of this thread: "How to make a 7-Zip Switchless Installer" - it's not "What are the silent-switches for ICQ6?" :whistle:

I did a (really short and fast) search via Google and found out, that you have two options: using AutoIt (I've got a script for the german version of ICQ, you only have to make it compatible to your own language) or simply use an SFX-archive!

This is the (german) AutoIt-script made by Monchi from the german-nlite.de forum:

run ("Install_ICQ6.exe")
WinWait ("ICQ6 - InstallShield Wizard", "Welcome to ICQ")
ControlCommand("ICQ6 - InstallShield Wizard","Welcome to ICQ", "Button1", "Check")
ControlCommand("ICQ6 - InstallShield Wizard","Welcome to ICQ", "Button17", "UnCheck")
ControlClick("ICQ6 - InstallShield Wizard","Welcome to ICQ", "Button2")
WinWait ("ICQ6 - InstallShield Wizard", "Custom Installation")
ControlClick("ICQ6 - InstallShield Wizard","Custom Installation", "Button9")
ControlCommand("ICQ6 - InstallShield Wizard","Custom Installation", "Button15", "UnCheck")
ControlCommand("ICQ6 - InstallShield Wizard","Custom Installation", "Button16", "UnCheck")
ControlCommand("ICQ6 - InstallShield Wizard","Custom Installation", "Button18", "UnCheck")
ControlClick("ICQ6 - InstallShield Wizard","Custom Installation", "Button2")
WinWait ("ICQ6 - InstallShield Wizard", "Bevor Du loslegst")
ControlClick("ICQ6 - InstallShield Wizard","Bevor Du loslegst", "Button2")
WinWait ("ICQ6 - InstallShield Wizard", "You successfully installed ICQ 6")
ControlCommand("ICQ6 - InstallShield Wizard"," You successfully installed ICQ 6", "Button27", "UnCheck")
ControlCommand("ICQ6 - InstallShield Wizard"," You successfully installed ICQ 6", "Button28", "UnCheck")
ControlCommand("ICQ6 - InstallShield Wizard"," You successfully installed ICQ 6", "Button29", "UnCheck")
ControlClick("ICQ6 - InstallShield Wizard"," You successfully installed ICQ 6", "Button2")
RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Run", "ICQ")

And here you can download a ready-to-go SFX-file, that installs ICQ6 unattended to %programfiles%\ICQ6 and creates a shortcut on the desktop: http://www.file-upload.net/download-753288/ICQ6.exe.html. The ICQ-datas are saved in "User\Application Data\ICQ"!

It shows a progress-screen when extracting - if you want it to install completely silent, simply change the method in the SFX-comment.

Anyway, you have to learn something about wether AutoIt or WinRAR-SFX-archives ;)

Best regards

cool400 :ph34r:

0

Share this post


Link to post
Share on other sites

COOL400

thank you very very very much i love you!!!

in addition my english is not very god therefore try to understand me

i want to learn to create silent install for any software.where i can learn it?

second i want to make silent switchless for icq6 in hebrew i can do it by change thw finstall file in the archive that i download?

Edited by rafi2391
0

Share this post


Link to post
Share on other sites

just curious: has anybody tried to make sfx installer which has total size >700MB?

My situation is this: I have made sfx installer with 7z file at ~500MB. No problem. the SFX details (icon, version info, etc.) are intact.

However, if my 7z file is >700MB, the SFX details (icon, version info, etc.) are missing! Running the sfx exe is ok, but file details are not visible.

I've tried to compile this in Vista and XP, both having the same symptoms.

0

Share this post


Link to post
Share on other sites

Have you used the latest versions of 7zSD (v1.2 RC1), 7z (v4.58) and UPX (v3.03w)? Check here the downloadlinks and my new updated tutorial (maybe you did it already on this way)

Edited by Inferi0r
0

Share this post


Link to post
Share on other sites

that's what i'm using but wihtout UPX ...

on the same exact copy of 7zSD (modified the icon and version texts) and 7zip ...

1) Works fine for 7z archive with size ~500MB... icon and version info were shown/intact... extraction works fine.

2) Works fine too for archive >700MB but the icon and version infos are missing/not shown. Extraction works fine.

0

Share this post


Link to post
Share on other sites

Fyi: 713MB archive works just fine for me, icon and info included.

Installer was made with 7z v4.57 and upx v3.02 using this tutorial.

0

Share this post


Link to post
Share on other sites

hmmm, that's strange ...

thanks for the confirmation, amitri

0

Share this post


Link to post
Share on other sites

I asked the developer of WinRAR why that happens (no icon on files above 500Mb) and he said its a Windows bug.

A Windows bug - but he was looking to fix it. :blink:

0

Share this post


Link to post
Share on other sites

:hello: This is way cool :thumbup

However when I try to make a installer for Open Office. Everything goes fine until I try to run the installer. Then I get an Unspecified Error Box. I have a folder with the following files in it: 7zS.sfx, config.txt:

;!@Install@!UTF-8!
RunProgram="OOo_2.4.1_Win32Intel_install_wJRE_en-US.exe"
;!@InstallEnd@!

OOffice.7z and OOo_2.4.1_Win32Intel_install_wJRE_en-US.exe . The last one is the installer created.

Open office Looks like it has 3 installers included in it. instmsiw.exe, instmsia.exe, and OOo_2.4.1_Win32Intel_install_wJRE_en-US.exe. If i click on the file of the first 2 I get an, wrong os or os version for application, error box.

What am I doing wrong, I created several other installers using this method before stumbling onto this problem.

Again this rocks :thumbup

0

Share this post


Link to post
Share on other sites
Open office Looks like it has 3 installers included in it. instmsiw.exe, instmsia.exe, and OOo_2.4.1_Win32Intel_install_wJRE_en-US.exe. If i click on the file of the first 2 I get an, wrong os or os version for application, error box.

Those two files is for older Windows (2000 and 98 or Millenium probably).

0

Share this post


Link to post
Share on other sites

Thanks

Since I posted I redownloaded the open office installer, and redid the steps and I get the same error box

The new installer did not have the instamsiw.exe and instamsia.exe files

0

Share this post


Link to post
Share on other sites
Since I posted I redownloaded the open office installer, and redid the steps and I get the same error box

Run the downloaded installer and use the extracted files.

The .cmd file should look like this:

@echo off
msiexec /i openofficeorg24.msi ALLUSERS=1 SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1 ADDLOCAL=ALL /qb! /norestart
exit

or

 @echo off
msiexec /i openofficeorg24.msi ALLUSERS=1 SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1 ADDLOCAL=ALL /qn /norestart
exit

The second does not have the progress bar.

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.