Scoop: Installation failed for 7zip

Created on 26 Apr 2018  路  6Comments  路  Source: lukesampson/scoop

I was trying to install latest 7zip (18.01) but get failed. It seems about the path of extracting MSI.

logs are:

PS H:\> scoop install 7zip
Installing '7zip' (18.01) [64bit]
Loading 7z1801-x64.msi from cache
Checking hash of 7z1801-x64.msi... ok.
Extracting... Error moving directory:
 -------------------------------------------------------------------------------    ROBOCOPY     ::     Robust File Cop
y for Windows                               ---------------------------------------------------------------------------
----    Started : Thu Apr 26 19:58:03 2018     Source : C:\Users\myuser\scoop\apps\7zip\18.01\_tmp\Files\7-Zip\      D
est : C:\Users\myuser\scoop\apps\7zip\18.01\      Files : *.*            Options : *.* /S /E /COPY:DAT /MOVE /R:100000
0 /W:30   ------------------------------------------------------------------------------  2018/04/26 19:58:03 ERROR 3 (
0x00000003) Accessing Source Directory C:\Users\myuser\scoop\apps\7zip\18.01\_tmp\Files\7-Zip\ The system cannot find
the path specified.
At C:\Users\myuser\scoop\apps\scoop\current\lib\core.ps1:249 char:9
+         throw "Error moving directory: `n$out"
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Error moving di...ath specified. :String) [], RuntimeException
    + FullyQualifiedErrorId : Error moving directory:
     -------------------------------------------------------------------------------    ROBOCOPY     ::     Robust Fil
   e Copy for Windows                               -----------------------------------------------------------------
  --------------    Started : Thu Apr 26 19:58:03 2018     Source : C:\Users\myuser\scoop\apps\7zip\18.01\_tmp\File
 s\7-Zip\      Dest : C:\Users\myuser\scoop\apps\7zip\18.01\      Files : *.*            Options : *.* /S /E /COPY:DA
   T /MOVE /R:1000000 /W:30   ------------------------------------------------------------------------------  2018/04
  /26 19:58:03 ERROR 3 (0x00000003) Accessing Source Directory C:\Users\myuser\scoop\apps\7zip\18.01\_tmp\Files\7-Z
 ip\ The system cannot find the path specified.

Most helpful comment

You can create symlink current manually inside 7zip folder:

  1. copy all files from a folder \scoop\apps\7zip\19.00_tmp\Files\7-Zip\ to a folder \scoop\apps\7zip\19.00\**,
  2. cd to scoop\apps\7zip\ folder,
  3. run windows cmd: mklink /d current 19.00,
  4. Profit!

All 6 comments

Did you try disabling your Antivirus?
Sometimes they tend to interfere.
Also, try running scoop checkup

Yes, the problem is still there even if Antivirus has been disabled. Also, scoop checkup shows no problem.
It seems the MSI file and log is stored in
C:\Users\myuser\scoop\apps\7zip\18.01\

But the script always try to look up from
C:\Users\myuser\scoop\apps\7zip\18.01\_tmp\Files\7-Zip\

Update:
I'm able to get it around using the solution provided in #460

Run scoop config MSIEXTRACT_USE_LESSMSI $true and try again

it was being weird for me too and i simply uninstalled restarted and re-installed and worked

You can create symlink current manually inside 7zip folder:

  1. copy all files from a folder \scoop\apps\7zip\19.00_tmp\Files\7-Zip\ to a folder \scoop\apps\7zip\19.00\**,
  2. cd to scoop\apps\7zip\ folder,
  3. run windows cmd: mklink /d current 19.00,
  4. Profit!

Closing as this issue appears to be obsolete.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

borekb picture borekb  路  3Comments

brunovieira97 picture brunovieira97  路  3Comments

klauern picture klauern  路  3Comments

eBaeza picture eBaeza  路  3Comments

benplm picture benplm  路  3Comments