[Tutorial] For Making A 7-Zip Switchless Installer

Questions or comments on the switchless installers? Want to create a new one? Talk about it here.
w00dr0w
Posts: 3
Joined: Tue Jan 27, 2009 4:11 pm

Post by w00dr0w » Wed Jan 28, 2009 1:35 am

silly me,
Just re-did it and I got no errors or anything
Gonna try it on a VM and see if it installs right, if so It's getting slipstreamed and I'll be one very happy man

*EDIT*

Forgot to thank ricktendo64 for your help, so...
THANKS ricktendo64!!!

and as far as the installer is going...
Well it's not going so well...
After fixing config.txt and running the command I got a working installer (sort of)

It's restarting the PC as soon as it's finished installing. I need to turn this off. I don't know if there's a parameter I can add to config.txt to keep it from restarting the PC, I checked the setup's .ini file and found some promising stuff, but I'm no coder and I have no clue what I need to do. So hopefully one of you can help me with this.

The interesting info in the setup.ini is below

Code: Select all

[General Settings]
OEM = 0
DelDatUpd = 0
DelDatUni = 0
RtkLogON = 1
ForceSetupQFE = 0
ForceInstallRtk = 1
RtkAPODbgReg = 0
RtkAPOReg = 1
RemoveHDQFE = 0
QFEReboot = 0
fW2KForceRebt = 0
SilentReboot = 0
NUpgradeDrv = 0
NRunClsWin = 0
QFEOption = /o /norestart /passive
HideWinParm = /go
I tried adding /norestart to config.txt, but that doesn't do anything. I'm wondering if I can edit the .ini itself and change one of those flags to keep it from restarting after installing?

Once again your time, effort, and help are greatly appreciated...
large test

User avatar
bina
Posts: 24
Joined: Sat Jan 03, 2009 3:33 pm
Location: Baku, Azerbaijan

Post by bina » Sat Jan 31, 2009 2:56 pm

Is it possible to use this guide for Addons made with AutoIt script?

