2

I succeed in designating a program to be executed when Windows starts with MSIX package in C#.
Now I also know that can access the Task Manager and assign or unassign a program as a startup program.

But the question is, can this be done internally 'C# programming'?

I would like to directly mount it on the UI of the product to support assign/unassign of startup programs more conveniently for users who are not familiar with using computers.
(Note: MSIX packages are not registry registered.)

I followed the process provided in the link to solve this problem.

<desktop:StartupTask
    TaskId="StartupTaskID"
    Enabled="false"
    DisplayName="AppName" />

Additionally, the desktop:StartupTask:Enabled option only seems to have an effect on initial app deployment. (So, if the app is already installed, modifying that variable has no effect.)

Does anyone know how to solve a problem like this?
thanks for reading.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.