bonsoir,
j'ai une petite application qui tourne dans le system tray avec des droits normaux.
Or elle doit lancer l'autre appli qui elle demande l'élévation de privilèges.
Cette 2eme appli a bien son fichier de manifest modifié vu que lancé à partir de l'explorer, l'UAC pop.
Maintenant, si je le lance comme ceci, il me dit "L'opération demandée nécessite une élévation".
Process MyProc = new Process();
MyProc.StartInfo.WorkingDirectory = directory;
MyProc.StartInfo.FileName = Path.Combine (directory, appname);
MyProc.StartInfo.UseShellExecute = false;
MyProc.StartInfo.RedirectStandardError = true;
MyProc.StartInfo.RedirectStandardInput = true;
MyProc.StartInfo.RedirectStandardOutput = true;
MyProc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
MyProc.StartInfo.Arguments = arguments;
try
{
MyProc.Start();
MyProc.Close();
}Merci,
++
Vince
----------------------------
C++ forever
C# amateur