Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Package Issue]: mikf.gallery-dl #213720

Open
2 tasks done
legowerewolf opened this issue Jan 18, 2025 · 3 comments · May be fixed by #213775
Open
2 tasks done

[Package Issue]: mikf.gallery-dl #213720

legowerewolf opened this issue Jan 18, 2025 · 3 comments · May be fixed by #213775
Labels
In-PR Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@legowerewolf
Copy link
Contributor

Please confirm these before moving forward

  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue

Installation issue.

Brief description of your issue

Winget claims that the application has been installed successfully, with a command line alias added, but there is no entry in my environment variables, nor in the %LOCALAPPDATA%\Microsoft\Winget\Links directory that actually lets me call the command.

Steps to reproduce

Install mikf.gallery-dl and try to run it.

Actual behavior

~
❯ winget install --force gallery-dl
Found gallery-dl [mikf.gallery-dl] Version 1.28.4
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/mikf/gallery-dl/releases/download/v1.28.4/gallery-dl.exe
  ██████████████████████████████  12.5 MB / 12.5 MB
Successfully verified installer hash
Starting package install...
Command line alias added: "gallery-dl"
Successfully installed

~ took 3s
❯ gallery-dl --version
gallery-dl: The term 'gallery-dl' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Expected behavior

The version string.

Environment

Windows Package Manager v1.9.25200
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.4751
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.24.25200.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Enabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled

Screenshots and Logs

ls $env:LOCALAPPDATA\Microsoft\WinGet\Links\

    Directory: C:\Users\legow\AppData\Local\Microsoft\WinGet\Links

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
la---           1/17/2025 12:34 PM              0 deno.exe -> C:\Users\legow\AppData\Local\Microsoft\WinGet\Packages\DenoLand.Deno_Microsoft.Winget.Source_
                                                  8wekyb3d8bbwe\deno.exe
la---          11/19/2024 10:50 AM              0 op.exe -> C:\Users\legow\AppData\Local\Microsoft\WinGet\Packages\AgileBits.1Password.CLI_Microsoft.Winget
                                                  .Source_8wekyb3d8bbwe\op.exe
la---           1/17/2025 12:36 PM              0 yt-dlp.exe -> C:\Users\legow\AppData\Local\Microsoft\WinGet\Packages\yt-dlp.yt-dlp_Microsoft.Winget.Sourc
                                                  e_8wekyb3d8bbwe\yt-dlp.exe
❯ $env:PATH -split ";"
C:\Program Files\WindowsApps\Microsoft.PowerShell_7.4.6.0_x64__8wekyb3d8bbwe
C:\Program Files (x86)\Razer Chroma SDK\bin
C:\Program Files\Razer Chroma SDK\bin
C:\Program Files (x86)\Razer\ChromaBroadcast\bin
C:\Program Files\Razer\ChromaBroadcast\bin
C:\Program Files\ImageMagick-7.1.1-Q16-HDRI
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
C:\Windows\System32\OpenSSH\
C:\Program Files\Tailscale\
C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
C:\Program Files\dotnet\
C:\Program Files\Calibre2\
C:\Program Files\Git\cmd
C:\Program Files\Docker\Docker\resources\bin
C:\Program Files\nodejs\
C:\Program Files\GitHub CLI\
C:\Program Files\starship\bin\
C:\Program Files\Go\bin
C:\Users\legow\.cargo\bin
C:\Users\legow\AppData\Local\Microsoft\WindowsApps
C:\Users\legow\AppData\Local\Programs\Microsoft VS Code\bin
C:\Users\legow\AppData\Local\Microsoft\WinGet\Links
C:\Users\legow\AppData\Local\Programs\IPFS Desktop\resources\app.asar.unpacked\node_modules\kubo\kubo
C:\Users\legow\AppData\Local\Microsoft\WinGet\Packages\n0-computer.sendme__DefaultSource
C:\Users\legow\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts
C:\Users\legow\AppData\Local\Microsoft\WinGet\Packages\n0-computer.sendme_Microsoft.Winget.Source_8wekyb3d8bbwe
C:\Users\legow\AppData\Local\Microsoft\WinGet\Packages\Microsoft.Sysinternals.ProcessExplorer_Microsoft.Winget.Source_8wekyb3d8bbwe
C:\Users\legow\AppData\Local\Microsoft\WinGet\Packages\Rufus.Rufus_Microsoft.Winget.Source_8wekyb3d8bbwe
C:\Users\legow\AppData\Local\Microsoft\WinGet\Links
C:\Users\legow\AppData\Roaming\npm
C:\Users\legow\AppData\Local\Microsoft\WinGet\Packages\jqlang.jq_Microsoft.Winget.Source_8wekyb3d8bbwe
C:\Users\legow\go\bin
C:\Users\legow\AppData\Local\Programs\ipfs-desktop\IPFS Desktop\resources\app.asar.unpacked\node_modules\go-ipfs\go-ipfs
C:\Users\legow\AppData\Local\Microsoft\WindowsApps
C:\Users\legow\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts
@legowerewolf legowerewolf added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Jan 18, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage This work item needs to be triaged by a member of the core team. label Jan 18, 2025
@Dragon1573
Copy link
Contributor

