Calling another execuatbles from windows service???
-
Hi , I have created a windows service project WindowsService1 and i have Win32 console project AppServer which is also in the same solution. Now when i saw my service details as Service1 LOcation: C:\testing\WindowServerice1\WindowsService1.exe But i want to have like Service1: Location: C:\testing\Appserver\Appserver.exe Your help much Appreciated. Regds Jain
-
Hi , I have created a windows service project WindowsService1 and i have Win32 console project AppServer which is also in the same solution. Now when i saw my service details as Service1 LOcation: C:\testing\WindowServerice1\WindowsService1.exe But i want to have like Service1: Location: C:\testing\Appserver\Appserver.exe Your help much Appreciated. Regds Jain
Are you just wanting to change the output directory? Look into the project settings. Correct me if I got you wrong.
“Follow your bliss.” – Joseph Campbell
-
Are you just wanting to change the output directory? Look into the project settings. Correct me if I got you wrong.
“Follow your bliss.” – Joseph Campbell
Hi Rajesh, Thanks for ur reply. Intially , i have 2 project in my solution (1)Win32 Application- AppServer , (2) Setup project . from this i created an MSI and installed my AppServer.exe to local & remote machine. Now my requirement is , i have to register my application as windows services, so i have added one more project as WindowsService1 from VC++->Windowservice option, i have builded all the 3 project and installed my Setup project , i tried to start my exe from services.msc, but here i am able to see Servicename: Service1 Path: C:\testing\windowsService1\WindowsServcie1.exe not C:\testing\AppServer\Appserver.exe I need my Servicename as : Service1 & Path as C:\testing\AppServer\Appserver.exe i mean my service has to point to my Win32 application exe. Plz thru some light on this Your help much appreciated. Regds Jain
-
Hi Rajesh, Thanks for ur reply. Intially , i have 2 project in my solution (1)Win32 Application- AppServer , (2) Setup project . from this i created an MSI and installed my AppServer.exe to local & remote machine. Now my requirement is , i have to register my application as windows services, so i have added one more project as WindowsService1 from VC++->Windowservice option, i have builded all the 3 project and installed my Setup project , i tried to start my exe from services.msc, but here i am able to see Servicename: Service1 Path: C:\testing\windowsService1\WindowsServcie1.exe not C:\testing\AppServer\Appserver.exe I need my Servicename as : Service1 & Path as C:\testing\AppServer\Appserver.exe i mean my service has to point to my Win32 application exe. Plz thru some light on this Your help much appreciated. Regds Jain
I'm not sure if you need a third project, just for the sake of registering your executable as a windows service. In my opinion, the setup must have provision to register a program being installed as a service. Have you checked on that?
“Follow your bliss.” – Joseph Campbell
-
I'm not sure if you need a third project, just for the sake of registering your executable as a windows service. In my opinion, the setup must have provision to register a program being installed as a service. Have you checked on that?
“Follow your bliss.” – Joseph Campbell
Yes Rajesh, i am able to install a service thru setup project (if i select windows service project template) , THE PROBELM IS: i have solution :testing project1: windowsservice1 (Windowsservice project) project2: AppServer (Win32 application project)---> this is my main application AppServer.exe project3: ServerSetup (SetupProject) If i do run my MSI file from ServerSetup, its installing AppServer.exe to C:\program files\AppServer\AppServer.exe and in Services i have only Servicename: AppServer , Path :C:\program files\AppServer\WindowsService1.exe (instead of AppServer.exe) i hope nw i expained correctly :) Regds jain