Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在创建一个需要在运行时以管理员身份运行的软件,大多数客户已经意识到它并且运行它没有问题。但是,此软件需要使用 Process.Start 运行另一个软件,将其称为 SoftwareB。运行 SoftwareB 时,softwareB 也需要提升的权限。如何在不再次向客户端询问 UAC 的情况下运行软件 B,因为软件 B 应该在后台运行,并且当用户不使用 PC 时,软件可能正在运行它。
如果您从提升的进程调用 Process.Start,那么新进程也将被提升。