G
Guest
Not only does the "solution" have a service app and installer, it has a Tray
Icon app that allows a user to send custom commands to the service.
The installer launches the service and the tray app in the commit phase.
The service app is automatic, so it is up and running whenever the computer
reboots. However, I need the tray app to be launched automatically, also.
The installer uses Process.Start("C:\MyPath\MyApp.exe") to launch the tray
app, which works fine.
The service app uses the same thing in its "OnStart" code, but it does not
work there. No errors, it just does not work. I write to the event log just
before and just after Process.Start, so I can confirm that the code path is
executed.
What do I need to do to have my service app start the tray app when the
service is started?
(The tray app uses a mutex to prevent muliple copies of the tray app).
Thanks,
Icon app that allows a user to send custom commands to the service.
The installer launches the service and the tray app in the commit phase.
The service app is automatic, so it is up and running whenever the computer
reboots. However, I need the tray app to be launched automatically, also.
The installer uses Process.Start("C:\MyPath\MyApp.exe") to launch the tray
app, which works fine.
The service app uses the same thing in its "OnStart" code, but it does not
work there. No errors, it just does not work. I write to the event log just
before and just after Process.Start, so I can confirm that the code path is
executed.
What do I need to do to have my service app start the tray app when the
service is started?
(The tray app uses a mutex to prevent muliple copies of the tray app).
Thanks,