Good moorning Friends, Just wanted to advise. - ShellExecute works fine on VCL Desktop applications only. - ShellExecute does'nt work on a Windows Service !    Because of Windows Security (Session0, Session 1)  introduced after Windows 7    use instead CreateProcessAsUser  like this : procedure TMainForm.RunApp(cmdLine, WorkDir: String); var hToken: THandle; StartupInfo: TStartupInfo; ProcessInfo: TProcessInformation; res: boolean; begin GetStartup
    • Like
    2