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

Cannot install version 0.58.0 - error 0x80073cf9 #18021

Closed
1 task done
mimimi000 opened this issue May 4, 2022 · 75 comments
Closed
1 task done

Cannot install version 0.58.0 - error 0x80073cf9 #18021

mimimi000 opened this issue May 4, 2022 · 75 comments
Assignees
Labels
Area-Setup/Install Refers to installation mechanism Hot Fix Items we will product an out-of-band release for Issue-Bug Something isn't working Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.

Comments

@mimimi000
Copy link

mimimi000 commented May 4, 2022

Crutkas: WinAppSDK has fix incoming for LocalSystem account installing

Microsoft PowerToys version

0.58.0

Running as admin

  • Yes

Area(s) with issue?

Installer

Steps to reproduce

The arguments /install /quiet /norestart are not used to install the version 0.58.0.
We could use them for previous installer.

✔️ Expected Behavior

We would like to install it by command silently.

❌ Actual Behavior

The version 0.58.0 is not installed by the arguments /install /quiet /norestart.

Other Software

No response

@mimimi000 mimimi000 added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels May 4, 2022
@mimimi000
Copy link
Author

image

It seems that the issue is not related argument.

@mimimi000 mimimi000 reopened this May 4, 2022
@mimimi000
Copy link
Author

How can we fix the issue 0x80073cf9 ?

@crutkas
Copy link
Member

crutkas commented May 4, 2022

can you provide the log file?

@crutkas crutkas added Hot Fix Items we will product an out-of-band release for and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels May 4, 2022
@crutkas
Copy link
Member

crutkas commented May 4, 2022

@jaimecbernardo could this be due to one of the dependencies

@htcfreek
Copy link
Collaborator

htcfreek commented May 4, 2022

Can someone please update the title that users can find the issue.

@Jay-o-Way Jay-o-Way added the Area-Setup/Install Refers to installation mechanism label May 4, 2022
@mimimi000 mimimi000 changed the title Cannot install version 0.58.0 by command Issue 0x80073cf9 on version 0.58.0 May 4, 2022
@pbargiona
Copy link

pbargiona commented May 4, 2022

Hello. My report #18023 has been marked as a duplicate from this one by @htcfreek. However, it had some (maybe minor) differences that I want to address here.

I tried installing from the pop-up and the "Try again to download & install" option. Both failed just after "Windows App SDK 1.0.3 Runtime Install". No error code was provided.

When trying to install from the .exe file downloaded from GitHub, I got a different error message, "0x80073cff - To install this application you need either a Windows developer license or a sideloading-enabled system"

I have the Linux Subsystem and Virtualization enabled, so I reckon I could sideload.

The log is provided below, @crutkas
powertoys-bootstrapper-msi-0.58.0_20220504030333.log

@Jay-o-Way
Copy link
Collaborator

Maybe we could pin important issues like this top the main list

@htcfreek
Copy link
Collaborator

htcfreek commented May 4, 2022

Maybe we could pin important issues like this top the main list

If we have place. You can only pin two.

@mimimi000
Copy link
Author

@crutkas my log file is here.
powertoys-bootstrapper-msi-0.58.0_20220504024008.log

It seems that the app was appeared in Program and Features once however it was removed during the installation.

@pbargiona
Copy link

Maybe we could pin important issues like this top the main list

If we have place. You can only pin two.

Not wanting to be inconsiderate, but this and #18032, #18026 (#18015) seem to be more time sensitive than the currently pinned #14495 (a proposal, inactive since February) or #14223 (a bug with webcams and VideoConferenceMute, known since November and 0.48 and inactive for 23 days now).

@franky920920
Copy link
Contributor

franky920920 commented May 4, 2022

Ln51 from @mimimi000's report:

[875C:1CA8][2022-05-04T02:40:09]w363: Could not create system restore point, error: 0x80070422. Continuing...

cc: @crutkas One of the issues seems like an issue with Windows system restore. But the setup should continue in this error.

@franky920920
Copy link
Contributor

The error 0x80073cf9 comes from package WinAppSDK101

[875C:1CA8][2022-05-04T02:40:18]i301: Applying execute package: WinAppSDK101, action: Install, path: C:\ProgramData\Package Cache\1269BB136655325EF6D66A018269BDAB3921E56B\WindowsAppRuntimeInstall.exe, arguments: '"C:\ProgramData\Package Cache\1269BB136655325EF6D66A018269BDAB3921E56B\WindowsAppRuntimeInstall.exe"'
[875C:1CA8][2022-05-04T02:40:24]e000: Error 0x80073cf9: Process returned error: 0x80073cf9
[875C:1CA8][2022-05-04T02:40:24]e000: Error 0x80073cf9: Failed to execute EXE package.
[7478:28B4][2022-05-04T02:40:24]e000: Error 0x80073cf9: Failed to configure per-machine EXE package.
[7478:28B4][2022-05-04T02:40:24]i319: Applied execute package: WinAppSDK101, result: 0x80073cf9, restart: None
[7478:28B4][2022-05-04T02:40:24]e000: Error 0x80073cf9: Failed to execute EXE package.

@mimimi000 Could you please try to install it manually from this link: https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads and see if it works?

@franky920920
Copy link
Contributor

Seems like #18015 to me

@pbargiona
Copy link

pbargiona commented May 4, 2022

@franky920920 My installation fails just after trying to install Windows App SDK 1.0.3

[3014:3B10][2022-05-04T03:03:51]i301: Applying execute package: WinAppSDK101, action: Install, path: C:\ProgramData\Package Cache\1269BB136655325EF6D66A018269BDAB3921E56B\WindowsAppRuntimeInstall.exe, arguments: '"C:\ProgramData\Package Cache\1269BB136655325EF6D66A018269BDAB3921E56B\WindowsAppRuntimeInstall.exe"'
[3014:3B10][2022-05-04T03:03:56]e000: Error 0x80073cff: Process returned error: 0x80073cff
[3014:3B10][2022-05-04T03:03:56]e000: Error 0x80073cff: Failed to execute EXE package.
[11E4:2748][2022-05-04T03:03:56]e000: Error 0x80073cff: Failed to configure per-machine EXE package.
[11E4:2748][2022-05-04T03:03:56]i319: Applied execute package: WinAppSDK101, result: 0x80073cff, restart: None
[11E4:2748][2022-05-04T03:03:56]e000: Error 0x80073cff: Failed to execute EXE package.
[3014:3B10][2022-05-04T03:03:56]i351: Removing cached package: WinAppSDK101, from path: C:\ProgramData\Package Cache\1269BB136655325EF6D66A018269BDAB3921E56B\
[3014:3B10][2022-05-04T03:03:56]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7f0d7424-d132-4aaf-baa9-5d7d436f0feb}, resume: None, restart: None, disable resume: No
[3014:3B10][2022-05-04T03:03:56]i330: Removed bundle dependency provider: {7f0d7424-d132-4aaf-baa9-5d7d436f0feb}
[3014:3B10][2022-05-04T03:03:56]i352: Removing cached bundle: {7f0d7424-d132-4aaf-baa9-5d7d436f0feb}, from path: C:\ProgramData\Package Cache\{7f0d7424-d132-4aaf-baa9-5d7d436f0feb}\
[3014:3B10][2022-05-04T03:03:56]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7f0d7424-d132-4aaf-baa9-5d7d436f0feb}, resume: None, restart initiated: No, disable resume: No
[11E4:2748][2022-05-04T03:03:56]i399: Apply complete, result: 0x80073cff, restart: None, ba requested restart:  No

Trying to install it from your link fails the same way,~

image

@jaimecbernardo jaimecbernardo changed the title Issue 0x80073cf9 on version 0.58.0 Cannot install version 0.58.0 - error 0x80073cf9 May 4, 2022
@piersmyers
Copy link

piersmyers commented May 4, 2022

Could this be a Windows 10 version issue? Upgrade to 0.58 worked fine on my Windows 10 (21H2 - 19044.1682) machine but failed as above on a Windows 10 (1909 - 18363.2158) machine. Is there a minimum requirement for the app-sdk?

@NguyenASang
Copy link

@piersmyers I think so, worked fine on Window 11 (21H2 - 22000.652)

@jaimecbernardo
Copy link
Collaborator

Could this be a Windows 10 version issue? Upgrade to 0.58 worked fine on my Windows 10 (21H2 - 19044.1682) machine but failed as above on a Windows 10 (1909 - 18363.2158) machine. Is there a minimum requirement for the app-sdk?

Windows app sdk is supposed to support >1809, according to https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/

@jaimecbernardo
Copy link
Collaborator

@pbargiona
Regarding the side load error, it seems it can be some policy in the machine that's not allowing this: microsoft/WindowsAppSDK#1119

Though according to the discussion, stable releases should not require sideloading.

@RocketToast
Copy link

If https://aka.ms/windowsappsdk/1.0/1.0.3/windowsappruntimeinstall-1.0.3-x64.exe is failing according to installation logs, please download it manually try to run it from a command prompt to check what error it's giving..

I tried installing this from an Elevated Powershell prompt.
Screenshot 2022-05-31 141914

@pbargiona
Copy link

@SeregaKR , Have you tried installing https://aka.ms/windowsappsdk/1.0/1.0.3/windowsappruntimeinstall-1.0.3-x64.exe manually from a command prompt to check which errors it's returning?

@jaimecbernardo Uploaded the screenshot

изображение

If https://aka.ms/windowsappsdk/1.0/1.0.3/windowsappruntimeinstall-1.0.3-x64.exe is failing according to installation logs, please download it manually try to run it from a command prompt to check what error it's giving..

I tried installing this from an Elevated Powershell prompt. Screenshot 2022-05-31 141914

Should I suggest you try enabling "Install apps from any source, including loose files" (this option is in Developer Settings) and try installing WinAppSDK from an elevated PowerShell?
Don't forget to disable this option afterwards, since it is suboptimal.
This issue seems to be caused by issues with software signature inside MS and the PowerToys option for the runtime installer, instead of the DDLM version.

@RocketToast
Copy link

@SeregaKR , Have you tried installing https://aka.ms/windowsappsdk/1.0/1.0.3/windowsappruntimeinstall-1.0.3-x64.exe manually from a command prompt to check which errors it's returning?

@jaimecbernardo Uploaded the screenshot
изображение

If https://aka.ms/windowsappsdk/1.0/1.0.3/windowsappruntimeinstall-1.0.3-x64.exe is failing according to installation logs, please download it manually try to run it from a command prompt to check what error it's giving..

I tried installing this from an Elevated Powershell prompt. Screenshot 2022-05-31 141914

Should I suggest you try enabling "Install apps from any source, including loose files" (this option is in Developer Settings) and try installing WinAppSDK from an elevated PowerShell? Don't forget to disable this option afterwards, since it is suboptimal. This issue seems to be caused by issues with software signature inside MS and the PowerToys option for the runtime installer, instead of the DDLM version.