I have made an AutoIt script for Kaspersky Internet Security 2009 and it works pretty well on VM. But I used Entries.ini method with the output file being CAB (I used Rado's excellent video on making AutoIt scripts for addons) and the CAB file contains 2 installers now - the base installer of Kaspersky and the EXE file compiled from AutoIt script. However, from what I can see at the forum, all installers I have downloaded so far contain only ONE executable (even within the CAB files). Is this ok?

User avatar
diginode
Posts: 6
Joined: Fri Apr 24, 2009 1:30 am

Post by diginode » Wed Apr 29, 2009 11:37 pm

If your compression ratio is less priority :( And want to make easy SFX, I hope it is better for winrar to make easy sfx with silent install and also we can assign icon & after extraction run particular file with switch.

I already made several installer SFX by winrar with successfully installation. :lol:

User avatar
5eraph
Site Admin
Posts: 4618
Joined: Tue Jul 05, 2005 9:38 pm
Location: Riverview, MI USA

Post by 5eraph » Wed Apr 29, 2009 11:52 pm

The main thing I have against WinRAR is that it is not a free utility, though it is slightly easier to use. But with the right tools and knowledge, 7-Zip is every bit as flexible.

And I like the fact that 7-Zip has an x64 installation option to allow for greater memory usage during compression for potentially higher compression ratios than would be available with x86. I believe the x64 version is a bit faster during compression than the x86 version as well.

User avatar
alban
Posts: 194
Joined: Sun Feb 08, 2009 11:20 am
Location: aL

Post by alban » Thu Sep 16, 2010 7:14 am

Hi all I'm trying to add a reg file to registry and does not work I'm using this method:

Code: Select all

;!@Install@!UTF-8!
GUIMode="2"
RunProgram="setup.exe /SP- /SILENT /VERYSILENT /NORESTART"
RunProgram="hidcon:cmd regedit /S example.reg"
;!@InstallEnd@!
also I use this one

Code: Select all

RunProgram="hidcon:cmd /c \"regedit -s example.reg\""
BUT when I use winrar sfx it works great this is the winrar line:

Code: Select all

Setup=regedit.exe /s example.reg
can any one know what the problem may be?

User avatar
yumeyao
Moderator
Posts: 1718
Joined: Sun Aug 27, 2006 9:24 pm
Location: Taiyuan, Shanxi, PR China

Post by yumeyao » Thu Sep 16, 2010 8:15 am

RunProgram="regedit /S example.reg"
Image
My work list(Hosted by dumpydooby)

User avatar
alban
Posts: 194
Joined: Sun Feb 08, 2009 11:20 am
Location: aL

Post by alban » Thu Sep 16, 2010 5:56 pm

yumeyao you line does not work eather, here is how it looks:

Code: Select all

;!@Install@!UTF-8!
GUIMode="2"
RunProgram="setup.exe /SP- /SILENT /VERYSILENT /NORESTART"
RunProgram="regedit /S example.reg"
;!@InstallEnd@!

User avatar
bphlpt
Posts: 1367
Joined: Sat Apr 19, 2008 1:11 am

Post by bphlpt » Thu Sep 16, 2010 6:27 pm

Well, if it doesn't work, what does it do? Any error message, just isn't silent, no feedback but reg entries aren't there or what?

Cheers and Regards

User avatar
user_hidden
Posts: 1924
Joined: Thu Dec 06, 2007 7:52 am
Location: Canada eh!

Post by user_hidden » Thu Sep 16, 2010 8:04 pm

sorry but YumeYao example is the correct way to do it.

RunProgram="regedit /s example.reg"

/s can be upper or lower case for the switch with regedit.exe.

are you using the 7zip sfx or the modified module sfx ?

i use modified module 1.5.0.1798

perhaps as well if this is a sfx that installs at T13 maybe the reg entries CAN NOT be added until ROE ?

User avatar
alban
Posts: 194
Joined: Sun Feb 08, 2009 11:20 am
Location: aL

Post by alban » Fri Sep 17, 2010 1:38 am

user_hidden can you please upload that modified sfx module or show me where I can find it for download.

Thanks.

User avatar
user_hidden
Posts: 1924
Joined: Thu Dec 06, 2007 7:52 am
Location: Canada eh!

Post by user_hidden » Fri Sep 17, 2010 7:12 am

alban wrote:user_hidden can you please upload that modified sfx module or show me where I can find it for download.

Thanks.
7zsfx modified module website

http://7zsfx.info/develop/7zsd_150_1798_x86.7z

http://7zsfx.info/develop/7zsd_150_1798_x64.7z

User avatar
yumeyao
Moderator
Posts: 1718
Joined: Sun Aug 27, 2006 9:24 pm
Location: Taiyuan, Shanxi, PR China

Post by yumeyao » Fri Sep 17, 2010 7:15 am

Where is the WEBPAGE containing info on 1.50? Or maybe something like SVN?

The latest version in russian page is still 1.40
Image
My work list(Hosted by dumpydooby)

User avatar
alban
Posts: 194
Joined: Sun Feb 08, 2009 11:20 am
Location: aL

Post by alban » Fri Sep 17, 2010 12:05 pm

it works good now, great, thanks user_hidden & yumeyao

User avatar
user_hidden
Posts: 1924
Joined: Thu Dec 06, 2007 7:52 am
Location: Canada eh!

Post by user_hidden » Fri Sep 17, 2010 7:18 pm

yumeyao wrote:Where is the WEBPAGE containing info on 1.50? Or maybe something like SVN?

The latest version in russian page is still 1.40
here is the site through google translate since it is Russian.
i get the latest info from the thread. there was a bug in 1.4.0.1795
so a quick dev version was released 1.5.0.1798, page 104 on the thread below.

http://translate.google.ca/translate?u= ... =&ie=UTF-8

another contributor here GORA is a member of that board and is
pretty much in tune with 7zip and 7sdsfx.

User avatar
alban
Posts: 194
Joined: Sun Feb 08, 2009 11:20 am
Location: aL

Post by alban » Fri Sep 24, 2010 7:25 am

Hi all

any one knows which command do I use for coping a *.ini file in:

systemdrive\Documents and Settings\User\Application Data\programname

I can use this form of path C:\Documents and Settings\User\Application Data\programname
but sometimes the system drive may not be C and user account may not be User it can be PC or Home-PC or whatever, what do I use on this case ?

Thanks.

User avatar
yumeyao
Moderator
Posts: 1718
Joined: Sun Aug 27, 2006 9:24 pm
Location: Taiyuan, Shanxi, PR China

Post by yumeyao » Fri Sep 24, 2010 7:35 am

%appdata%
Image
My work list(Hosted by dumpydooby)

User avatar
bphlpt
Posts: 1367
Joined: Sat Apr 19, 2008 1:11 am

Post by bphlpt » Fri Sep 24, 2010 9:49 am

A handy table of Windows environment variables and their default values in both XP and Win7 can be found here - http://ss64.com/nt/syntax-variables.html

Cheers and Regards

User avatar
alban
Posts: 194
Joined: Sun Feb 08, 2009 11:20 am
Location: aL

Post by alban » Fri Sep 24, 2010 11:15 am

works thanks :)

adric
Posts: 581
Joined: Mon May 21, 2007 5:51 am

Post by adric » Thu Sep 30, 2010 7:34 pm

user_hidden wrote:
i use modified module 1.5.0.1798
Out of the the 5 files in the 7zsd_150_1798_x86.7z

7zsd_All.sfx
7zsd_Deflate.sfx
7zsd_LZMA.sfx
7zsd_LZMA2.sfx
7zsd_LZMA_Dialogs.sfx
7zsd_PPMd.sfx

which one do you use when creating an SFX?

Al

User avatar
user_hidden
Posts: 1924
Joined: Thu Dec 06, 2007 7:52 am
Location: Canada eh!

Post by user_hidden » Thu Sep 30, 2010 7:46 pm

@Adric

7zsd_LZMA.sfx renamed to 7zsd.sfx

karama12
Posts: 4
Joined: Wed Dec 22, 2010 9:34 am

Post by karama12 » Fri Dec 24, 2010 11:42 pm

Hello everybody,

Where can i find the 7zS.sfx file please?

User avatar
mooms
Posts: 790
Joined: Wed Aug 27, 2008 1:29 pm
Location: France

Post by mooms » Sat Dec 25, 2010 8:43 pm

karama12 wrote:Hello everybody,

Where can i find the 7zS.sfx file please?
10 messages above :lol:
user_hidden wrote:
alban wrote:user_hidden can you please upload that modified sfx module or show me where I can find it for download.

Thanks.
7zsfx modified module website

http://7zsfx.info/develop/7zsd_150_1798_x86.7z

http://7zsfx.info/develop/7zsd_150_1798_x64.7z
If you want the unmodified version it is shipped win 7zip, look in the install folder.

User avatar
bphlpt
Posts: 1367
Joined: Sat Apr 19, 2008 1:11 am

Post by bphlpt » Sat Dec 25, 2010 9:48 pm

If you go to the forum thread and look at this page - http://forum.oszone.net/thread-51547-113.html, you can find an even newer version - 1.5.0-alpha, build 1951, posted Dec 1, 2010. If anyone has used this version, please comment.

Cheers and Regards

User avatar
shiner
Posts: 655
Joined: Sun Nov 08, 2009 4:18 am
Location: SE Asia

Post by shiner » Sat Dec 25, 2010 11:05 pm

I have used version 1.5.0.1951 since it was released and tested the addons in VBox and my personal machine without any apparent issues to date.
I recommend using it (with testing before release of addons, of course.)
"You can lead a horse to water, but you can't make it drink."

User avatar
user_hidden
Posts: 1924
Joined: Thu Dec 06, 2007 7:52 am
Location: Canada eh!

Post by user_hidden » Sun Dec 26, 2010 8:04 am

here is the direct link to all 7ZSD.SFX archives

7zsd.sfx svn archive

User avatar
user_hidden
Posts: 1924
Joined: Thu Dec 06, 2007 7:52 am
Location: Canada eh!

Post by user_hidden » Tue Dec 28, 2010 9:52 am

latest version: 1.50 build 1978

User avatar
Kelsenellenelvian
Moderator
Posts: 4383
Joined: Tue Nov 30, 2004 8:32 pm
Location: Pocatello, ID
Contact:

Post by Kelsenellenelvian » Tue Jan 04, 2011 6:29 pm

hey u_h??


Can you email or mirror the latest for me???

I cannot access theirs for nothing!!!

User avatar
bphlpt
Posts: 1367
Joined: Sat Apr 19, 2008 1:11 am

Post by bphlpt » Wed Jan 05, 2011 1:43 am

Hey Kel,

Here is the direct link to the download of 7zsd_150_1978.7z which still seems to be the latest. In case you're still having problems connecting to their site for some reason, I uploaded it to hotfile for you http://hotfile.com/dl/94346492/01faa3a/ ... 78.7z.html. Let me know if that doesn't work for you either and I can put it somewhere else.

Cheers and Regards

User avatar
user_hidden
Posts: 1924
Joined: Thu Dec 06, 2007 7:52 am
Location: Canada eh!

Post by user_hidden » Wed Jan 05, 2011 7:40 am

Kelsenellenelvian wrote:hey u_h??


Can you email or mirror the latest for me???

I cannot access theirs for nothing!!!

sorry missed the post and bphlpt beat me to it.

User avatar
bphlpt
Posts: 1367
Joined: Sat Apr 19, 2008 1:11 am

Post by bphlpt » Wed Jan 05, 2011 11:57 am

:)

Cheers and Regards

User avatar
gora
Posts: 150
Joined: Wed Nov 07, 2007 7:33 am
Location: Ivanovo, Russia

Post by gora » Thu Mar 03, 2011 8:23 am

Last modules is 7zsd_150_1989 http://svn.7zsfx.info/filedetails.php?r ... 50_1989.7z

A simple tool for creating 7z sfx archives in Total Commander
Russian page, but Google Translate helps
http://buttontc.7zsfx.info/

User avatar
bphlpt
Posts: 1367
Joined: Sat Apr 19, 2008 1:11 am

Post by bphlpt » Thu Mar 03, 2011 8:56 am

And for those like Kel and me who for some reason can't get there, here is a link kindly provided by user_hidden:
user_hidden wrote: here are the 2 latest releases.

7zsd_140_1942.7z
7zsd_150_1989.7z
Cheers and Regards

User avatar
mooms
Posts: 790
Joined: Wed Aug 27, 2008 1:29 pm
Location: France

Post by mooms » Sat Dec 28, 2013 2:38 pm

This thread is very outdated and should be unpinned.
(Could be misleading for newbies).
(To moderator: feel free to delete this message once done).

User avatar
5eraph
Site Admin
Posts: 4618
Joined: Tue Jul 05, 2005 9:38 pm
Location: Riverview, MI USA

Post by 5eraph » Sun Dec 29, 2013 4:04 am

It seems highly unlikely that keytotime will update this tutorial. His last post was over six and a half years ago. Unpinned.

arco's tutorial is newer and more thorough. But arco also seems to be missing in action (last post over a year and a half ago). If anybody wants to write an up-to-date tutorial and keep it current with links to the latest information and downloads then I'd be willing to sticky it.

This thread is locked for archival purposes. Please post questions, suggestions and comments in arco's newer tutorial thread linked above.

Locked