matthewjberger / scoop-nerd-fonts

A scoop bucket for installing nerd fonts
The Unlicense
364 stars 34 forks source link

Error when installing font #1

Closed dsbert closed 6 years ago

dsbert commented 6 years ago

Using an admin powershell session, I'm seeing the following

PS C:\WINDOWS\system32> scoop uninstall inconsolataGo-NF
Uninstalling 'inconsolataGo-NF' (1.2.0).
Running uninstaller script...
The 'InconsolataGo' Nerd Font family has been uninstalled and will not be present after restarting your computer.
Unlinking ~\scoop\apps\inconsolataGo-NF\current
Removing older version (1.1.0).
'inconsolataGo-NF' was uninstalled.
PS C:\WINDOWS\system32> scoop install inconsolataGo-NF
Installing 'inconsolataGo-NF' (1.2.0).
Loading InconsolataGo.zip from cache
Checking hash of InconsolataGo.zip... ok.
Extracting... done.
Running installer script...
Copy-Item : The requested operation cannot be performed on a file with a user-mapped section open.
At line:4 char:17
+                 Copy-Item "$dir\$_" -destination "$env:windir\Fonts"
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Copy-Item], IOException
    + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.CopyItemCommand

Linking ~\scoop\apps\inconsolataGo-NF\current => ~\scoop\apps\inconsolataGo-NF\1.2.0
'inconsolataGo-NF' (1.2.0) was installed successfully!