/build/static/layout/Breadcrumb_cap_w.png

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login
Views: 67.5k  |  Created: 09/12/2009

Average Rating: 0
7-zip has 13 inventory records, 3 Questions, 0 Blogs and 9 links. Please help add to this by sharing more!

Deployment Tips (16)

Most Common Setup Type
Windows Installer (MSI)
Average Package Difficulty Rating
Rated 1 / 5 (Very Easy) based on 9 ratings
Most Commonly Reported Deployment Method
Windows Installer Command Line (No MST)
7
Command Line
For 7-Zip9.20 I used the following...

Full Command Line: /S
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
3
Command Line

msiexec.exe /i "7z920.msi" /qn /norestart
x86 using MSI from download supressing restart, using default msi name. 

msiexec.exe /i "7z920-x64.msi" /qn /norestart
x64 using MSI from download supressing restart, using default msi name.

Optional INSTALLDIR="C:\Program Files\7-Zip" can be added to either line.

/qn works as an optional replacement for /q that is stated in the FAQ (/qn is for quiet with no user interface.)

/norestart is also optional but works during testing

Official FAQ page at http://www.7-zip.org/faq.html

32-bit MSI can be had from the download page at  http://www.7-zip.org/download.html
 

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
2
Note

Here I published a tutorial for it and many others programs. Please comment on the blog if you have questions.

http://it-grund.blogspot.com/2012/04/how-to-deployinstall-silently-and.html

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
2
Command Line

32-bit:  "7z920.exe" /S /D="C:\Program Files\7-Zip"

64-bit: msiexec.exe /q INSTALLDIR="C:\Program Files\7-Zip" /i "7z920-x64.msi"

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
1
Script

For this install I had to uninstall the previous version that the former SysAdmin had installed. For 64bit he used MSIs and for 32bit he used the executable version. Formerly 7-zip 4.65. The following code checks for the new version (9.20) and goes to look for the old version (4.65), uninstalls it if it finds it, or just goes to the install if it doesn't find it. This is set up to handle 32 and 64bit through the same install based on the machine it's installing on.

 

::New Software Check

REG QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{23170F69-40C1-2701-0920-000001000000}

IF %errorlevel%==0 goto :END

) ELSE (

if %errorlevel%==1 goto :OLDCHECK

)

 

 

:OLDCHECK

 

::OLD VERSION CHECK

If EXIST "C:\Program Files\7-Zip" goto :UNINSTALL (

) ELSE (

goto :INSTALL

)

 

 

:UNINSTALL

 

::OLD VERSION UNINSTALL

set ProgFiles86Root=%ProgramFiles(x86)%

IF NOT "%ProgFiles86Root%"=="" (

     MsiExec /qn /x{23170F69-40C1-2702-0465-000001000000}

) ELSE (

     "C:\Program Files\7-Zip\uninstall.exe" /S

)

 

 

:INSTALL

set ProgFiles86Root=%ProgramFiles(x86)%

IF NOT "%ProgFiles86Root%"=="" (

     MSIEXEC /I 7z920-x64.msi /qn /norestart

) ELSE (

     MSIEXEC /I 7z920.msi /qn /norestart

)

 

:END

Setup Information:
Setup Type: Windows Installer (MSI)
Deployment Method Used: Windows Installer Command Line (No MST)
Deployment Difficulty: Very Easy
Platform(s): Windows
1
Note

SMS files for import into SCCM 2007 Vista x64 and Win7 x64 using Package Definition Format

------------

[PDF]
Version = 2.0

[Package Definition]
Name = 7zip
Version = 9.20 x64
Publisher = GNU
Language = English
Programs = 7zipSetup

[7zipSetup]
Name = 7zip 9.20 x64 Installation
CommandLine = msiexec.exe /i "7z920-x64.msi" /qn /norestart
SupportedClients = Win NT (x64)
Win NT (x64) MinVersion1=6.00.0000.0
Win NT (x64) MaxVersion1=6.00.9999.9999 
Win NT (x64) MinVersion2=6.10.0000.0
Win NT (x64) MaxVersion2=6.10.9999.9999 
UserInputRequired = False
RemoveProgram = True
AdminRightsRequired = True
CanRunWhen = AnyUserStatus
EstimatedRunTime = 15
EstimatedDiskSpace = 10MB

