Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Apps to install are dropped from the UI if there is an exception in the elevated process #667

Closed
@florelis

Description

@florelis

Dev Home version

No response

Windows build number

No response

Other software

No response

Steps to reproduce the bug

Not sure how to trigger it, but what happens is:

If there is an exception in the ElevatedInstallTask() on the elevated process side, we don't catch it and convert it to a failed result, instead we just let the exception propagate. When it gets back to the main process, the handling of this call in the InstallPackageTask.ExecuteAsAdmin() does not expect an exception, but rather that any error is converted to a failed task result. Since it doesn't expect it, we just let it propagate. Then on LoadingViewModel.StartTaskAndReportResult() what we do on an exception instead of setting the task result is just ignore it. So, we just don't have any result to show it for the task after this.

Things to change:

  • Add exception handling to convert these errors to task failures
  • Figure out what's causing the exception

Expected result

No response

Actual result

No response

Included System Information

No response

Included Extensions Information

No response

Metadata

Metadata

Assignees

Labels

Area-Machine-ConfigRelated to the machine configuration featureArea-Machine-Config-InstallRelated to app installation in machine config flowIssue-BugSomething isn't working or needs investigationPriority-0Bug that's considered release-blockingResolution-Fix-AvailableAvailable in a release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions