chocolatey-packages icon indicating copy to clipboard operation
chocolatey-packages copied to clipboard

(7zip.install) 7zip fails to install when the same version is already installed

Open ferventcoder opened this issue 9 years ago • 2 comments

Originally posted at https://github.com/chocolatey/choco/issues/322

 WARNING: This installer is known to close the explorer process. This means
 you may lose current work.
 If it doesn't automatically restart explorer, type 'explorer' on the
 command shell to restart it.
 Downloading 7zip.install 64 bit
   from 'http://www.7-zip.org/a/7z938-x64.msi'
 Installing 7zip.install...
 [ERROR] Running msiexec with /i "C:\Users\FINEST~1\AppData\Local\Temp\chocolate

 y\7zip.install\7zip.installInstall.msi" /quiet  was not successful. Exit code w

 as '1603' Error Message:
 .
 At C:\ProgramData\chocolatey\helpers\functions\Start-ChocolateyProcessAsAdmin.p

 s1:92 char:10
 +     throw <<<<  $errorMessage
     + CategoryInfo          : OperationStopped: ([ERROR] Running...or Message:

 .:String) [], RuntimeException
     + FullyQualifiedErrorId : [ERROR] Running msiexec with /i "C:\Users\FINEST

    ~1\AppData\Local\Temp\chocolatey\7zip.install\7zip.installInstall.msi" /qu

   iet  was not successful. Exit code was '1603' Error Message:
 .
The install of 7zip.install was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\7zip.install\tools\chocolatey
Install.ps1'.
 See log for details.

Although puzzled at first I then had an idea. I went to "Programs and Features" and uninstalled 7zip already present from previous days.

ferventcoder avatar Jun 30 '15 03:06 ferventcoder

I'm still having the same issue as OP, but I do not have a previously installed version of 7zip. I'm installing this as part of the AlethZero package.

diogenesderzyniker avatar Aug 08 '15 16:08 diogenesderzyniker

I had a similar issue with 7zip, explicit installation (choco install 7zip) had the same issue. What helped was choco install 7zip --notsilent, which worked fine even though I already had 7zip installed (usual install dialog popped up, where I clicked next/install button for every step without changing anything). After that, everything installed nicely.

However, I did a per-user install into the user directory. So not sure if that applies.

E14 avatar Nov 25 '15 14:11 E14