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]: Google.PlatformTools & Genymobile.scrcpy installation does not add path to environment automaticaly #151482

Open
2 tasks done
rahaaatul opened this issue Apr 29, 2024 · 6 comments
Labels
Blocking-Issue Manifest validation is blocked by a known issue. Issue-Bug It either shouldn't be doing this or needs an investigation. zip-binary Depends on library files that aren't available via symlink

Comments

@rahaaatul
Copy link

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

As the title says. I get erros because of this. See attached screenshots.

Steps to reproduce

  1. Install Google.PlatformTools & Genymobile.scrcpy.
  2. Run adb start-server and you'll see this error:
    image
  3. Run scrcpy and you'll see these errors:
    image
    image
    image
    image

Actual behavior

See Steps to reproduce.

Expected behavior

Should run without any issue.

Note

Works when I manually add the path to environment PATH.

Environment

Windows Package Manager: `v1.7.11132`
Windows: Windows.Desktop: `v10.0.22631.3447`
System Architecture: `X64`
Package: Microsoft.DesktopAppInstaller `v1.22.11132.0`

Screenshots and Logs

Platform Tools Logs

2024-04-29 19:24:29.516 [CORE] WinGet, version [1.7.11132], activity [{8FADE727-A397-49EF-9576-36D836C428E1}]
2024-04-29 19:24:29.517 [CORE] OS: Windows.Desktop v10.0.22631.3447
2024-04-29 19:24:29.517 [CORE] Command line Args: "C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps\winget.exe" install -e --id Google.PlatformTools --force
2024-04-29 19:24:29.517 [CORE] Package: Microsoft.DesktopAppInstaller v1.22.11132.0
2024-04-29 19:24:29.517 [CORE] IsCOMCall:0; Caller: winget-cli
2024-04-29 19:24:29.526 [CLI ] WinGet invoked with arguments: 'install' '-e' '--id' 'Google.PlatformTools' '--force'
2024-04-29 19:24:29.526 [CLI ] Found subcommand: install
2024-04-29 19:24:29.526 [CLI ] Leaf command to execute: root:install
2024-04-29 19:24:29.530 [CLI ] Executing command: install
2024-04-29 19:24:29.540 [REPO] Default source requested, multiple sources available, adding all to source references.
2024-04-29 19:24:29.540 [REPO] Adding to source references msstore
2024-04-29 19:24:29.540 [REPO] Adding to source references winget
2024-04-29 19:24:29.541 [CLI ] Created authentication arguments. Mode: silentPreferred, Account: 
2024-04-29 19:24:29.559 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2024-04-29 19:24:29.559 [CORE] Found matching extension.
2024-04-29 19:24:29.564 [REPO] Multiple sources available, creating aggregated source.
2024-04-29 19:24:29.564 [REPO] Adding to aggregated source: msstore
2024-04-29 19:24:29.564 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2024-04-29 19:24:29.778 [REPO] Response status: 200
2024-04-29 19:24:29.778 [REPO] Authentication node not found. Assuming authentication type none.
2024-04-29 19:24:29.779 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2024-04-29 19:24:29.838 [REPO] Response status: 200
2024-04-29 19:24:29.838 [REPO] Authentication node not found. Assuming authentication type none.
2024-04-29 19:24:29.838 [REPO] Adding to aggregated source: winget
2024-04-29 19:24:29.846 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2024-04-29 19:24:29.846 [CORE] Found matching extension.
2024-04-29 19:24:29.875 [REPO] Opening database for ImmutableRead at 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2024.429.1212.299_neutral__8wekyb3d8bbwe\Public\index.db'
2024-04-29 19:24:29.877 [REPO] Opened SQLite Index with version [1.7], last write [2024-04-29 17:12:29.000]
2024-04-29 19:24:30.182 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/packageManifests/Google.PlatformTools?Market=US
2024-04-29 19:24:30.231 [REPO] Response status: 200
2024-04-29 19:24:30.239 [CLI ] Found one app. App id: Google.PlatformTools App name: Platform Tools
2024-04-29 19:24:30.247 [REPO] Attempting to open pinning database: C:\Users\Administrator\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db
2024-04-29 19:24:30.248 [REPO] Downloading manifest
2024-04-29 19:24:30.248 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/g/Google/PlatformTools/35.0.1/1ec1
2024-04-29 19:24:31.431 [CORE] Download hash: ce58aec91ccc7a558b2b159e4a753c6212c02567e3c774535f7515e36bb8a5e2
2024-04-29 19:24:31.431 [CORE] Download completed.
2024-04-29 19:24:31.434 [CLI ] Manifest fields: Name [Platform Tools], Version [35.0.1]
2024-04-29 19:24:31.455 [CLI ] Generated temp download path: C:\Users\ADMINI~1\AppData\Local\Temp\WinGet\Google.PlatformTools.35.0.1\fecc3f9dd1b4072717c44476314b5c83cf66c46f81ff9a4c91e659f9080c5140
2024-04-29 19:24:31.455 [CORE] Downloading to path: C:\Users\ADMINI~1\AppData\Local\Temp\WinGet\Google.PlatformTools.35.0.1\fecc3f9dd1b4072717c44476314b5c83cf66c46f81ff9a4c91e659f9080c5140
2024-04-29 19:24:31.455 [CORE] DeliveryOptimization downloading from url: https://dl.google.com/android/repository/platform-tools-latest-windows.zip
2024-04-29 19:24:34.627 [CORE] Download completed.
2024-04-29 19:24:34.671 [CORE] Started applying motw to C:\Users\ADMINI~1\AppData\Local\Temp\WinGet\Google.PlatformTools.35.0.1\fecc3f9dd1b4072717c44476314b5c83cf66c46f81ff9a4c91e659f9080c5140 with zone: 3
2024-04-29 19:24:34.675 [CORE] Finished applying motw
2024-04-29 19:24:34.676 [CLI ] Installer hash verified
2024-04-29 19:24:34.677 [CORE] Started applying motw to C:\Users\ADMINI~1\AppData\Local\Temp\WinGet\Google.PlatformTools.35.0.1\fecc3f9dd1b4072717c44476314b5c83cf66c46f81ff9a4c91e659f9080c5140 with zone: 2
2024-04-29 19:24:34.686 [CORE] Finished applying motw
2024-04-29 19:24:34.687 [CLI ] Successfully renamed downloaded installer. Path: C:\Users\ADMINI~1\AppData\Local\Temp\WinGet\Google.PlatformTools.35.0.1\platform-tools-latest-windows.zip
2024-04-29 19:24:34.792 [CLI ] Extracting archive to: C:\Users\ADMINI~1\AppData\Local\Temp\WinGet\Google.PlatformTools.35.0.1\extracted
2024-04-29 19:24:35.783 [CLI ] Successfully extracted archive
2024-04-29 19:24:35.888 [REPO] Opening database for ReadWrite at 'C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Packages\Google.PlatformTools_Microsoft.Winget.Source_8wekyb3d8bbwe\Google.PlatformTools_Microsoft.Winget.Source_8wekyb3d8bbwe.db'
2024-04-29 19:24:35.891 [REPO] Opened Portable Index with version [1.0], last write [2024-04-29 01:22:19.000]
2024-04-29 19:24:35.896 [REPO] Opening database for ReadWrite at 'C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Packages\Google.PlatformTools_Microsoft.Winget.Source_8wekyb3d8bbwe\Google.PlatformTools_Microsoft.Winget.Source_8wekyb3d8bbwe.db'
2024-04-29 19:24:35.897 [REPO] Opened Portable Index with version [1.0], last write [2024-04-29 01:22:19.000]
2024-04-29 19:24:35.897 [CLI ] Removing directory at C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Packages\Google.PlatformTools_Microsoft.Winget.Source_8wekyb3d8bbwe\platform-tools
2024-04-29 19:24:35.915 [CLI ] Deleting portable symlink at: C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Links\adb.exe
2024-04-29 19:24:35.925 [CLI ] Deleting portable symlink at: C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Links\fastboot.exe
2024-04-29 19:24:35.933 [CLI ] Portable index deleted: C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Packages\Google.PlatformTools_Microsoft.Winget.Source_8wekyb3d8bbwe\Google.PlatformTools_Microsoft.Winget.Source_8wekyb3d8bbwe.db
2024-04-29 19:24:35.933 [REPO] Creating new Portable Index with version [Latest] at 'C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Packages\Google.PlatformTools_Microsoft.Winget.Source_8wekyb3d8bbwe\Google.PlatformTools_Microsoft.Winget.Source_8wekyb3d8bbwe.db'
2024-04-29 19:24:35.974 [CORE] Renaming directory to: C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Packages\Google.PlatformTools_Microsoft.Winget.Source_8wekyb3d8bbwe\platform-tools
2024-04-29 19:24:35.984 [CORE] Symlink created at: C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Links\adb.exe
2024-04-29 19:24:35.995 [CORE] Symlink created at: C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Links\fastboot.exe
2024-04-29 19:24:35.996 [CLI ] Portable target directory already exists in PATH registry: C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Links
2024-04-29 19:24:36.003 [REPO] Opening database for ReadWrite at 'C:\Users\Administrator\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2024-04-29 19:24:36.004 [REPO] Opened SQLite Index with version [1.7], last write [2024-04-29 00:49:55.000]
2024-04-29 19:24:36.047 [CLI ] Removing installer: C:\Users\ADMINI~1\AppData\Local\Temp\WinGet\Google.PlatformTools.35.0.1\extracted
2024-04-29 19:24:36.047 [CLI ] Leaf command succeeded: root:install

Scrcpy Logs

2024-04-29 19:26:37.632 [CORE] WinGet, version [1.7.11132], activity [{E5338383-4B11-499A-A06E-FA097AE97F77}]
2024-04-29 19:26:37.632 [CORE] OS: Windows.Desktop v10.0.22631.3447
2024-04-29 19:26:37.632 [CORE] Command line Args: "C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps\winget.exe" install -e --id Genymobile.scrcpy --force
2024-04-29 19:26:37.633 [CORE] Package: Microsoft.DesktopAppInstaller v1.22.11132.0
2024-04-29 19:26:37.633 [CORE] IsCOMCall:0; Caller: winget-cli
2024-04-29 19:26:37.641 [CLI ] WinGet invoked with arguments: 'install' '-e' '--id' 'Genymobile.scrcpy' '--force'
2024-04-29 19:26:37.641 [CLI ] Found subcommand: install
2024-04-29 19:26:37.641 [CLI ] Leaf command to execute: root:install
2024-04-29 19:26:37.644 [CLI ] Executing command: install
2024-04-29 19:26:37.655 [REPO] Default source requested, multiple sources available, adding all to source references.
2024-04-29 19:26:37.655 [REPO] Adding to source references msstore
2024-04-29 19:26:37.655 [REPO] Adding to source references winget
2024-04-29 19:26:37.655 [CLI ] Created authentication arguments. Mode: silentPreferred, Account: 
2024-04-29 19:26:37.672 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2024-04-29 19:26:37.672 [CORE] Found matching extension.
2024-04-29 19:26:37.677 [REPO] Multiple sources available, creating aggregated source.
2024-04-29 19:26:37.677 [REPO] Adding to aggregated source: msstore
2024-04-29 19:26:37.677 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2024-04-29 19:26:38.180 [REPO] Response status: 200
2024-04-29 19:26:38.180 [REPO] Authentication node not found. Assuming authentication type none.
2024-04-29 19:26:38.181 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2024-04-29 19:26:38.255 [REPO] Response status: 200
2024-04-29 19:26:38.255 [REPO] Authentication node not found. Assuming authentication type none.
2024-04-29 19:26:38.256 [REPO] Adding to aggregated source: winget
2024-04-29 19:26:38.263 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2024-04-29 19:26:38.263 [CORE] Found matching extension.
2024-04-29 19:26:38.291 [REPO] Opening database for ImmutableRead at 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2024.429.1212.299_neutral__8wekyb3d8bbwe\Public\index.db'
2024-04-29 19:26:38.293 [REPO] Opened SQLite Index with version [1.7], last write [2024-04-29 17:12:29.000]
2024-04-29 19:26:38.552 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/packageManifests/Genymobile.scrcpy?Market=US
2024-04-29 19:26:38.607 [REPO] Response status: 200
2024-04-29 19:26:38.617 [CLI ] Found one app. App id: Genymobile.scrcpy App name: scrcpy
2024-04-29 19:26:38.625 [REPO] Attempting to open pinning database: C:\Users\Administrator\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db
2024-04-29 19:26:38.626 [REPO] Downloading manifest
2024-04-29 19:26:38.626 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/g/Genymobile/scrcpy/2.4/b618
2024-04-29 19:26:38.656 [CORE] Download hash: 31de78fddde82348e276c7006f77c7fc6dedd1234666e76eb22cee84e41e8fd6
2024-04-29 19:26:38.656 [CORE] Download completed.
2024-04-29 19:26:38.657 [CLI ] Manifest fields: Name [scrcpy], Version [2.4]
2024-04-29 19:26:38.674 [CLI ] Found existing installer file at 'C:\Users\ADMINI~1\AppData\Local\Temp\WinGet\Genymobile.scrcpy.2.4\scrcpy-win64-v2.4.zip'. Verifying file hash.
2024-04-29 19:26:38.684 [CLI ] Existing installer file hash matches. Will use existing installer.
2024-04-29 19:26:38.684 [CLI ] Installer hash verified
2024-04-29 19:26:38.684 [CORE] Started applying motw to C:\Users\ADMINI~1\AppData\Local\Temp\WinGet\Genymobile.scrcpy.2.4\scrcpy-win64-v2.4.zip with zone: 2
2024-04-29 19:26:38.687 [CORE] Finished applying motw
2024-04-29 19:26:38.800 [CLI ] Extracting archive to: C:\Users\ADMINI~1\AppData\Local\Temp\WinGet\Genymobile.scrcpy.2.4\extracted
2024-04-29 19:26:40.300 [CLI ] Successfully extracted archive
2024-04-29 19:26:40.413 [REPO] Opening database for ReadWrite at 'C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Packages\Genymobile.scrcpy_Microsoft.Winget.Source_8wekyb3d8bbwe\Genymobile.scrcpy_Microsoft.Winget.Source_8wekyb3d8bbwe.db'
2024-04-29 19:26:40.415 [REPO] Opened Portable Index with version [1.0], last write [2024-04-29 19:26:32.000]
2024-04-29 19:26:40.420 [REPO] Opening database for ReadWrite at 'C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Packages\Genymobile.scrcpy_Microsoft.Winget.Source_8wekyb3d8bbwe\Genymobile.scrcpy_Microsoft.Winget.Source_8wekyb3d8bbwe.db'
2024-04-29 19:26:40.421 [REPO] Opened Portable Index with version [1.0], last write [2024-04-29 19:26:32.000]
2024-04-29 19:26:40.421 [CLI ] Removing directory at C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Packages\Genymobile.scrcpy_Microsoft.Winget.Source_8wekyb3d8bbwe\scrcpy-win64-v2.4
2024-04-29 19:26:40.441 [CLI ] Deleting portable symlink at: C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Links\scrcpy.exe
2024-04-29 19:26:40.453 [CLI ] Portable index deleted: C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Packages\Genymobile.scrcpy_Microsoft.Winget.Source_8wekyb3d8bbwe\Genymobile.scrcpy_Microsoft.Winget.Source_8wekyb3d8bbwe.db
2024-04-29 19:26:40.453 [REPO] Creating new Portable Index with version [Latest] at 'C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Packages\Genymobile.scrcpy_Microsoft.Winget.Source_8wekyb3d8bbwe\Genymobile.scrcpy_Microsoft.Winget.Source_8wekyb3d8bbwe.db'
2024-04-29 19:26:40.497 [CORE] Renaming directory to: C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Packages\Genymobile.scrcpy_Microsoft.Winget.Source_8wekyb3d8bbwe\scrcpy-win64-v2.4
2024-04-29 19:26:40.511 [CORE] Symlink created at: C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Links\scrcpy.exe
2024-04-29 19:26:40.512 [CLI ] Portable target directory already exists in PATH registry: C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Links
2024-04-29 19:26:40.519 [REPO] Opening database for ReadWrite at 'C:\Users\Administrator\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2024-04-29 19:26:40.521 [REPO] Opened SQLite Index with version [1.7], last write [2024-04-29 19:26:32.000]
2024-04-29 19:26:40.566 [CLI ] Removing installer: C:\Users\ADMINI~1\AppData\Local\Temp\WinGet\Genymobile.scrcpy.2.4\extracted
2024-04-29 19:26:40.566 [CLI ] Leaf command succeeded: root:install

@rahaaatul rahaaatul added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Apr 29, 2024
@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 Apr 29, 2024
@rahaaatul
Copy link
Author

Can you check if the specified file is available in the installation folder. Screenshot 2024-04-29 210955 Screenshot 2024-04-29 211014

Yes, of course!

As I said before, I had to add Paths to environment path and before Winget/Links path to make them work.

By the way, I love the terminal background, can you share the source, please?

@drshtmstry
Copy link
Contributor

drshtmstry commented Apr 29, 2024

By the way, I love the terminal background, can you share the source, please?

Terminal is actually translucent. Get the wallpaper here https://wallpapershome.com/download-wallpapers/windows/leaves-rain-blue-windows-12-25408.html

@rahaaatul
Copy link
Author

That's weird. Why wouldn't it do it for me? How did you install it?

I did it like:

winget install -e --id Genymobile.scrcpy

@Trenly
Copy link
Contributor

Trenly commented Apr 29, 2024

This seems to be related to the packages being Zipped Binaries and DLLs not being available via symlink. If Developer mode is enabled or the install is performed from an administrator terminal, symlinks will be used and the Links directory will be added to PATH. If neither of those conditions are true, the install directory will be added to PATH.

@microsoft-github-policy-service microsoft-github-policy-service bot added zip-binary Depends on library files that aren't available via symlink and removed Needs-Triage This work item needs to be triaged by a member of the core team. labels Apr 29, 2024
Copy link
Contributor

Hello @rahaaatul,

This package appears to depend on .dlls that aren't available via symlink.

This package is blocked until support for zipped binaries is implemented in:

Be sure to add your 👍 to the issue to help raise the priority and avoid posting "Me too!" messages to respect those who have subscribed to the issue.

Template: msftbot/blockingIssue/zipBinary

@microsoft-github-policy-service microsoft-github-policy-service bot added the Blocking-Issue Manifest validation is blocked by a known issue. label Apr 29, 2024
@rahaaatul
Copy link
Author

winget install Google.platformtools

Tried, it's same as before.

This seems to be related to the packages being Zipped Binaries and DLLs not being available via symlink. If Developer mode is enabled or the install is performed from an administrator terminal, symlinks will be used and the Links directory will be added to PATH. If neither of those conditions are true, the install directory will be added to PATH.

You are correct. I performed from an administrator terminal. Is that why?

Links directory is added but I get the error anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocking-Issue Manifest validation is blocked by a known issue. Issue-Bug It either shouldn't be doing this or needs an investigation. zip-binary Depends on library files that aren't available via symlink
Projects
None yet
Development

No branches or pull requests

3 participants