ScoopInstaller / Scoop

A command-line installer for Windows.
https://scoop.sh
Other
21.29k stars 1.41k forks source link

[Bug] GUI apps do not get shortcuts dropped into Start Menu #6110

Open clin1234 opened 3 months ago

clin1234 commented 3 months ago

Bug Report

Current Behavior

Installed GUI apps can be launched, but shortcuts to them in the Start Menu are missing.

Expected Behavior

Shortcuts to GUI apps to appear under the "Scoop Apps" folder within the Start Menu.

Additional context/output

PS C:\Users\שזדס> scoop update *
chromium-dev: 129.0.6663.0-r1343203 -> 129.0.6665.0-r1343257
neovim-nightly: 0.11.0-621 -> 0.11.0-632
vlc-nightly: 20240817 -> 20240818
zig-dev: 0.14.0-dev.1158 -> 0.14.0-dev.1166
Updating 4 outdated apps:
Updating 'chromium-dev' (129.0.6663.0-r1343203 -> 129.0.6665.0-r1343257)
Downloading new version
chrome-win.zip (263.8 MB) [===================================================================================] 100%
Checking hash of chrome-win.zip ... ok.
Uninstalling 'chromium-dev' (129.0.6663.0-r1343203)
Removing shim 'chromium-dev.shim'.
Removing shim 'chromium-dev.exe'.
Unlinking ~\scoop\apps\chromium-dev\current
Installing 'chromium-dev' (129.0.6665.0-r1343257) [64bit] from 'versions' bucket
Loading chrome-win.zip from cache
Extracting chrome-win.zip ... done.
Linking ~\scoop\apps\chromium-dev\current => ~\scoop\apps\chromium-dev\129.0.6665.0-r1343257
Creating shim for 'chromium-dev'.
Making C:\Users\שזדס\scoop\shims\chromium-dev.exe a GUI binary.
Value does not fall within the expected range.
At C:\Users\שזדס\scoop\apps\scoop\current\lib\shortcuts.ps1:49 char:5
+     $wsShell.TargetPath = $target.FullName
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [], ArgumentException
    + FullyQualifiedErrorId : System.ArgumentException

Unable to save shortcut "C:\Users\????\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\Chromium
(Dev).lnk".
At C:\Users\שזדס\scoop\apps\scoop\current\lib\shortcuts.ps1:57 char:5
+     $wsShell.Save()
+     ~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException

Creating shortcut for Chromium (Dev) (chrome.exe)
Persisting User Data
Running post_install script...done.
'chromium-dev' (129.0.6665.0-r1343257) was installed successfully!
Updating 'neovim-nightly' (0.11.0-621 -> 0.11.0-632)
Downloading new version
nvim-win64.zip (16.6 MB) [====================================================================================] 100%
Checking hash of nvim-win64.zip ... ok.
Uninstalling 'neovim-nightly' (0.11.0-621)
Removing shim 'nvim.shim'.
Removing shim 'nvim.exe'.
Unlinking ~\scoop\apps\neovim-nightly\current
Installing 'neovim-nightly' (0.11.0-632) [64bit] from 'versions' bucket
Loading nvim-win64.zip from cache
Extracting nvim-win64.zip ... done.
Linking ~\scoop\apps\neovim-nightly\current => ~\scoop\apps\neovim-nightly\0.11.0-632
Creating shim for 'nvim'.
'neovim-nightly' (0.11.0-632) was installed successfully!
Updating 'vlc-nightly' (20240817 -> 20240818)
Downloading new version
vlc-4.0.0-dev-win64-dba07a41.7z (42.9 MB) [===================================================================] 100%
Checking hash of vlc-4.0.0-dev-win64-dba07a41.7z ... ok.
Uninstalling 'vlc-nightly' (20240817)
Removing shim 'vlc.shim'.
Removing shim 'vlc.exe'.
Unlinking ~\scoop\apps\vlc-nightly\current
Installing 'vlc-nightly' (20240818) [64bit] from 'versions' bucket
Loading vlc-4.0.0-dev-win64-dba07a41.7z from cache
Extracting vlc-4.0.0-dev-win64-dba07a41.7z ... done.
Running pre_install script...done.
Linking ~\scoop\apps\vlc-nightly\current => ~\scoop\apps\vlc-nightly\20240818
Creating shim for 'vlc'.
Making C:\Users\שזדס\scoop\shims\vlc.exe a GUI binary.
Value does not fall within the expected range.
At C:\Users\שזדס\scoop\apps\scoop\current\lib\shortcuts.ps1:49 char:5
+     $wsShell.TargetPath = $target.FullName
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [], ArgumentException
    + FullyQualifiedErrorId : System.ArgumentException

Unable to save shortcut "C:\Users\????\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\VLC media
player.lnk".
At C:\Users\שזדס\scoop\apps\scoop\current\lib\shortcuts.ps1:57 char:5
+     $wsShell.Save()
+     ~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException

Creating shortcut for VLC media player (vlc.exe)
Persisting portable
'vlc-nightly' (20240818) was installed successfully!
Updating 'zig-dev' (0.14.0-dev.1158 -> 0.14.0-dev.1166)
Downloading new version
zig-windows-x86_64-0.14.0-dev.1166+bb7050106.zip (76.6 MB) [==================================================] 100%
Checking hash of zig-windows-x86_64-0.14.0-dev.1166+bb7050106.zip ... ok.
Uninstalling 'zig-dev' (0.14.0-dev.1158)
Removing shim 'zig.shim'.
Removing shim 'zig.exe'.
Unlinking ~\scoop\apps\zig-dev\current
Installing 'zig-dev' (0.14.0-dev.1166) [64bit] from 'versions' bucket
Loading zig-windows-x86_64-0.14.0-dev.1166+bb7050106.zip from cache
Extracting zig-windows-x86_64-0.14.0-dev.1166+bb7050106.zip ... done.
Linking ~\scoop\apps\zig-dev\current => ~\scoop\apps\zig-dev\0.14.0-dev.1166
Creating shim for 'zig'.
'zig-dev' (0.14.0-dev.1166) was installed successfully!

Possible Solution

N/A

System details

Windows version: 11

OS architecture: 64-bit

PowerShell version:

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      22000  2538

Additional software: Git

Scoop Configuration

{
    "last_update":  "2024-08-18T08:29:20.6802035-04:00",
    "scoop_repo":  "https://github.com/ScoopInstaller/Scoop",
    "scoop_branch":  "master"
}
o-l-a-v commented 2 months ago

Seems to be related to character set / encoding, Windows username שזדס became ???? in the error messages.

Unable to save shortcut "C:\Users\????\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\Chromium
(Dev).lnk".
clin1234 commented 2 months ago

Late update: checking this box works now Screenshot 2024-08-24 101017

HUMORCE commented 2 months ago

Related: https://github.com/ScoopInstaller/Install/issues/60