Skip to content

Set winui app auto start will occure the explorer shell error #6411

@hoshiizumiya

Description

@hoshiizumiya

Describe the bug

I use the Task Scheduler to manage the winui app to start as a admin or not. But I always meet the error when it is not "Run with highest privileges", which is used shell to start the winui app.
The most situation:
Image
rare situation:
Image

Image Tip: You can't just use the winui app exe path the same as the normal exe path under without admin, but you can with the admin.

Steps to reproduce the bug

The creation logic: https://github.com/SnapHutaoRemasteringProject/Snap.Hutao.Remastered.Native/blob/master/src/Snap.Hutao.Remastered.Native/HutaoNative.cpp#L35-L753
The app call:
https://github.com/SnapHutaoRemasteringProject/Snap.Hutao.Remastered/blob/main/src/Snap.Hutao.Remastered/Snap.Hutao.Remastered/ViewModel/Setting/SettingViewModel.cs

Expected behavior

No response

Screenshots

No response

NuGet package version

1.8.260317003

Packaging type

Packaged (MSIX)

Windows version

Insider Build (xxxxx)

IDE

No response

Additional context

What should I do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-ExternalTopics external to Windows App SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions