В моем приложении WinUI 3 у меня есть типичный код для запуска приложения следующим образом:
Код: Выделить всё
string background_agent_process_path = "C:\\Program Files\\My_app\\background_agent.exe";
// note, the maniest in background_agent requires elevation, so if i run it directly then
// UAC promots and it works fine. Its a c# console app.
Process process = new Process();
process.StartInfo.FileName = background_agent_process_path;
process.StartInfo.UseShellExecute = true;
process.StartInfo.Verb = "runas";
process.Start();
Любые подсказки или идеи приветствуются. Спасибо
Подробнее здесь: https://stackoverflow.com/questions/790 ... pplication