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]: KiCad.KiCad #151982

Closed
2 tasks done
MatthewA1 opened this issue May 2, 2024 · 2 comments · Fixed by #155191
Closed
2 tasks done

[Package Issue]: KiCad.KiCad #151982

MatthewA1 opened this issue May 2, 2024 · 2 comments · Fixed by #155191
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

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

KiCad upgrade from 8.0.1 to 8.0.2 fails with code 666661

Steps to reproduce

With KiCad 8.0.1 installed for all users, run winget upgrade KiCad.KiCad to upgrade the package to the current version, 8.0.2

Actual behavior

  • The package upgrade installer fails with exit code 666661
  • An administrator prompt is never launched even though it should be since this is a multiuser installation
  • I can see the installer did launch initially as there is a popup showing it is extracting.

Expected behavior

The package should be upgraded

Environment

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

Windows: Windows.Desktop v10.0.19045.4291
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.10861.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                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

Screenshots and Logs

Terminal output:
image

Log file for winget upgrade KiCad.KiCad:
WinGet-2024-05-02-14-45-32.862.log

@MatthewA1 MatthewA1 added the Issue-Bug It either shouldn't be doing this or needs an investigation. label May 2, 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 May 2, 2024
@Trenly
Copy link
Contributor

Trenly commented May 2, 2024

@denelon - Looks like this may be an issue with the CLI

2024-05-02 14:45:32.864 [CORE] WinGet, version [1.7.10861], activity [{5C836496-03FC-4B5B-8A93-3342CFCB71C6}]
2024-05-02 14:45:32.864 [CORE] OS: Windows.Desktop v10.0.19045.4291
2024-05-02 14:45:32.864 [CORE] Command line Args: winget  upgrade KiCad.KiCad
2024-05-02 14:45:32.864 [CORE] Package: Microsoft.DesktopAppInstaller v1.22.10861.0
2024-05-02 14:45:32.864 [CORE] IsCOMCall:0; Caller: winget-cli
2024-05-02 14:45:32.876 [CLI ] WinGet invoked with arguments: 'upgrade' 'KiCad.KiCad'
|
|
2024-05-02 14:45:33.138 [REPO] Opening database for ImmutableRead at 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2024.502.1909.331_neutral__8wekyb3d8bbwe\Public\index.db'
2024-05-02 14:45:33.139 [REPO] Opened SQLite Index with version [1.7], last write [2024-05-02 13:09:02.000]
2024-05-02 14:45:33.249 [REPO] Creating new SQLite Index with version [Latest] at ':memory:'
2024-05-02 14:45:33.254 [REPO] Reading MSI UpgradeCodes
2024-05-02 14:45:33.340 [REPO] Reading MSI UpgradeCodes
2024-05-02 14:45:33.374 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\Schema\1_0\Interface_1_0.cpp(197)\WindowsPackageManager.dll!00007FFB0641069C: (caller: 00007FFB064173A9) Exception(1) tid(6d38) 800700B7 Cannot create a file when that file already exists.

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage This work item needs to be triaged by a member of the core team. label May 2, 2024
@marekr
Copy link

marekr commented May 18, 2024

Yea there were issues with Microsoft Intune and co uninstalling kicad. It resulted in uninstalls with Intune throwing the GUI escalation prompt which blocked uninstall. So a autoescalation call was removed when operating kicad install as silent install.

The installer must be run escalated by the calling process now that is invoking the silent install. GUI based installs work just fine and will trigger escalation as required.

winget should just pre-escalate the installer in all-user install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

3 participants