Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Calling another execuatbles from windows service???

Calling another execuatbles from windows service???

Scheduled Pinned Locked Moved C / C++ / MFC
testingbeta-testinghelpquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jain_MS
    wrote on last edited by
    #1

    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

    R 1 Reply Last reply
    0
    • J jain_MS

      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

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      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

      J 1 Reply Last reply
      0
      • R Rajesh R Subramanian

        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

        J Offline
        J Offline
        jain_MS
        wrote on last edited by
        #3

        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

        R 1 Reply Last reply
        0
        • J jain_MS

          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

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          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

          J 1 Reply Last reply
          0
          • R Rajesh R Subramanian

            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

            J Offline
            J Offline
            jain_MS
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups