I need to execute external application from program in Windows7. If I disable UAC (User Account Control) it works.
When UAC is enabled, it doesn't work. :-(
How can I "run as admin" ?
procedure TForm1.Button1Click(Sender: TObject);
var
app: TProcess;
begin
app := TProcess.Create(nil);
app.CommandLine := 'certutil -addstore -f Root "cert.crt"';
app.Execute;
app.Free;
end;