Same thing with the Developer mode turned on.

Screenshot 2022-05-31 150554

@pbargiona
Copy link

@DFA-2Tricky Have you noticed any other problem with installing Windows Updates, Microsoft Store App Updates, or turning on/off Windows Features?

@orev
Copy link

orev commented May 31, 2022

App store is disabled via GPO in my organization, and I cannot turn it back on. Developer/Loose file mode is also blocked due to GPO.

P.S. I also have local and domain admin, but I'm not planning on removing GPOs for a simple software install.

@DrusTheAxe
Copy link
Member

0x80073cf6 = ERROR_INSTALL_REGISTRATION_FAILURE
Package could not be registered.

The E_FAIL-of-MSIX-deployment. But more details should be available if you check the event log

  1. Run eventvwr.exe
  2. Expand left tree Applications and Services Logs > Microsoft >Windows > AppXDeployment-Server > Microsoft-Windows-AppXDeploymentServer/Operational

There should be an event in that channel for that error, and at least 1 error preceding it. That should indicate the root problem.

Whatcha' see?

@RocketToast
Copy link

RocketToast commented May 31, 2022

@DFA-2Tricky Have you noticed any other problem with installing Windows Updates, Microsoft Store App Updates, or turning on/off Windows Features?

No problems with Windows Updates, Store or adding features.

@DrusTheAxe

0x80073cf6 = ERROR_INSTALL_REGISTRATION_FAILURE Package could not be registered.

The E_FAIL-of-MSIX-deployment. But more details should be available if you check the event log

  1. Run eventvwr.exe
  2. Expand left tree Applications and Services Logs > Microsoft >Windows > AppXDeployment-Server > Microsoft-Windows-AppXDeploymentServer/Operational

There should be an event in that channel for that error, and at least 1 error preceding it. That should indicate the root problem.

Whatcha' see?

There are 2 errors:


[-](https://github.com/microsoft/PowerToys/issues/18021#) <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
[-](https://github.com/microsoft/PowerToys/issues/18021#) <System>
  <Provider Name="Microsoft-Windows-AppXDeployment-Server" Guid="{3f471139-acb7-4a01-b7a7-ff5da4ba2d43}" /> 
  <EventID>401</EventID> 
  <Version>0</Version> 
  <Level>2</Level> 
  <Task>3</Task> 
  <Opcode>0</Opcode> 
  <Keywords>0x4000000000000001</Keywords> 
  <TimeCreated SystemTime="2022-05-31T19:17:01.3455127Z" /> 
  <EventRecordID>27049</EventRecordID> 
  <Correlation ActivityID="{49963a72-7491-0004-ea34-97499174d801}" /> 
  <Execution ProcessID="264" ThreadID="2644" /> 
  <Channel>Microsoft-Windows-AppXDeploymentServer/Operational</Channel> 
  <Computer>DESKTOP-BFPHP1C</Computer> 
  <Security UserID="S-1-5-21-408938953-3772133465-363332366-1001" /> 
  </System>
[-](https://github.com/microsoft/PowerToys/issues/18021#) <EventData>
  <Data Name="DeploymentOperation">1</Data> 
  <Data Name="PackageFullName">MicrosoftCorporationII.WindowsAppRuntime.Main.1.0_3.469.1654.0_x64__8wekyb3d8bbwe</Data> 
  <Data Name="Path">(WARF946.tmp)</Data> 
  <Data Name="ErrorCode">0x80073cf6</Data> 
  <Data Name="MountPoint">C:</Data> 
  <Data Name="TargetPlatform">0x3</Data> 
  <Data Name="SystemVolume">true</Data> 
  <Data Name="StorageId">\\?\Volume{8ad7d12f-3883-45ce-a4a6-546542717466}</Data> 
  <Data Name="IsCentennial">true</Data> 
  <Data Name="PackageType">0x1</Data> 
  <Data Name="IsPackageEncrypted">false</Data> 
  <Data Name="DeploymentOptions">0x40000000000000</Data> 
  <Data Name="IsStreamingPackage">false</Data> 
  <Data Name="IsInRelatedSet">false</Data> 
  <Data Name="IsPackageUsingBDC">false</Data> 
  <Data Name="MainPackageFamilyName">NULL</Data> 
  <Data Name="CallingProcess">WindowsAppRuntimeInstall.exe</Data> 
  <Data Name="IsInPlaceUpdate">0x0</Data> 
  <Data Name="ErrorFileInfo">host.cpp,1386,80070005;host.cpp,1406,80070005;host.cpp,1470,80073CF6;host.cpp,862,80073CF6;host.cpp,867,80073CF6;deploymentmanager.cpp,681,80073CF6;deploymentrequest.cpp,1992,80073CF6;deploymentrequest.cpp,2104,80073CF6;deploymentrequest.cpp,3997,80073CF6;</Data> 
  <Data Name="DetailedMessageInfo">NULL</Data> 
  <Data Name="IsOptional">0</Data> 
  <Data Name="PackageFlags">0x80004c</Data> 
  <Data Name="PackageFlags2">0x0</Data> 
  <Data Name="HasWin32alacarte">false</Data> 
  <Data Name="HasFullTrust">true</Data> 
  <Data Name="ExternalLocation" /> 
  <Data Name="PackageSourceUri">file:///C:/Users/Evan3/AppData/Local/Temp/WARF946.tmp</Data> 
  </EventData>
  </Event>

AND

  [-](https://github.com/microsoft/PowerToys/issues/18021#) <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
[-](https://github.com/microsoft/PowerToys/issues/18021#) <System>
  <Provider Name="Microsoft-Windows-AppXDeployment-Server" Guid="{3f471139-acb7-4a01-b7a7-ff5da4ba2d43}" /> 
  <EventID>404</EventID> 
  <Version>0</Version> 
  <Level>2</Level> 
  <Task>3</Task> 
  <Opcode>0</Opcode> 
  <Keywords>0x4000000000000001</Keywords> 
  <TimeCreated SystemTime="2022-05-31T19:17:01.3493863Z" /> 
  <EventRecordID>27050</EventRecordID> 
  <Correlation ActivityID="{49963a72-7491-0004-ea34-97499174d801}" /> 
  <Execution ProcessID="264" ThreadID="2644" /> 
  <Channel>Microsoft-Windows-AppXDeploymentServer/Operational</Channel> 
  <Computer>DESKTOP-BFPHP1C</Computer> 
  <Security UserID="S-1-5-21-408938953-3772133465-363332366-1001" /> 
  </System>
[-](https://github.com/microsoft/PowerToys/issues/18021#) <EventData>
  <Data Name="SummaryError">error 0x80070005: Windows cannot create the AppContainer profile for the MicrosoftCorporationII.WindowsAppRuntime.Main.1.0_3.469.1654.0_x64__8wekyb3d8bbwe package.</Data> 
  <Data Name="PackageFullName">MicrosoftCorporationII.WindowsAppRuntime.Main.1.0_3.469.1654.0_x64__8wekyb3d8bbwe</Data> 
  <Data Name="ErrorCode">0x80073cf6</Data> 
  <Data Name="MountPoint">C:</Data> 
  <Data Name="TargetPlatform">0x3</Data> 
  <Data Name="CallingProcess">WindowsAppRuntimeInstall.exe</Data> 
  <Data Name="ExternalLocation" /> 
  </EventData>
  </Event>

@jaimecbernardo
Copy link
Collaborator

error 0x80070005: Windows cannot create the AppContainer profile for the MicrosoftCorporationII.WindowsAppRuntime.Main.1.0_3.469.1654.0_x64__8wekyb3d8bbwe package.

@SeregaKR
Copy link

SeregaKR commented Jun 1, 2022

It's strange - installation of WindowsAppRuntime seems to be successful but still installing PowerToys update ends with an error. The error log is attached. The screenshot of the successful WindowsAppRuntime install is also attached.

[0FD0:1B70][2022-06-01T14:31:07]i001: Burn v3.11.2.4516, Windows v10.0 (Build 22621: Service Pack 0), path: C:\Users\kr\AppData\Local\Temp{F5BD234C-8CA0-44A5-B381-52AA0991FCF1}.cr\PowerToysSetup-0.58.0-x64.exe
[0FD0:1B70][2022-06-01T14:31:07]i000: Initializing string variable 'InstallFolder' to value '[ProgramFiles64Folder]PowerToys'
[0FD0:1B70][2022-06-01T14:31:07]i000: Initializing string variable 'MsiLogFolder' to value '[LocalAppDataFolder]\Microsoft\PowerToys'
[0FD0:1B70][2022-06-01T14:31:07]i000: Initializing version variable 'DetectedPowerToysVersion' to value '0.0.0.0'
[0FD0:1B70][2022-06-01T14:31:07]i000: Initializing version variable 'TargetPowerToysVersion' to value '0.58.0'
[0FD0:1B70][2022-06-01T14:31:07]i000: Initializing version variable 'DetectedWindowsBuildNumber' to value '0'
[0FD0:1B70][2022-06-01T14:31:07]i009: Command Line: '-burn.clean.room=D:\Downloads\PowerToysSetup-0.58.0-x64.exe -burn.filehandle.attached=588 -burn.filehandle.self=596'
[0FD0:1B70][2022-06-01T14:31:07]i000: Setting string variable 'WixBundleOriginalSource' to value 'D:\Downloads\PowerToysSetup-0.58.0-x64.exe'
[0FD0:1B70][2022-06-01T14:31:07]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'D:\Downloads'
[0FD0:1B70][2022-06-01T14:31:07]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\kr\AppData\Local\Temp\powertoys-bootstrapper-msi-0.58.0_20220601143107.log'
[0FD0:1B70][2022-06-01T14:31:07]i000: Setting string variable 'WixBundleName' to value 'PowerToys (Preview) x64'
[0FD0:1B70][2022-06-01T14:31:07]i000: Setting string variable 'WixBundleManufacturer' to value 'Microsoft Corporation'
[0FD0:46D8][2022-06-01T14:31:07]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033
[0FD0:46D8][2022-06-01T14:31:07]i000: Setting version variable 'WixBundleFileVersion' to value '0.58.0.0'
[0FD0:1B70][2022-06-01T14:31:07]i100: Detect begin, 4 packages
[0FD0:1B70][2022-06-01T14:31:07]i000: Setting version variable 'DetectedPowerToysVersion' to value '0.57.2.0'
[0FD0:1B70][2022-06-01T14:31:07]i000: Setting string variable 'DetectedWindowsBuildNumber' to value '22621'
[0FD0:1B70][2022-06-01T14:31:07]i000: File search: wfsE9B7476E4D316B33B5169EC2D849F543, did not find path: C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.4\System.Xaml.dll
[0FD0:1B70][2022-06-01T14:31:07]i000: Setting numeric variable 'HasDotnet604' to value 0
[0FD0:1B70][2022-06-01T14:31:07]i000: Registry key not found. Key = 'Software\Microsoft\EdgeUpdate\Clients{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}'
[0FD0:1B70][2022-06-01T14:31:07]i000: Setting numeric variable 'HasWebView2PerUser' to value 0
[0FD0:1B70][2022-06-01T14:31:07]i000: Setting numeric variable 'HasWebView2PerMachine' to value 1
[0FD0:1B70][2022-06-01T14:31:07]i102: Detected related bundle: {02c826f6-ff1b-4faf-b3c7-57a0e1cd8153}, type: Upgrade, scope: PerMachine, version: 0.57.2.0, operation: MajorUpgrade
[0FD0:1B70][2022-06-01T14:31:07]i052: Condition 'HasDotnet604' evaluates to false.
[0FD0:1B70][2022-06-01T14:31:07]i052: Condition 'HasWebView2PerMachine OR HasWebView2PerUser' evaluates to true.
[0FD0:1B70][2022-06-01T14:31:07]i103: Detected related package: {504D817D-2ED1-4914-84D5-510D314AAD40}, scope: PerMachine, version: 0.57.2.0, language: 0 operation: MajorUpgrade
[0FD0:1B70][2022-06-01T14:31:07]i103: Detected related package: {504D817D-2ED1-4914-84D5-510D314AAD40}, scope: PerMachine, version: 0.57.2.0, language: 0 operation: MajorUpgrade
[0FD0:1B70][2022-06-01T14:31:07]i101: Detected package: DotnetRuntime6, state: Absent, cached: None
[0FD0:1B70][2022-06-01T14:31:07]i101: Detected package: WebView2, state: Present, cached: None
[0FD0:1B70][2022-06-01T14:31:07]i101: Detected package: WinAppSDK101, state: Absent, cached: None
[0FD0:1B70][2022-06-01T14:31:07]i101: Detected package: PowerToysSetup_0.58.0_x64.msi, state: Absent, cached: None
[0FD0:1B70][2022-06-01T14:31:07]i052: Condition 'TargetPowerToysVersion >= DetectedPowerToysVersion OR WixBundleInstalled' evaluates to true.
[0FD0:1B70][2022-06-01T14:31:07]i052: Condition 'DetectedWindowsBuildNumber >= 18362 OR WixBundleInstalled' evaluates to true.
[0FD0:1B70][2022-06-01T14:31:07]i199: Detect complete, result: 0x0
[0FD0:46D8][2022-06-01T14:31:09]i000: Setting numeric variable 'EulaAcceptCheckbox' to value 1
[0FD0:1B70][2022-06-01T14:31:09]i200: Plan begin, 4 packages, action: Install
[0FD0:1B70][2022-06-01T14:31:09]w321: Skipping dependency registration on package with no dependency providers: DotnetRuntime6
[0FD0:1B70][2022-06-01T14:31:09]i000: Setting string variable 'WixBundleLog_DotnetRuntime6' to value 'C:\Users\kr\AppData\Local\Temp\powertoys-bootstrapper-msi-0.58.0_20220601143107_000_DotnetRuntime6.log'
[0FD0:1B70][2022-06-01T14:31:09]w321: Skipping dependency registration on package with no dependency providers: WebView2
[0FD0:1B70][2022-06-01T14:31:09]w321: Skipping dependency registration on package with no dependency providers: WinAppSDK101
[0FD0:1B70][2022-06-01T14:31:09]i000: Setting string variable 'WixBundleLog_WinAppSDK101' to value 'C:\Users\kr\AppData\Local\Temp\powertoys-bootstrapper-msi-0.58.0_20220601143107_001_WinAppSDK101.log'
[0FD0:1B70][2022-06-01T14:31:09]i000: Setting string variable 'WixBundleRollbackLog_PowerToysSetup_0.58.0_x64.msi' to value 'C:\Users\kr\AppData\Local\Temp\powertoys-bootstrapper-msi-0.58.0_20220601143107_002_PowerToysSetup_0.58.0_x64.msi_rollback.log'
[0FD0:1B70][2022-06-01T14:31:09]i000: Setting string variable 'WixBundleLog_PowerToysSetup_0.58.0_x64.msi' to value 'C:\Users\kr\AppData\Local\Temp\powertoys-bootstrapper-msi-0.58.0_20220601143107_002_PowerToysSetup_0.58.0_x64.msi.log'
[0FD0:1B70][2022-06-01T14:31:09]i201: Planned package: DotnetRuntime6, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: None, cache: Yes, uncache: No, dependency: None
[0FD0:1B70][2022-06-01T14:31:09]i201: Planned package: WebView2, state: Present, default requested: Present, ba requested: Present, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[0FD0:1B70][2022-06-01T14:31:09]i201: Planned package: WinAppSDK101, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: None, cache: Yes, uncache: No, dependency: None
[0FD0:1B70][2022-06-01T14:31:09]i201: Planned package: PowerToysSetup_0.58.0_x64.msi, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[0FD0:1B70][2022-06-01T14:31:09]i207: Planned related bundle: {02c826f6-ff1b-4faf-b3c7-57a0e1cd8153}, type: Upgrade, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, dependency: None
[0FD0:1B70][2022-06-01T14:31:09]i299: Plan complete, result: 0x0
[0FD0:1B70][2022-06-01T14:31:09]i300: Apply begin
[0FD0:1B70][2022-06-01T14:31:09]i010: Launching elevated engine process.
[0FD0:1B70][2022-06-01T14:31:10]i011: Launched elevated engine process.
[0FD0:1B70][2022-06-01T14:31:10]i012: Connected to elevated engine.
[3DF0:3D14][2022-06-01T14:31:10]i358: Pausing automatic updates.
[3DF0:3D14][2022-06-01T14:31:10]i359: Paused automatic updates.
[3DF0:3D14][2022-06-01T14:31:10]i360: Creating a system restore point.
[3DF0:3D14][2022-06-01T14:31:10]w363: Could not create system restore point, error: 0x80070422. Continuing...
[3DF0:3D14][2022-06-01T14:31:10]i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{7f0d7424-d132-4aaf-baa9-5d7d436f0feb}, options: 0x7, disable resume: No
[3DF0:3D14][2022-06-01T14:31:11]i000: Caching bundle from: 'C:\Users\kr\AppData\Local\Temp{1F576ECB-686E-4D6D-990B-3567316BE735}.be\PowerToysSetup-0.58.0-x64.exe' to: 'C:\ProgramData\Package Cache{7f0d7424-d132-4aaf-baa9-5d7d436f0feb}\PowerToysSetup-0.58.0-x64.exe'
[3DF0:3D14][2022-06-01T14:31:11]i320: Registering bundle dependency provider: {7f0d7424-d132-4aaf-baa9-5d7d436f0feb}, version: 0.58.0.0
[3DF0:3D14][2022-06-01T14:31:11]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{7f0d7424-d132-4aaf-baa9-5d7d436f0feb}, resume: Active, restart initiated: No, disable resume: No
[0FD0:479C][2022-06-01T14:31:11]w343: Prompt for source of package: DotnetRuntime6, payload: DotnetRuntime6, path: D:\Downloads\windowsdesktop-runtime-6.0.4-win-x64.exe
[0FD0:479C][2022-06-01T14:31:11]i338: Acquiring package: DotnetRuntime6, payload: DotnetRuntime6, download from: https://download.visualstudio.microsoft.com/download/pr/f13d7b5c-608f-432b-b7ec-8fe84f4030a1/5e06998f9ce23c620b9d6bac2dae6c1d/windowsdesktop-runtime-6.0.4-win-x64.exe
[0FD0:479C][2022-06-01T14:31:11]e000: Error 0x80072efd: Failed to send request to URL: https://download.visualstudio.microsoft.com/download/pr/f13d7b5c-608f-432b-b7ec-8fe84f4030a1/5e06998f9ce23c620b9d6bac2dae6c1d/windowsdesktop-runtime-6.0.4-win-x64.exe, trying to process HTTP status code anyway.
[0FD0:479C][2022-06-01T14:31:11]e000: Error 0x80072efd: Unknown HTTP status code 0, returned from URL: https://download.visualstudio.microsoft.com/download/pr/f13d7b5c-608f-432b-b7ec-8fe84f4030a1/5e06998f9ce23c620b9d6bac2dae6c1d/windowsdesktop-runtime-6.0.4-win-x64.exe
[0FD0:479C][2022-06-01T14:31:11]e000: Error 0x80072efd: Failed attempt to download URL: 'https://download.visualstudio.microsoft.com/download/pr/f13d7b5c-608f-432b-b7ec-8fe84f4030a1/5e06998f9ce23c620b9d6bac2dae6c1d/windowsdesktop-runtime-6.0.4-win-x64.exe' to: 'C:\Users\kr\AppData\Local\Temp{1F576ECB-686E-4D6D-990B-3567316BE735}\DotnetRuntime6'
[0FD0:479C][2022-06-01T14:31:11]w343: Prompt for source of package: DotnetRuntime6, payload: DotnetRuntime6, path: D:\Downloads\windowsdesktop-runtime-6.0.4-win-x64.exe
[0FD0:479C][2022-06-01T14:31:14]i338: Acquiring package: DotnetRuntime6, payload: DotnetRuntime6, download from: https://download.visualstudio.microsoft.com/download/pr/f13d7b5c-608f-432b-b7ec-8fe84f4030a1/5e06998f9ce23c620b9d6bac2dae6c1d/windowsdesktop-runtime-6.0.4-win-x64.exe
[0FD0:479C][2022-06-01T14:31:14]e000: Error 0x80072efd: Failed to send request to URL: https://download.visualstudio.microsoft.com/download/pr/f13d7b5c-608f-432b-b7ec-8fe84f4030a1/5e06998f9ce23c620b9d6bac2dae6c1d/windowsdesktop-runtime-6.0.4-win-x64.exe, trying to process HTTP status code anyway.
[0FD0:479C][2022-06-01T14:31:14]e000: Error 0x80072efd: Unknown HTTP status code 0, returned from URL: https://download.visualstudio.microsoft.com/download/pr/f13d7b5c-608f-432b-b7ec-8fe84f4030a1/5e06998f9ce23c620b9d6bac2dae6c1d/windowsdesktop-runtime-6.0.4-win-x64.exe
[0FD0:479C][2022-06-01T14:31:14]e000: Error 0x80072efd: Failed attempt to download URL: 'https://download.visualstudio.microsoft.com/download/pr/f13d7b5c-608f-432b-b7ec-8fe84f4030a1/5e06998f9ce23c620b9d6bac2dae6c1d/windowsdesktop-runtime-6.0.4-win-x64.exe' to: 'C:\Users\kr\AppData\Local\Temp{1F576ECB-686E-4D6D-990B-3567316BE735}\DotnetRuntime6'
[0FD0:479C][2022-06-01T14:31:14]w343: Prompt for source of package: DotnetRuntime6, payload: DotnetRuntime6, path: D:\Downloads\windowsdesktop-runtime-6.0.4-win-x64.exe
[0FD0:479C][2022-06-01T14:31:17]i338: Acquiring package: DotnetRuntime6, payload: DotnetRuntime6, download from: https://download.visualstudio.microsoft.com/download/pr/f13d7b5c-608f-432b-b7ec-8fe84f4030a1/5e06998f9ce23c620b9d6bac2dae6c1d/windowsdesktop-runtime-6.0.4-win-x64.exe
[0FD0:479C][2022-06-01T14:31:17]e000: Error 0x80072efd: Failed to send request to URL: https://download.visualstudio.microsoft.com/download/pr/f13d7b5c-608f-432b-b7ec-8fe84f4030a1/5e06998f9ce23c620b9d6bac2dae6c1d/windowsdesktop-runtime-6.0.4-win-x64.exe, trying to process HTTP status code anyway.
[0FD0:479C][2022-06-01T14:31:17]e000: Error 0x80072efd: Unknown HTTP status code 0, returned from URL: https://download.visualstudio.microsoft.com/download/pr/f13d7b5c-608f-432b-b7ec-8fe84f4030a1/5e06998f9ce23c620b9d6bac2dae6c1d/windowsdesktop-runtime-6.0.4-win-x64.exe
[0FD0:479C][2022-06-01T14:31:17]e000: Error 0x80072efd: Failed attempt to download URL: 'https://download.visualstudio.microsoft.com/download/pr/f13d7b5c-608f-432b-b7ec-8fe84f4030a1/5e06998f9ce23c620b9d6bac2dae6c1d/windowsdesktop-runtime-6.0.4-win-x64.exe' to: 'C:\Users\kr\AppData\Local\Temp{1F576ECB-686E-4D6D-990B-3567316BE735}\DotnetRuntime6'
[0FD0:479C][2022-06-01T14:31:17]w343: Prompt for source of package: DotnetRuntime6, payload: DotnetRuntime6, path: D:\Downloads\windowsdesktop-runtime-6.0.4-win-x64.exe
[0FD0:479C][2022-06-01T14:31:20]i338: Acquiring package: DotnetRuntime6, payload: DotnetRuntime6, download from: https://download.visualstudio.microsoft.com/download/pr/f13d7b5c-608f-432b-b7ec-8fe84f4030a1/5e06998f9ce23c620b9d6bac2dae6c1d/windowsdesktop-runtime-6.0.4-win-x64.exe
[0FD0:479C][2022-06-01T14:31:20]e000: Error 0x80072efd: Failed to send request to URL: https://download.visualstudio.microsoft.com/download/pr/f13d7b5c-608f-432b-b7ec-8fe84f4030a1/5e06998f9ce23c620b9d6bac2dae6c1d/windowsdesktop-runtime-6.0.4-win-x64.exe, trying to process HTTP status code anyway.
[0FD0:479C][2022-06-01T14:31:20]e000: Error 0x80072efd: Unknown HTTP status code 0, returned from URL: https://download.visualstudio.microsoft.com/download/pr/f13d7b5c-608f-432b-b7ec-8fe84f4030a1/5e06998f9ce23c620b9d6bac2dae6c1d/windowsdesktop-runtime-6.0.4-win-x64.exe
[0FD0:479C][2022-06-01T14:31:20]e000: Error 0x80072efd: Failed attempt to download URL: 'https://download.visualstudio.microsoft.com/download/pr/f13d7b5c-608f-432b-b7ec-8fe84f4030a1/5e06998f9ce23c620b9d6bac2dae6c1d/windowsdesktop-runtime-6.0.4-win-x64.exe' to: 'C:\Users\kr\AppData\Local\Temp{1F576ECB-686E-4D6D-990B-3567316BE735}\DotnetRuntime6'
[0FD0:479C][2022-06-01T14:31:20]e000: Error 0x80072efd: Failed to acquire payload from: 'https://download.visualstudio.microsoft.com/download/pr/f13d7b5c-608f-432b-b7ec-8fe84f4030a1/5e06998f9ce23c620b9d6bac2dae6c1d/windowsdesktop-runtime-6.0.4-win-x64.exe' to working path: 'C:\Users\kr\AppData\Local\Temp{1F576ECB-686E-4D6D-990B-3567316BE735}\DotnetRuntime6'
[0FD0:479C][2022-06-01T14:31:20]e313: Failed to acquire payload: DotnetRuntime6 to working path: C:\Users\kr\AppData\Local\Temp{1F576ECB-686E-4D6D-990B-3567316BE735}\DotnetRuntime6, error: 0x80072efd.
[0FD0:1B70][2022-06-01T14:31:20]e000: Error 0x80072efd: Failed while caching, aborting execution.
[3DF0:3D14][2022-06-01T14:31:20]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{7f0d7424-d132-4aaf-baa9-5d7d436f0feb}, resume: None, restart: None, disable resume: No
[3DF0:3D14][2022-06-01T14:31:20]i330: Removed bundle dependency provider: {7f0d7424-d132-4aaf-baa9-5d7d436f0feb}
[3DF0:3D14][2022-06-01T14:31:20]i352: Removing cached bundle: {7f0d7424-d132-4aaf-baa9-5d7d436f0feb}, from path: C:\ProgramData\Package Cache{7f0d7424-d132-4aaf-baa9-5d7d436f0feb}
[3DF0:3D14][2022-06-01T14:31:20]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{7f0d7424-d132-4aaf-baa9-5d7d436f0feb}, resume: None, restart initiated: No, disable resume: No
[0FD0:1B70][2022-06-01T14:31:20]i399: Apply complete, result: 0x80072efd, restart: None, ba requested restart: No

изображение

@Fetakungen
Copy link

For me this works as a user that gets elevated / administrator, but not as system which is required for automation...
Trying to install this as System independently crashes with:
Install result : 0x0
Deploying package: Microsoft.WindowsAppRuntime.1.0_3.469.1654.0_x64__8wekyb3d8bbwe
Package deployment result : 0x80073cf9 Install failed. Please contact your software vendor.
One or more install operations failed. Result: 0x80073cf9

But works out of the box with the users.

@DrusTheAxe
Copy link
Member

DrusTheAxe commented Jun 1, 2022

For me this works as a user that gets elevated / administrator, but not as system

This is a known issue, tracked as https://task.ms/39720940 and discussed in more detail in this comment in issue Installation with System-Account doesn't work #2546. Here's the key explanation

If you're trying to install the runtime for use by the LocalSystem account then it won't work. The one user account Windows can't register MSIX packages for is LocalSystem so when the installer is running as LocalSystem and calls pkgmgr.AddPackageAsync() it will fail.

If you're trying to install the runtime for all users (i.e. provisioning packages) the installer's implementation doesn't handle it. It should work, so this would be a bug in the installer. As noted recently here the installer's core logic is effectively

FOREACH p IN *.msix
    packagemanager.AddPackageAsync(p)
    IF !p.IsFramework and IsElevated()
        packagemanager.ProvisionPackagesForAllUsersAsync(p.packagefamilyname)

This is implemented in installer\dev\install.cpp, notably lines 259 (AddPackage), 269-270 (IF...IsElevated) and 275 (ProvisionPackage). AddPackage will fail if running as LocalSystem. If the intent is to provision the package for all users and not register it for LocalSystem (as Windows doesn't support that), the logic needs a small but critical alteration:

FOREACH p IN *.msix
    IF GetTokenInformation(TOKEN_USER) == CreateWellKnownSid(WinLocalSystem)
        packagemanager.StagePackageAsync(p)
    ELSE
        packagemanager.AddPackageAsync(p)
    IF !p.IsFramework and IsElevated()
        packagemanager.ProvisionPackagesForAllUsersAsync(p.packagefamilyname)

P.S. When you say

Trying to install this as System independently crashes with...

do you really mean crash or just fail?

@Fetakungen
Copy link

Hi, thanks for replying. Well the problem is as noted that we deploy Powertoys using winget in this case to keep it up to date but with 0.58 this fails using the system account which is ?"needed"? to deploy without the user being admin since the Microsoft.WindowsAppRuntime cannot be deployed for the system account the install fails. So for now we have to hold on 0.57.2 for users.. Just the fact the update notifications is not possible to disable in the settings also makes this worse as users ask for support to have this updated due to lack of elevation right.
Seems like this happens more and more with various packages/software where automation becomes less and less user friendly duo the the choice of limiting packaging choice.

Regarding the package it fails but as you said due to being msix.

Thanks.

@DrusTheAxe
Copy link
Member

If your goal is to make the packages available to all users then you don't actually want or care about registering them for LocalSystem, you just happen to run as LocalSystem so you can 'provision' them (i.e. make available for all users) as provisioning a package requires admin privilege.

That said, you don't need to provision MSIX packages. You could run the installer as a user and the packages will be registered for that user. If another user installs software using WinAppSDK they'd need to register the packages. But if your goal is to install software for use by all users on a machine (sounds like it is) then provisioning is the way to go. The installer does that just fine today, when run by an elevated user. It's currently bugged if that elevated user happens to be LocalSystem.

The WinAppSDK team is aware of the issue and working on a fix.

@crutkas
Copy link
Member

crutkas commented Jun 3, 2022

so this issue currently accounts for a grouping of issues, sounds like one item there is a fix for coming for the local system. Can we break this apart for better tracking? @jaimecbernardo thoughts?

@jaimecbernardo jaimecbernardo self-assigned this Jun 6, 2022
@jaimecbernardo jaimecbernardo added the Status-In progress This issue or work-item is under development label Jun 6, 2022
@jaimecbernardo jaimecbernardo added Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release. and removed Status-In progress This issue or work-item is under development labels Jun 7, 2022
@jaimecbernardo
Copy link
Collaborator

We expect this and the remaining install issue to be fixed with #18644 , where we moved to a self contained distribution of Windows App SDK.
#18065 already tracks the system install issue.

@crutkas
Copy link
Member

crutkas commented Jun 7, 2022

0.59 is now released

@RocketToast
Copy link

0.59 is now released

This worked for me @crutkas, @jaimecbernardo! Thanks.

@pbargiona
Copy link

0.59 is now released

0.59 worked like a charm.

I guess that means this thread can be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Setup/Install Refers to installation mechanism Hot Fix Items we will product an out-of-band release for Issue-Bug Something isn't working Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.
Projects
None yet
Development

No branches or pull requests