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]: Bitwarden.Bitwarden version 2024.1.0 unable to install with scope machine #135379

Closed
2 tasks done
MaanuelMM opened this issue Jan 18, 2024 · 1 comment · Fixed by #135382
Closed
2 tasks done
Labels
In-PR Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage This work item needs to be triaged by a member of the core team.
Milestone

Comments

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

When installing the Bitwarden client with scope machine, it is installed only for the current user.

Steps to reproduce

First of all, be sure Bitwarden isn't already installed. If so, please uninstall it first.

Open a PowerShell terminal and run the following command:

winget.exe install Bitwarden.Bitwarden --scope machine

Then, run the following command to create a new function to check the installation scope (extracted from SandboxTest.ps1 under the Tools directory of this repository):

function Get-ARPTable {
  $registry_paths = @('HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*','HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*', 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*', 'HKCU:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*')
  return Get-ItemProperty $registry_paths -ErrorAction SilentlyContinue |
      Where-Object { $_.DisplayName -and (-not $_.SystemComponent -or $_.SystemComponent -ne 1 ) } |
      Select-Object DisplayName, DisplayVersion, Publisher, @{N='ProductCode'; E={$_.PSChildName}}, @{N='Scope'; E={if($_.PSDrive.Name -eq 'HKCU') {'User'} else {'Machine'}}}
}

Then, execute that function:

Get-ARPTable

You can check that the Bitwarden client is installed with scope User instead of Machine:

DisplayName    : Bitwarden
DisplayVersion : 2024.1.0
Publisher      : Bitwarden Inc.
ProductCode    : 173a9bac-6f0d-50c4-8202-4744c69d091a
Scope          : User

Actual behavior

It is intalled for the current user instead for all users (machine).

Expected behavior

Should be installed for all users (machine).

Environment

[winget --info]
Windows Package Manager v1.6.3482
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.3930
System Architecture: X86
Package: Microsoft.DesktopAppInstaller v1.21.3482.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\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

Screenshots and Logs

2024-01-18 20:50:36.586 [CORE] WinGet, version [1.6.3482], activity [{7D4D4C5F-F0AA-4365-9AF5-76AECC202E89}]
2024-01-18 20:50:36.586 [CORE] OS: Windows.Desktop v10.0.19045.3930
2024-01-18 20:50:36.586 [CORE] Command line Args: "C:\Users\test\AppData\Local\Microsoft\WindowsApps\winget.exe" install Bitwarden.Bitwarden --scope machine
2024-01-18 20:50:36.586 [CORE] Package: Microsoft.DesktopAppInstaller v1.21.3482.0
2024-01-18 20:50:36.586 [CORE] IsCOMCall:0; Caller: winget-cli
2024-01-18 20:50:36.600 [CLI ] WinGet invoked with arguments: 'install' 'Bitwarden.Bitwarden' '--scope' 'machine'
2024-01-18 20:50:36.600 [CLI ] Found subcommand: install
2024-01-18 20:50:36.600 [CLI ] Leaf command to execute: root:install
2024-01-18 20:50:36.618 [CLI ] Executing command: install
2024-01-18 20:50:36.621 [REPO] Default source requested, multiple sources available, adding all to source references.
2024-01-18 20:50:36.621 [REPO] Adding to source references msstore
2024-01-18 20:50:36.621 [REPO] Adding to source references winget
2024-01-18 20:50:36.644 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2024-01-18 20:50:36.644 [CORE] Found matching extension.
2024-01-18 20:50:36.649 [REPO] Source `winget` after auto update time [5 mins]; it has been at least 15 mins
2024-01-18 20:50:36.657 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2024-01-18 20:50:36.657 [CORE] Found matching extension.
2024-01-18 20:50:36.792 [REPO] Multiple sources available, creating aggregated source.
2024-01-18 20:50:36.793 [REPO] Adding to aggregated source: msstore
2024-01-18 20:50:36.799 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2024-01-18 20:50:36.887 [REPO] Response status: 200
2024-01-18 20:50:36.894 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2024-01-18 20:50:36.905 [REPO] Response status: 200
2024-01-18 20:50:36.906 [REPO] Adding to aggregated source: winget
2024-01-18 20:50:36.914 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2024-01-18 20:50:36.914 [CORE] Found matching extension.
2024-01-18 20:50:36.978 [REPO] Opening SQLite Index for ImmutableRead at 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2024.118.1953.59_neutral__8wekyb3d8bbwe\Public\index.db'
2024-01-18 20:50:36.978 [SQL ] Opening SQLite connection #1: 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2024.118.1953.59_neutral__8wekyb3d8bbwe\Public\index.db' [1, 40]
2024-01-18 20:50:36.986 [REPO] Opened SQLite Index with version [1.7], last write [2024-01-18 19:52:20.000]
2024-01-18 20:50:37.264 [REPO] Creating new SQLite Index with version [Latest] at ':memory:'
2024-01-18 20:50:37.264 [SQL ] Opening SQLite connection #2: ':memory:' [6, 0]
2024-01-18 20:50:37.276 [REPO] Reading MSI UpgradeCodes
2024-01-18 20:50:37.298 [REPO] Reading MSI UpgradeCodes
2024-01-18 20:50:37.750 [SQL ] Opening SQLite connection #3: ':memory:' [6, 0]
2024-01-18 20:50:37.920 [REPO] Opening SQLite Index for ReadWrite at 'C:\Users\test\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db'
2024-01-18 20:50:37.920 [SQL ] Opening SQLite connection #4: 'C:\Users\test\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db' [2, 0]
2024-01-18 20:50:37.937 [REPO] Opened SQLite Index with version [1.6], last write [2023-12-21 19:04:40.000]
2024-01-18 20:50:37.951 [REPO] Sending http POST request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/manifestSearch
2024-01-18 20:50:37.998 [REPO] Response status: 200
2024-01-18 20:50:38.013 [REPO] Opening SQLite Index for ReadWrite at 'C:\Users\test\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2024-01-18 20:50:38.013 [SQL ] Opening SQLite connection #5: 'C:\Users\test\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db' [2, 0]
2024-01-18 20:50:38.018 [REPO] Opened SQLite Index with version [1.6], last write [2024-01-18 20:32:57.000]
2024-01-18 20:50:38.031 [REPO] Finding installed package from tracking package using system reference search: Query:[none] Include:ProductCode='173a9bac-6f0d-50c4-8202-4744c69d091a'[Exact] Include:NormalizedNameAndPublisher='bitwarden'+'bitwarden'[Exact]
2024-01-18 20:50:38.191 [REPO] Finding installed package from available package using system reference search: Query:[none] Include:ProductCode='173a9bac-6f0d-50c4-8202-4744c69d091a'[Exact] Include:NormalizedNameAndPublisher='bitwarden'+'bitwarden'[Exact]
2024-01-18 20:50:38.204 [REPO] Opening pinning index
2024-01-18 20:50:38.204 [REPO] Opening existing pinning index
2024-01-18 20:50:38.204 [REPO] Opening SQLite Index for ReadWrite at 'C:\Users\test\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db'
2024-01-18 20:50:38.204 [SQL ] Opening SQLite connection #6: 'C:\Users\test\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db' [2, 0]
2024-01-18 20:50:38.206 [REPO] Opened Pinning Index with version [1.0], last write [2023-12-21 19:04:41.000]
2024-01-18 20:50:38.209 [CLI ] Found one app. App id: Bitwarden.Bitwarden App name: Bitwarden
2024-01-18 20:50:38.219 [REPO] Downloading manifest
2024-01-18 20:50:38.219 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/b/Bitwarden/Bitwarden/2024.1.0/b0c3
2024-01-18 20:50:38.862 [CORE] Download hash: 089080f699b497fc158c12e2fc6066db3418ce268753b361d9d0e765b593d7e2
2024-01-18 20:50:38.862 [CORE] Download completed.
2024-01-18 20:50:38.881 [CLI ] Manifest fields: Name [Bitwarden], Version [2024.1.0]
2024-01-18 20:50:38.940 [CLI ] Generated temp download path: C:\Users\test\AppData\Local\Temp\WinGet\Bitwarden.Bitwarden.2024.1.0\5464319e265e28304801ea1cc74800b13e8ff7890c2f44a5dc5e75524693ffbc
2024-01-18 20:50:38.942 [CORE] Downloading to path: C:\Users\test\AppData\Local\Temp\WinGet\Bitwarden.Bitwarden.2024.1.0\5464319e265e28304801ea1cc74800b13e8ff7890c2f44a5dc5e75524693ffbc
2024-01-18 20:50:38.942 [CORE] DeliveryOptimization downloading from url: https://github.com/bitwarden/clients/releases/download/desktop-v2024.1.0/Bitwarden-Installer-2024.1.0.exe
2024-01-18 20:50:41.023 [CORE] Download completed.
2024-01-18 20:50:41.587 [CORE] Started applying motw to C:\Users\test\AppData\Local\Temp\WinGet\Bitwarden.Bitwarden.2024.1.0\5464319e265e28304801ea1cc74800b13e8ff7890c2f44a5dc5e75524693ffbc with zone: 3
2024-01-18 20:50:41.592 [CORE] Finished applying motw
2024-01-18 20:50:41.593 [CLI ] Installer hash verified
2024-01-18 20:50:41.594 [CORE] Started applying motw to C:\Users\test\AppData\Local\Temp\WinGet\Bitwarden.Bitwarden.2024.1.0\5464319e265e28304801ea1cc74800b13e8ff7890c2f44a5dc5e75524693ffbc with zone: 2
2024-01-18 20:50:41.606 [CORE] Finished applying motw
2024-01-18 20:50:41.606 [CLI ] Successfully renamed downloaded installer. Path: C:\Users\test\AppData\Local\Temp\WinGet\Bitwarden.Bitwarden.2024.1.0\Bitwarden-Installer-2024.1.0.exe
2024-01-18 20:50:41.607 [REPO] Creating new SQLite Index with version [Latest] at ':memory:'
2024-01-18 20:50:41.607 [SQL ] Opening SQLite connection #7: ':memory:' [6, 0]
2024-01-18 20:50:41.615 [REPO] Reading MSI UpgradeCodes
2024-01-18 20:50:41.628 [REPO] Reading MSI UpgradeCodes
2024-01-18 20:50:41.748 [CLI ] Installer args: /S /currentuser
2024-01-18 20:50:41.750 [CLI ] Starting: 'C:\Users\test\AppData\Local\Temp\WinGet\Bitwarden.Bitwarden.2024.1.0\Bitwarden-Installer-2024.1.0.exe' with arguments '/S /currentuser'
2024-01-18 20:51:05.725 [REPO] Creating new SQLite Index with version [Latest] at ':memory:'
2024-01-18 20:51:05.725 [SQL ] Opening SQLite connection #8: ':memory:' [6, 0]
2024-01-18 20:51:05.735 [REPO] Reading MSI UpgradeCodes
2024-01-18 20:51:05.749 [REPO] Reading MSI UpgradeCodes
2024-01-18 20:51:05.761 [CLI ] During package install, 1 changes to ARP were observed, 1 matches were found for the package, and 1 packages were in both
2024-01-18 20:51:05.761 [CLI ] The entry determined to be associated with the package is 'Bitwarden', with publisher 'Bitwarden Inc.'
2024-01-18 20:51:05.772 [REPO] Opening SQLite Index for ReadWrite at 'C:\Users\test\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2024-01-18 20:51:05.772 [SQL ] Opening SQLite connection #9: 'C:\Users\test\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db' [2, 0]
2024-01-18 20:51:05.773 [REPO] Opened SQLite Index with version [1.6], last write [2024-01-18 20:32:57.000]
2024-01-18 20:51:05.791 [CLI ] Removing installer: C:\Users\test\AppData\Local\Temp\WinGet\Bitwarden.Bitwarden.2024.1.0\Bitwarden-Installer-2024.1.0.exe
2024-01-18 20:51:05.791 [CLI ] Leaf command succeeded: root:install
@MaanuelMM MaanuelMM added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Jan 18, 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 Jan 18, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

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. Needs-Triage This work item needs to be triaged by a member of the core team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants