I have an application(called 'Launcher'), where i can start other applications
One of this applications needs administrator-rights. If i try to launch it from the Launcher i get an exception, which says that i need higher privilege.
The code to start an application from the Launcher looks like:
try
{
ProcessStartInfo startInfo = new ProcessStartInfo(PATH, ARGUMENT)
{
WorkingDirectory = WORKINGDIRECTORY
};
Process.Start(startInfo);
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
If I start the Launcher everything works fine. But I don't want to start the Launcher as administrator every time.
How can I start the new process as administrator from a non-admin-process?