Help - Search - Members - Calendar
Full Version: How to make a 7-Zip Switchless Installer
MSFN Forums > Unattended Windows Discussion & Support > Application Installs
Pages: 1, 2, 3, 4, 5, 6

   


Google Internet Forums Unattended CD/DVD Guide
keytotime
No idea, don't do autoit
RyanVM
Is anybody interested in using the custom 7zS.sfx I made which puts the % complete on the right side of the title bar? I'll post it if there's interest.
MCT
yes plz ryan tongue.gif
RyanVM
OK, here you go. This is the same base SFX module I use for my switchless installers. It's got the % complete on the right side of the title (which I think looks better) and only has the extraction progress meter with no cancel button. I compiled it myself with MSVC++ 2003.
MCT
cool, only 1 prob tongue.gif u left the original icons eww tongue.gif lol
RyanVM
well, it leaves it open for you to change to your liking tongue.gif
Marnic-Man
I've gotten this going so well, but say I want to taskkill a program after installing... Where would I put the takkill explorer.exe or etc..?
MCT
look @ the beginning of this thread.. theres a guide lol
Marnic-Man
The only way i can see that I can put stuff like that in is through the config.txt with a .bat file, but completely defeats the purpose of a 7zip installer, cos the extraction would have to go to the same place everytime so i can use the .bat file, I just want it to extract to a temp dir and make a .bat install then copy over crack, then delete temp. That way only 1 file is needed. Can someone tell me what to do?
DLF
I have followed the guide to the letter and failed with PowerDVD both trial and retail versions and a number of other apps too. In fact if I double click my PowerDVD installer from a Windows environment it works perfectly and silently, but when I call it from my RunOnceEx it prompts for the install directory - therefore not silent.
I have now given up trying to make one as I'm getting nowhere and "helpful" suggestions like read the guide again dont assist anyone. I have read it so many times I can quote it verbatim. The guide is good and well written.
Suggestions:
1. maybe a list of apps that have been successful
2. maybe ryanvm or someone could post this customised SFX module that will be more tolerant at the start of the thread

Or is it a case of certain apps are never going to be able to be made into switchless installers by this generic method?
Astalavista
DLF,

I just winrar for PowerDVD since u only get 50kb savings using 7zip.

I assure u that the PowerDVD guide does work.

Here is my list of apps
Photoshop CS
Illustrator CS
FrontPage 2003
Office Suite 2003
FireFox
Adobe Acrobat
Adobe Acrobat Pro
NetFrameWork
Norton Internet Security 2005
RyanVM
Diskeeper 9
Symantec AntiVirus 9
Java2 Runtime Environment 5 Update 2
.NET Framework 1.1
J# .NET Framework 1.1
Adobe Reader 7.0.1
RyanVM
double post
cybpsych
Hi!

I'm darn sure that these files are not needed (assuming that it has been installed):

:: instmsia.exe
:: instmsiw.exe

Any1 can comfirm whether I should leave this from the archive?

If I archive all, execute the .MSI in config.txt, but the system don't have MS Installer installed, will the 7-zip switchless installer work?


My theory is that if this doesn't work, i might as well call the setup.exe from config.txt so that it will install MS Installer if non detected in the system.

The folder in question contain:
QUOTE
setup.exe
setup.ini
test.msi
instmsia.exe
instmsiw.exe
0x0409.ini
RyanVM
You can remove those two files assuming you're installing on Windows XP
cybpsych
thanx ryan,

actually i'm targetting to install these switchless installers on Windows 98SE system ...

these installers contain some USB mass storage device drivers which only requires Windows 98SE smile.gif

looking at the drivers' size floating around 4-5MB, i planned to do this switchless installers in order to reduce the package size ...

but, i noticed that the only large files for the drivers are these 2 MS Installers ...
cybpsych
this installation of Installshield packaged is making me nuts smile.gif

after extraction, the temp files in the Temp folder will be removed after 3-4 secs.

I've added this:
CODE
;!@Install@!UTF-8!
RunProgram="setup.exe /SMS"
;!@InstallEnd@!


... and it's still being deleted off the Temp folder, making it near-impossible to finish the setup ...

the only way to continue is to immediate pressing Next button so that the installation can be finished sad.gif
DLF
@Astalavista

Yes I can do PowerDVD with Winrar with my eyes shut. Works great. Its 7z ones I'm having trouble with thats why I've used this thread instead of the PowerDVD thread! whistling.gif

P.S. Asta = We can all claim we've got Adobe Reader and .NET Framework to work when all we do is download them off RyanVM! In that case then I've got 3 to work cos I use his Java runtime too!

P.P.S. I've just d/l Ryan's customised 7zS module and I will have a dabble with that now.
Astalavista
QUOTE
P.S. Asta = We can all claim we've got Adobe Reader and .NET Framework to work when all we do is download them off RyanVM! In that case then I've got 3 to work cos I use his Java runtime too!


huh?

We can all claim?

pls refer to the links in my sig

about 50% of my apps are 7zip

i guess i am just lucky.

thumbup.gif
cybpsych
first, i've been enjoying making 7Z Switchless Installers! Thanks to 'keytotime' for posting the guide here and at MSFN.org. Kudos!

second, is there a special switch for installers packed by InstallShield?

the reason i'm asking this because all of my 7Z Installers having its temporary files deleted before the installation is completed.

i've followed exactly of the steps listed here, compressing went well, packing went well ...

however, when i tried to execute the 7Z installers, the extracted temp files in the TEMP folder will be deleted just about 3-4 seconds after loading the InstallShield Installer.

I peeked the TEMP folder just to see what's wrong. During 7Z extraction, the files were extracted fully. But, after 3-4 secs, most of the files are deleted, leaving just some IS files (which were used to load the IS Installer).

any1 experiencing this?

p/s: thinking of it, this scenario also happens when i use PackageForTheWeb to pack. the files will just *disappear*.
Astalavista
keytotime

the latest 7zip beta does not have a 7zs.sfx anymore...
kurt476
i didn't get that part ware you said 7z SFX i didn't know if i shuld create a SFX .exe or not confused.gif whistling.gif
badboy05mtl
I don't know why this command doesn't work...

CODE
;!@Install@!UTF-8!
RunProgram="StartX.exe /WAIT \"msiexec TRANSFORMS=Unattended.mst /i AcroPro.msi /qb-!\""
;!@InstallEnd@!
badboy05mtl
anybody here to help
Astalavista
what are u trying to do adobe acrobat?
badboy05mtl
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?
Astalavista
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
badboy05mtl
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
dwit
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:
CODE
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:
CODE
;!@Install@!UTF-8!
RunProgram="favs.cmd"
;!@InstallEnd@!
dwit
** 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
galvanocentric
Thank you. smile.gif
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.gif

[EDIT]
Oh, as a sidenote... Everybody now really HAS to use RyanVM's 7zS file (oh, poor us thumbup.gif ) because as was said there is now more 7zS file included in the 7-zip distribution.
rikgale
QUOTE
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?
sleepnmojo
QUOTE (rikgale @ Jul 22 2005, 01:19 PM)
QUOTE
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.
rikgale
Thanx for pointing that out. smile.gif
maybeme
Where do i have to put startx.exe? Should I use this command?
CODE
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:

QUOTE (DigitalAZ @ Mar 13 2005, 07:35 AM)
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
Zxian
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? smile.gif

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... tongue.gif
maniaq
hey welcome.gif

how do i import registries to the install?

could i do this?

CODE
copy /b 7zs.sfx + registrytweaks.reg + config.txt + (whatever the archive name).7z (Installer_Name).exe
SyntaxError
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.
Gee
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.
maybeme
QUOTE (maniaq @ Jul 27 2005, 10:29 AM)
hey welcome.gif 

how do i import registries to the install?

could i do this?

CODE
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?
maybeme
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
keytotime
Extract the file. Install 7-Zip, right click and choose extract. Then try again.
muijsenbergq
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!
maybeme
QUOTE (muijsenbergq @ Aug 20 2005, 10:19 PM)
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
nakira
QUOTE (muijsenbergq @ Aug 21 2005, 07:19 AM)
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
xtremexxx
awesome guide ! thank you very much smile.gif

my first program installed like this was perfectdisk 7 + reg
narrative
bump.

why isn't this sticky.
thuun derboy
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.
maybeme
You used 7z.sfx, I think you should use 7zs.sfx which you can download from:
http://prdownloads.sourceforge.net/sevenzi...ar.bz2?download
(it's the beta, you can also use the older final version)

grtz
ZileXa
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:
CODE
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:
CODE
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.




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.