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. Want to make my exe as service

Want to make my exe as service

Scheduled Pinned Locked Moved C / C++ / MFC
help
14 Posts 7 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.
  • K Offline
    K Offline
    Kiran Pinjala
    wrote on last edited by
    #1

    I have developed an application and i want its exe should be executed as soon as my system starts, like a service. Please help me. Thank you.

    KIRAN PINJARLA

    A N H N S 5 Replies Last reply
    0
    • K Kiran Pinjala

      I have developed an application and i want its exe should be executed as soon as my system starts, like a service. Please help me. Thank you.

      KIRAN PINJARLA

      A Offline
      A Offline
      ashokbngr
      wrote on last edited by
      #2

      create a shortcut of exe in the following location C:\Documents and Settings\\Start Menu\Programs\Startup regrds, Ashok

      1 Reply Last reply
      0
      • K Kiran Pinjala

        I have developed an application and i want its exe should be executed as soon as my system starts, like a service. Please help me. Thank you.

        KIRAN PINJARLA

        N Offline
        N Offline
        Nilesh K
        wrote on last edited by
        #3

        You won't be able to convert an .exe to service if that is not implemented to be a service. maybe mentioned links might be helpful. MSDN Ref[^] Intro[^]

        - Nilesh "Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw

        1 Reply Last reply
        0
        • K Kiran Pinjala

          I have developed an application and i want its exe should be executed as soon as my system starts, like a service. Please help me. Thank you.

          KIRAN PINJARLA

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          Do you want to run your app or you want to make service

          _**


          **_

          WhiteSky


          K 1 Reply Last reply
          0
          • K Kiran Pinjala

            I have developed an application and i want its exe should be executed as soon as my system starts, like a service. Please help me. Thank you.

            KIRAN PINJARLA

            N Offline
            N Offline
            Nibu babu thomas
            wrote on last edited by
            #5

            kiran.pinjarla wrote:

            I have developed an application and i want its exe should be executed as soon as my system starts, like a service.

            If you want to start your application as soon as your system starts up... Then make an entry for your application path in the following registry key... HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run. Or else you will have to rewrite your exe to act as a service too.


            Nibu thomas A Developer Programming tips[^]  My site[^]

            K 2 Replies Last reply
            0
            • H Hamid Taebi

              Do you want to run your app or you want to make service

              _**


              **_

              WhiteSky


              K Offline
              K Offline
              Kiran Pinjala
              wrote on last edited by
              #6

              I want my exe to be executed as soon as system strats. Which way i can do it better? Thank you.

              KIRAN PINJARLA

              H 1 Reply Last reply
              0
              • N Nibu babu thomas

                kiran.pinjarla wrote:

                I have developed an application and i want its exe should be executed as soon as my system starts, like a service.

                If you want to start your application as soon as your system starts up... Then make an entry for your application path in the following registry key... HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run. Or else you will have to rewrite your exe to act as a service too.


                Nibu thomas A Developer Programming tips[^]  My site[^]

                K Offline
                K Offline
                Kiran Pinjala
                wrote on last edited by
                #7

                Thank you so much for ur information.

                Nibu babu thomas wrote:

                Or else you will have to rewrite your exe to act as a service too.

                How can we do this?

                KIRAN PINJARLA

                N 1 Reply Last reply
                0
                • N Nibu babu thomas

                  kiran.pinjarla wrote:

                  I have developed an application and i want its exe should be executed as soon as my system starts, like a service.

                  If you want to start your application as soon as your system starts up... Then make an entry for your application path in the following registry key... HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run. Or else you will have to rewrite your exe to act as a service too.


                  Nibu thomas A Developer Programming tips[^]  My site[^]

                  K Offline
                  K Offline
                  Kiran Pinjala
                  wrote on last edited by
                  #8

                  Thank you.

                  Nibu babu thomas wrote:

                  Then make an entry for your application path in the following registry key... HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run.

                  How to do this programatically?

                  KIRAN PINJARLA

                  N D 2 Replies Last reply
                  0
                  • K Kiran Pinjala

                    Thank you so much for ur information.

                    Nibu babu thomas wrote:

                    Or else you will have to rewrite your exe to act as a service too.

                    How can we do this?

                    KIRAN PINJARLA

                    N Offline
                    N Offline
                    Nibu babu thomas
                    wrote on last edited by
                    #9

                    kiran.pinjarla wrote:

                    How can we do this?

                    You should be watchful. Coz there are plenty of restrictions on services, so many of the windows related tasks won't work as smoothly as you would expect. Any way here[^] is a nice little article by Nishant Sivakumar which will get you started on windows services.


                    Nibu thomas A Developer Programming tips[^]  My site[^]

                    1 Reply Last reply
                    0
                    • K Kiran Pinjala

                      I have developed an application and i want its exe should be executed as soon as my system starts, like a service. Please help me. Thank you.

                      KIRAN PINJARLA

                      S Offline
                      S Offline
                      S Douglas
                      wrote on last edited by
                      #10

                      kiran.pinjarla wrote:

                      I have developed an application and i want its exe should be executed as soon as my system starts, like a service.

                      Take a look at this article. Start Your Windows Programs From An NT Service[^]


                      I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:

                      1 Reply Last reply
                      0
                      • K Kiran Pinjala

                        Thank you.

                        Nibu babu thomas wrote:

                        Then make an entry for your application path in the following registry key... HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run.

                        How to do this programatically?

                        KIRAN PINJARLA

                        N Offline
                        N Offline
                        Nibu babu thomas
                        wrote on last edited by
                        #11

                        kiran.pinjarla wrote:

                        How to do this programatically?

                        Take a look at CRegKey. It's quite simple. Try by yourself.


                        Nibu thomas A Developer Programming tips[^]  My site[^]

                        K 1 Reply Last reply
                        0
                        • K Kiran Pinjala

                          I want my exe to be executed as soon as system strats. Which way i can do it better? Thank you.

                          KIRAN PINJARLA

                          H Offline
                          H Offline
                          Hamid Taebi
                          wrote on last edited by
                          #12

                          If you to run your app you can use from Registry and for how to use i think i saw two classes on codeproject that are working with Registry you can see them,anyway you can wrok with registry functions its not hard:-D

                          _**


                          **_

                          WhiteSky


                          1 Reply Last reply
                          0
                          • N Nibu babu thomas

                            kiran.pinjarla wrote:

                            How to do this programatically?

                            Take a look at CRegKey. It's quite simple. Try by yourself.


                            Nibu thomas A Developer Programming tips[^]  My site[^]

                            K Offline
                            K Offline
                            Kiran Pinjala
                            wrote on last edited by
                            #13

                            Nibu babu thomas wrote:

                            Take a look at CRegKey

                            Thank you so much.

                            Nibu babu thomas wrote:

                            Try by yourself.

                            Sure.

                            KIRAN PINJARLA

                            1 Reply Last reply
                            0
                            • K Kiran Pinjala

                              Thank you.

                              Nibu babu thomas wrote:

                              Then make an entry for your application path in the following registry key... HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run.

                              How to do this programatically?

                              KIRAN PINJARLA

                              D Offline
                              D Offline
                              David Crow
                              wrote on last edited by
                              #14

                              kiran.pinjarla wrote:

                              How to do this programatically?

                              RegOpenKey(), RegSetValueEx(), RegCloseKey(), ...


                              "Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.

                              "Judge not by the eye but by the heart." - Native American Proverb

                              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