💡 There's nothing wrong with my device.

--> Installing WinGet
--> Disabling safety warning when running installers
Tip: you can type 'Update-EnvironmentVariables' to update your environment variables, such as after installing a new software.

--> Configuring Winget
Enabled admin setting 'LocalManifestFiles'.
Enabled admin setting 'LocalArchiveMalwareScanOverride'.

--> Installing the Manifest 1.28.4

Found gallery-dl [mikf.gallery-dl] Version 1.28.4
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
This package requires the following dependencies:
  - Packages
      Microsoft.VCRedist.2015+.x86
(1/1) Found Microsoft Visual C++ 2015-2022 Redistributable (x86) [Microsoft.VCRedist.2015+.x86] Version 14.42.34433.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://download.visualstudio.microsoft.com/download/pr/5319f718-2a84-4aff-86be-8dbdefd92ca1/DD1A8BE03398367745A87A5E35BEBDAB00FDAD080CF42AF0C3F20802D08C25D4/VC_redist.x86.exe
  ██████████████████████████████  13.3 MB / 13.3 MB
Successfully verified installer hash
Starting package install...
Successfully installed

Downloading https://github.com/mikf/gallery-dl/releases/download/v1.28.4/gallery-dl.exe
  ██████████████████████████████  12.5 MB / 12.5 MB
Successfully verified installer hash
Starting package install...
Command line alias added: "gallery-dl"
Path environment variable modified; restart your shell to use the new value.
Successfully installed

--> Refreshing environment variables

--> Comparing ARP Entries

DisplayName                                                        DisplayVersion Publisher             ProductCode                            Scope
-----------                                                        -------------- ---------             -----------                            -----
Microsoft Visual C++ 2015-2022 Redistributable (x86) - 14.42.34433 14.42.34433.0  Microsoft Corporation {e7802eac-3305-4da0-9378-e55d1ed05518} Machine
gallery-dl                                                         1.28.4         Mike Fährmann         mikf.gallery-dl__DefaultSource         User

PS C:\Users\WDAGUtilityAccount\Desktop\winget-pkgs> gallery-dl.exe
usage: gallery-dl.exe [OPTION]... URL...
gallery-dl.exe: error: The following arguments are required: URL
Use 'gallery-dl --help' to get a list of all options.

PS C:\Users\WDAGUtilityAccount\Desktop\winget-pkgs> gallery-dl.exe --version
1.28.4

⚠ Did you refresh your environment variables after installation? In Windows Sandbox, the test script provides a cmdlet Update-EnvrionmentVariables for this action and automatically invoke after installation. You can see it in the above logs.

@Dragon1573 Dragon1573 linked a pull request Jan 19, 2025 that will close this issue
7 tasks
@microsoft-github-policy-service microsoft-github-policy-service bot added In-PR and removed Needs-Triage This work item needs to be triaged by a member of the core team. labels Jan 19, 2025
@legowerewolf
Copy link
Contributor Author

Closing and re-opening the terminal ought to do it, yes? Even after a restart it's not there.

@Dragon1573
Copy link
Contributor

😕 Unable to reproduce on my physical device ...

22:24:50 D:\...\winget-pkgs  [master ≡] 1ms pwsh$ winget install -s winget -e mikf.gallery-dl -v 1.28.4
已找到 gallery-dl [mikf.gallery-dl] 版本 1.28.4
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
正在下载 https://github.com/mikf/gallery-dl/releases/download/v1.28.4/gallery-dl.exe
  ██████████████████████████████  12.5 MB / 12.5 MB
已成功验证安装程序哈希
正在启动程序包安装...
添加了命令行别名: "gallery-dl"
已修改路径环境变量;重启 shell 以使用新值。
已成功安装
# Launch a new session
**********************************************************************
** Visual Studio 2022 Developer PowerShell v17.12.3
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************

22:26:05 D:\Repository 777ms pwsh$ where.exe gallery-dl
C:\Users\Dragon1573\AppData\Local\Microsoft\WinGet\Links\gallery-dl.exe

22:26:21 D:\Repository 72ms pwsh$ gallery-dl.exe --version
1.28.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In-PR Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants