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]: iA.iAWriter doesn't work with --scope user #110774

Closed
2 tasks done
jonaskuske opened this issue Jun 27, 2023 · 3 comments
Closed
2 tasks done

[Package Issue]: iA.iAWriter doesn't work with --scope user #110774

jonaskuske opened this issue Jun 27, 2023 · 3 comments
Labels
Area-External Blocking-Issue Manifest validation is blocked by a known issue. Help-Wanted This is a good candidate work item from the community. Installer-Issue Issue with the package's installer. Issue-Bug It either shouldn't be doing this or needs an investigation. Package-Update This package needs to be updated
Milestone

Comments

@jonaskuske
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

Other

Brief description of your issue

Installer supports local installs (when run manually), but winget only allows --scope machine.

Maybe all that's missing is listing user as supported in the manifest?

Steps to reproduce

winget install -e --id iA.iAWriter --scope user

Actual behavior

Es wurde kein anwendbarer Installer gefunden. Weitere Informationen finden Sie in den Protokollen.

(no applicable installer found)

Expected behavior

Install succeeds.

Environment

Windows-Paket-Manager (Vorschau) v1.6.1573-preview
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.

Windows: Windows.Desktop v10.0.22621.1848
Systemarchitektur: X64
Paket: Microsoft.DesktopAppInstaller v1.21.1573.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)       C:/Users/jonaskuske/AppData/Local/Programs
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages

Links
-----------------------------------------------------------------------------------------
Datenschutzerklärung              https://aka.ms/winget-privacy
Lizenzvereinbarung                https://aka.ms/winget-license
Hinweise von Drittanbietern       https://aka.ms/winget-3rdPartyNotice
Startseite                        https://aka.ms/winget
Windows Store-Nutzungsbedingungen https://www.microsoft.com/en-us/storedocs/terms-of-sale

Administratoreinstellung                  Status
-----------------------------------------------------
LocalManifestFiles                        Deaktiviert
BypassCertificatePinningForMicrosoftStore Deaktiviert
InstallerHashOverride                     Deaktiviert
LocalArchiveMalwareScanOverride           Deaktiviert

Screenshots and Logs

Show log
2023-06-27 17:37:58.570 [CORE] WinGet, version [1.6.1573-preview], activity [{77BF0776-0DC6-4AC0-959F-AA180247F427}]
2023-06-27 17:37:58.571 [CORE] OS: Windows.Desktop v10.0.22621.1848
2023-06-27 17:37:58.571 [CORE] Command line Args: "C:\Users\jonaskuske\AppData\Local\Microsoft\WindowsApps\winget.exe" install iA.iAWriter --scope user
2023-06-27 17:37:58.571 [CORE] Package: Microsoft.DesktopAppInstaller v1.21.1573.0
2023-06-27 17:37:58.571 [CORE] IsCOMCall:0; Caller: winget-cli
2023-06-27 17:37:58.579 [CLI ] WinGet invoked with arguments: 'install' 'iA.iAWriter' '--scope' 'user'
2023-06-27 17:37:58.579 [CLI ] Found subcommand: install
2023-06-27 17:37:58.579 [CLI ] Leaf command to execute: root:install
2023-06-27 17:37:58.583 [CLI ] Executing command: install
2023-06-27 17:37:58.594 [REPO] Default source requested, multiple sources available, adding all to source references.
2023-06-27 17:37:58.594 [REPO] Adding to source references msstore
2023-06-27 17:37:58.594 [REPO] Adding to source references winget
2023-06-27 17:37:58.594 [REPO] Multiple sources available, creating aggregated source.
2023-06-27 17:37:58.595 [REPO] Adding to aggregated source: msstore
2023-06-27 17:37:58.595 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2023-06-27 17:37:58.846 [REPO] Response status: 200
2023-06-27 17:37:58.847 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2023-06-27 17:37:58.878 [REPO] Response status: 200
2023-06-27 17:37:58.878 [REPO] Adding to aggregated source: winget
2023-06-27 17:37:58.906 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2023-06-27 17:37:58.906 [CORE] Found matching extension.
2023-06-27 17:37:58.950 [REPO] Opening SQLite Index for ImmutableRead at 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2023.627.1223.534_neutral__8wekyb3d8bbwe\Public\index.db'
2023-06-27 17:37:58.950 [SQL ] Opening SQLite connection #1: 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2023.627.1223.534_neutral__8wekyb3d8bbwe\Public\index.db' [1, 40]
2023-06-27 17:37:58.952 [REPO] Opened SQLite Index with version [1.6], last write [2023-06-27 13:22:32.000]
2023-06-27 17:37:59.241 [REPO] Creating PredefinedInstalledSource with filter [None]
2023-06-27 17:37:59.242 [REPO] Creating new SQLite Index with version [Latest] at ':memory:'
2023-06-27 17:37:59.242 [SQL ] Opening SQLite connection #2: ':memory:' [6, 0]
2023-06-27 17:37:59.337 [REPO] Reading MSI UpgradeCodes
2023-06-27 17:37:59.367 [REPO] Examining ARP entries for Machine | X64
2023-06-27 17:37:59.458 [REPO] Examining ARP entries for Machine | X86
2023-06-27 17:37:59.593 [REPO] Reading MSI UpgradeCodes
2023-06-27 17:37:59.619 [REPO] Examining ARP entries for User | X64
2023-06-27 17:38:00.163 [REPO] Opening SQLite Index for ReadWrite at 'C:\Users\jonaskuske\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db'
2023-06-27 17:38:00.163 [SQL ] Opening SQLite connection #3: 'C:\Users\jonaskuske\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db' [2, 0]
2023-06-27 17:38:00.164 [REPO] Opened SQLite Index with version [1.3], last write [2021-11-20 02:14:46.000]
2023-06-27 17:38:00.205 [REPO] Sending http POST request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/manifestSearch
2023-06-27 17:38:00.235 [REPO] Response status: 200
2023-06-27 17:38:00.242 [REPO] Opening SQLite Index for ReadWrite at 'C:\Users\jonaskuske\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2023-06-27 17:38:00.242 [SQL ] Opening SQLite connection #4: 'C:\Users\jonaskuske\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db' [2, 0]
2023-06-27 17:38:00.243 [REPO] Opened SQLite Index with version [1.3], last write [2023-06-27 17:34:26.000]
2023-06-27 17:38:00.286 [REPO] Finding installed package from tracking package using system reference search: Query:[none] Include:ProductCode='{87ade998-1d4b-4c06-8081-2808deb6263d}'[Exact] Include:NormalizedNameAndPublisher='iawriter'+'ia'[Exact]
2023-06-27 17:38:00.314 [REPO] Downloading manifest
2023-06-27 17:38:00.314 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/i/iA/iAWriter/1.4.8566.25825/b9df-iA.iAWriter.yaml
2023-06-27 17:38:00.342 [CORE] Download hash: d5843b394936b272198038d2b04fade7e0e80c7cd1607d9dc994aba1ee615050
2023-06-27 17:38:00.343 [CORE] Download completed.
2023-06-27 17:38:00.349 [REPO] Downloading manifest
2023-06-27 17:38:00.349 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/i/iA/iAWriter/1.4.7655.28208/6347-iA.iAWriter.yaml
2023-06-27 17:38:00.357 [CORE] Download hash: 5a154fdb4e49349b73f5b0ac85505f7e7c6a3222a9888e20f6a7290a7732f0e7
2023-06-27 17:38:00.357 [CORE] Download completed.
2023-06-27 17:38:00.359 [REPO] Finding installed package from available package using system reference search: Query:[none] Include:UpgradeCode='{95c14d65-4a23-43a9-b96d-cff8e2afaf15}'[Exact] Include:NormalizedNameAndPublisher='ia writer'+'ia inc'[Exact] Include:NormalizedNameAndPublisher='iawriter'+'ia'[Exact]
2023-06-27 17:38:00.368 [REPO] Opening pinning index
2023-06-27 17:38:00.369 [REPO] Opening existing pinning index
2023-06-27 17:38:00.369 [REPO] Opening SQLite Index for ReadWrite at 'C:\Users\jonaskuske\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db'
2023-06-27 17:38:00.369 [SQL ] Opening SQLite connection #5: 'C:\Users\jonaskuske\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db' [2, 0]
2023-06-27 17:38:00.370 [REPO] Opened Pinning Index with version [1.0], last write [2023-06-16 00:18:02.000]
2023-06-27 17:38:00.378 [CLI ] Found one app. App id: iA.iAWriter App name: iA Writer
2023-06-27 17:38:00.383 [REPO] Downloading manifest
2023-06-27 17:38:00.383 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/i/iA/iAWriter/1.4.8566.25825/b9df-iA.iAWriter.yaml
2023-06-27 17:38:00.385 [CORE] Download hash: d5843b394936b272198038d2b04fade7e0e80c7cd1607d9dc994aba1ee615050
2023-06-27 17:38:00.385 [CORE] Download completed.
2023-06-27 17:38:00.387 [CLI ] Starting installer selection.
2023-06-27 17:38:00.387 [CLI ] Installer [X64,exe,Machine,] not applicable: Installer scope does not match required scope: Machine != User
2023-06-27 17:38:00.390 [REPO] Downloading manifest
2023-06-27 17:38:00.390 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/i/iA/iAWriter/1.4.7655.28208/6347-iA.iAWriter.yaml
2023-06-27 17:38:00.392 [CORE] Download hash: 5a154fdb4e49349b73f5b0ac85505f7e7c6a3222a9888e20f6a7290a7732f0e7
2023-06-27 17:38:00.392 [CORE] Download completed.
2023-06-27 17:38:00.393 [CLI ] Starting installer selection.
2023-06-27 17:38:00.393 [CLI ] Installer [X64,exe,Machine,] not applicable: Installer scope does not match required scope: Machine != User
2023-06-27 17:38:00.407 [CLI ] Terminating context: 0x8a150010 at D:\a\_work\1\s\external\pkg\src\AppInstallerCLICore\Workflows\UpdateFlow.cpp:b8
@jonaskuske jonaskuske added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Jun 27, 2023
@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 Jun 27, 2023
@jonaskuske jonaskuske changed the title [Package Issue]: iA.iAWriter [Package Issue]: iA.iAWriter doesn't work with --scope user Jun 27, 2023
@stephengillie stephengillie added Help-Wanted This is a good candidate work item from the community. Package-Update This package needs to be updated and removed Needs-Triage This work item needs to be triaged by a member of the core team. labels Jun 27, 2023
@BrandonWanHuanSheng
Copy link
Contributor

It look like it might have issue with the MSIProperty because CurrentUser writes the uninstall values to HKLM. So, why it unable to upgrade in the current user accounts. See more information microsoft/winget-cli#3011.

@Trenly
Copy link
Contributor

Trenly commented Jul 3, 2023

Since CurrentUser writes to HKLM instead of HKCU, the install will always be detected as machine scoped.

[Policy] Blocking Issue
[Policy] Installer Issue

@microsoft-github-policy-service microsoft-github-policy-service bot added Blocking-Issue Manifest validation is blocked by a known issue. Installer-Issue Issue with the package's installer. Area-External labels Jul 3, 2023
Copy link
Contributor

Hello @jonaskuske,

This issue has been identified as requiring a fix from a third party or external repository. Since there has been no recent activity on this issue, it will be automatically closed.

Template: msftbot/noRecentActivity/areaExternal

@denelon denelon added this to the 1.7 Packages milestone Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-External Blocking-Issue Manifest validation is blocked by a known issue. Help-Wanted This is a good candidate work item from the community. Installer-Issue Issue with the package's installer. Issue-Bug It either shouldn't be doing this or needs an investigation. Package-Update This package needs to be updated
Projects
None yet
Development

No branches or pull requests

5 participants