------------ 

For More Specifics on modifying this file for your environment see. 
About Package Definition File Format. 
http://technet.microsoft.com/en-us/library/bb632631.aspx ;

MSI lines can be modified to fit your environment. 
MSI deployment msiexec.exe /q /i "<filename.msi>"

Optional 
INSTALLDIR="C:\Program Files\7-Zip" to Change Install Directory
/qn or /qb can be substituted for /q 
/norestart can be added.

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
1
Note

SMS files for import into SCCM 2007 XP x86, Vista x86 and Win7 x86 using Package Definition Format

------------

[PDF]
Version = 2.0

[Package Definition]
Name = 7zip
Version = 9.20 x86
Publisher = GNU
Language = English
Programs = 7zipSetup

[7zipSetup]
Name = 7zip 9.20 x86 Installation
CommandLine = msiexec.exe /i "7z920.msi" /qn /norestart
SupportedClients = Win NT (i386)
Win NT (I386) MinVersion1=5.10.0000.0
Win NT (I386) MaxVersion1=5.10.9999.9999
Win NT (I386) MinVersion2=6.00.0000.0
Win NT (I386) MaxVersion2=6.00.9999.9999
Win NT (I386) MinVersion3=6.10.0000.0
Win NT (I386) MaxVersion3=6.10.9999.9999
UserInputRequired = False
RemoveProgram = True
AdminRightsRequired = True
CanRunWhen = AnyUserStatus
EstimatedRunTime = 15
EstimatedDiskSpace = 10MB

------------  

For More Specifics on modifying this file for your environment see. 
About Package Definition File Format. 
http://technet.microsoft.com/en-us/library/bb632631.aspx ;

MSI lines can be modified to fit your environment. 
MSI deployment msiexec.exe /q /i "<filename.msi>"

Optional 
INSTALLDIR="C:\Program Files\7-Zip" to Change Install Directory
/qn or /qb can be substituted for /q 
/norestart can be added.

32-Bit MSI can be found at http://www.7-zip.org/download.html

 

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
1
Note

7zip 920 x64:

 msiexec /i 7z920-x64.msi /q
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
0
Note
Tested version: 9.20 x64 (MSI made by Igor Pavlov himself).

By default, users have to start 7-Zip (the application itself) at least once for the HKCU key "Software\7-Zip\Lang" to be set. This will then make the Explorer right-click menus appear in their language, instead of the default English. For my package, I set the language to "nb" (Norwegian Bokmaal).

To fix this problem, I created a transform with ActiveSetup registry values using Wise and trimmed it down with InstEd.

Change the registry value "nb" to what you want to be the default language - see the "C:\Program Files\7-Zip\Lang" folder to find your language.

Here's a copy & paste of the lines added in InstEd, apologies for the format:


"Registry" table:
(Registry Root Key Name Value Component_)

registry 1 Software\7-Zip Lang nb CurrentUser

registry2 2 Software\Microsoft\Active Setup\Installed Components\[ProductCode] 7-Zip_Language_Config registry2

registry3 2 Software\Microsoft\Active Setup\Installed Components\[ProductCode] StubPath msiexec.exe /fup [ProductCode] /qn registry2

registry4 2 Software\Microsoft\Active Setup\Installed Components\[ProductCode] Version 9,2,0,0 registry2

registry5 1 Software\Microsoft\Active Setup\Installed Components\[ProductCode] 7-Zip_Language_Config CurrentUser

registry6 1 Software\Microsoft\Active Setup\Installed Components\[ProductCode] Version 9,2,0,0 CurrentUser


"Component" table:
(Component ComponentID Directory_ Attributes KeyPath)

CurrentUser {B34BDE25-5ABC-4511-882A-D8276C2B2414} TARGETDIR 4 registry

registry2 {D08A4F3C-C21D-4DB7-8288-9734B0094229} TARGETDIR 4 registry2


"FeatureComponents" table:
(Feature_ Component_)

Complete CurrentUser
Complete registry2
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
0
Virtualization

Very easy to virtualize, one of the few installers which requires numerous tweaks afterwards.

Setup Information:
Setup Type: Windows Installer (MSI)
Deployment Method Used: Virtual deployment (using application virtualization)
Deployment Difficulty: Very Easy
Platform(s): Windows
0
Note

SMS files for import into SCCM 2007 Vista x64 and Win7 x64 using Package Definition Format

------------

[PDF]
Version = 2.0

[Package Definition]
Name = 7zip
Version = 9.20 x64
Publisher = GNU
Language = English
Programs = 7zipSetup

[7zipSetup]
Name = 7zip 9.20 x64 Installation
CommandLine = msiexec.exe /i "7z920-x64.msi" /qn /norestart
SupportedClients = Win NT (x64)
Win NT (x64) MinVersion1=6.00.0000.0
Win NT (x64) MaxVersion1=6.00.9999.9999 
Win NT (x64) MinVersion2=6.10.0000.0
Win NT (x64) MaxVersion2=6.10.9999.9999 
UserInputRequired = False
RemoveProgram = True
AdminRightsRequired = True
CanRunWhen = AnyUserStatus
EstimatedRunTime = 15
EstimatedDiskSpace = 10MB

------------ 

For More Specifics on modifying this file for your environment see. 
About Package Definition File Format. 
http://technet.microsoft.com/en-us/library/bb632631.aspx ;

 

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
0
Note

SMS files for import into SCCM 2007 XP x86, Vista x86 and Win7 x86 using Package Definition Format

------------

[PDF]
Version = 2.0

[Package Definition]
Name = 7zip
Version = 9.20 x86
Publisher = GNU
Language = English
Programs = 7zipSetup

[7zipSetup]
Name = 7zip 9.20 x86 Installation
CommandLine = msiexec.exe /i "7z920.msi" /qn /norestart
SupportedClients = Win NT (i386)
Win NT (I386) MinVersion1=5.10.0000.0
Win NT (I386) MaxVersion1=5.10.9999.9999
Win NT (I386) MinVersion2=6.00.0000.0
Win NT (I386) MaxVersion2=6.00.9999.9999
Win NT (I386) MinVersion3=6.10.0000.0
Win NT (I386) MaxVersion3=6.10.9999.9999
UserInputRequired = False
RemoveProgram = True
AdminRightsRequired = True
CanRunWhen = AnyUserStatus
EstimatedRunTime = 15
EstimatedDiskSpace = 10MB

------------  

For More Specifics on modifying this file for your environment see. 
About Package Definition File Format. 
http://technet.microsoft.com/en-us/library/bb632631.aspx ;

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
0
Command Line

msiexec.exe /i "7z920.msi" /qn /norestart
x86 using MSI from download supressing restart, using default msi name.

msiexec.exe /i "7z920-x64.msi" /qn /norestart
x64 using MSI from download supressing restart, using default msi name.

 

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
This content is currently hidden from public view.
Reason: Member has been banned from the site spam For more information, visit our FAQ's.
0
Command Line

Silent uninstall for v9.20:

MsiExec.exe /x {23170F69-40C1-2701-0920-000001000000} /qn
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
0
Command Line

I found this to work.

msiexec.exe /i "7z920.msi" /qn /norestart
x86 using MSI from download supressing restart, using default msi name. 

msiexec.exe /i "7z920-x64.msi" /qn /norestart
x64 using MSI from download supressing restart, using default msi name.

Setup Information:
Setup Type: Windows Installer (MSI)
Deployment Method Used: Vendor Provided Command Line (switch driven)
Deployment Difficulty: Very Easy
Platform(s): Windows
0
Note

if you want to reduce and cascade the context menu options of 7-zip then you can find the related registry keys:

[HKEY_CURRENT_USER\Software\7-Zip\Options]
"CascadedMenu"=dword:00000001
"ContextMenu"=dword:00003107

these are my preferred settings. I set them with my admin Notebook copied the values out of the registry and deployed them via GPO.

 

 

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: Somewhat Easy
Platform(s): Windows
This content is currently hidden from public view.
Reason: Removed by member request For more information, visit our FAQ's.

Inventory Records (13)

View inventory records anonymously contributed by opt-in users of the K1000 Systems Management Appliance.

Questions & Answers (3)

Questions & Answers related to 7-Zip 7-zip

2
ANSWERS
1
ANSWERS

Blogs (0)

Blog posts related to 7-Zip 7-zip

Reviews (0)

Reviews related to 7-Zip 7-zip

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