Integration of Window Service and my project through set up program
-
Hi, I have made windows service program In On start code i am calling exe file through process.start inside on_start()function Process.Start(@"c:\a.exe"); here i do not want to write complete path I want to write only a.exe and path should be taken from my other project which i made another installation program for this project. How can i retrive the path of a.exe so that my windows service automatcally retrive the path of location of a.exe Client can install set up program of a.exe in any drive. In that case how my windows service will retrive the complete path of a.exe Pls suggest in this matter This is very urgent THanks and Regards sanjeev Everything is possible
-
Hi, I have made windows service program In On start code i am calling exe file through process.start inside on_start()function Process.Start(@"c:\a.exe"); here i do not want to write complete path I want to write only a.exe and path should be taken from my other project which i made another installation program for this project. How can i retrive the path of a.exe so that my windows service automatcally retrive the path of location of a.exe Client can install set up program of a.exe in any drive. In that case how my windows service will retrive the complete path of a.exe Pls suggest in this matter This is very urgent THanks and Regards sanjeev Everything is possible
Just write the path where a.exe is being installed to into the registry: Add a new registry key to your setup for a.exe and set its value to
[TARGETDIR]
. Regards, mav