C
CSharpner
I've written a Windows Service (targeting .NET 2.0) which launches an
EXE with a UI. It works in that the EXE does get launched (I can see
it listed in the processes in Task Manager), but it does NOT show up.
The Windows service is running under my user account.
Here's the code that launches it:
-----------------------------------------------
var path =
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);
var UI_EXE = Path.Combine(path, "ExternalDriveNotifierUI.exe");
var psi = new System.Diagnostics.ProcessStartInfo(UI_EXE,
settings.NotificationMessage);
psi.WindowStyle = ProcessWindowStyle.Normal;
var process = new Process();
process.StartInfo = psi;
process.Start();
TIA
EXE with a UI. It works in that the EXE does get launched (I can see
it listed in the processes in Task Manager), but it does NOT show up.
The Windows service is running under my user account.
Here's the code that launches it:
-----------------------------------------------
var path =
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);
var UI_EXE = Path.Combine(path, "ExternalDriveNotifierUI.exe");
var psi = new System.Diagnostics.ProcessStartInfo(UI_EXE,
settings.NotificationMessage);
psi.WindowStyle = ProcessWindowStyle.Normal;
var process = new Process();
process.StartInfo = psi;
process.Start();
TIA