7-Zip won't install

ItsJustHaga

New Member
A little explanation:

I am currently working on a custom Win10 ISO to standardize our lab-devices. In that ISO i want to have 7-Zip, but every time I try to install it on an VM or Notebook, it either won't install 7-Zip or the windows 10 setup crashes...

I tried the .exe file and the .msi file... I also tried it with the arm64 and that also didn't work.

In Post-Setup i put the installer of 7-Zip in and the following parameter for the .exe file: 7z*.exe /S
For the .msi file I did put the following parameter in: 7z*.msi /quiet

Please help me, if I did something wrong.

thank you and kind regards
 
Never had such an issue, so I'll need more info.
Is there a preset that causes it, or how to get there?

Thanks.
 
I don't realy know. The only thing I did notice is, that the .msi file breaks the whole ISO... and when i try it with the .exe it installs Windows like it should, but without 7-Zip.

Maybe I can find something in the log-files, if I find them

Thats the preset i have so far.
 

Attachments

  • Automatisch gespeicherte Sitzung 2bc3e300.xml
    5 KB
Last edited:
OK.

For parameters, instead of:
7Z*.exe /S
use only:
/S

and in the other case of Winrar
winrar*.exe /S
change also to:
/?

The *.exe are just examples in their documentations, tool takes care of those, so it needs for the parameter only what goes after the .exe

MSI you can just add, and no need to touch parameters at all. Or use EXE for now to avoid any extra confusion.
Let me know how that goes, if it fails, send me the new preset from that ISO and tell me how to test and what to expect.

Note to start from the scratch, best is to delete the whole image folder and recopy fresh from the ISO, then load the edition and the preset and correct the parameters.

Let me know if you need more info.
 
For most apps, you can test setup parameters outside of NTLite. Uninstall the app on a test system.

Open CMD as Administrator, and run app setup with your command line. If setup finishes without help (no keyboard or mouse), then it should work in Post-Setup. Do this before you start making NTLite images.
 
Copy an existing 7zip program files folder to your install media, 64bit OS. 7z2107-x64.exe
Sources\$OEM$\$1\Program Files\7-Zip
Add the following reg file to POst Setup page. Job done.

Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\7-Zip]
"Path64"="C:\\Program Files\\7-Zip\\"
"Path"="C:\\Program Files\\7-Zip\\"

[HKEY_LOCAL_MACHINE\SOFTWARE\7-Zip]
"Path64"="C:\\Program Files\\7-Zip\\"
"Path"="C:\\Program Files\\7-Zip\\"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{23170F69-40C1-278A-1000-000100020000}]
@="7-Zip Shell Extension"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32]
@="C:\\Program Files\\7-Zip\\7-zip32.dll"
"ThreadingModel"="Apartment"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}]
@="7-Zip Shell Extension"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32]
@="C:\\Program Files\\7-Zip\\7-zip.dll"
"ThreadingModel"="Apartment"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\7-Zip]
@="{23170F69-40C1-278A-1000-000100020000}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shellex\ContextMenuHandlers\7-Zip]
@="{23170F69-40C1-278A-1000-000100020000}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\ShellEx\ContextMenuHandlers\7-Zip]
@="{23170F69-40C1-278A-1000-000100020000}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shellex\DragDropHandlers\7-Zip]
@="{23170F69-40C1-278A-1000-000100020000}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shellex\DragDropHandlers\7-Zip]
@="{23170F69-40C1-278A-1000-000100020000}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved]
"{23170F69-40C1-278A-1000-000100020000}"="7-Zip Shell Extension"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved]
"{23170F69-40C1-278A-1000-000100020000}"="7-Zip Shell Extension"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\7zFM.exe]
@="C:\\Program Files\\7-Zip\\7zFM.exe"
"Path"="C:\\Program Files\\7-Zip\\"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\7-Zip]
"DisplayName"="7-Zip 21.07 (x64)"
"DisplayVersion"="21.07"
"DisplayIcon"="C:\\Program Files\\7-Zip\\7zFM.exe"
"InstallLocation"="C:\\Program Files\\7-Zip\\"
"UninstallString"="\"C:\\Program Files\\7-Zip\\Uninstall.exe\""
"QuietUninstallString"="\"C:\\Program Files\\7-Zip\\Uninstall.exe\" /S"
"NoModify"=dword:00000001
"NoRepair"=dword:00000001
"EstimatedSize"=dword:00001543
"VersionMajor"=dword:00000015
"VersionMinor"=dword:00000007
"Publisher"="Igor Pavlov"
 
Last edited:
Back
Top