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. Windows Forms
  4. Windows 7 doest launch application on startup

Windows 7 doest launch application on startup

Scheduled Pinned Locked Moved Windows Forms
csharpwindows-adminquestion
15 Posts 4 Posters 3 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.
  • X Offline
    X Offline
    Xmen Real
    wrote on last edited by
    #1

    I've a C# application, sort of monitoring application which must run as Admin. So I added manifest file in that. I tried many ways to do, added in registry, added shortcut in Startup directory, added in Task Scheduler. But nothing seems to be working. Any idea ?

    TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

    ----------------------------------------------- 128 bit encrypted signature, crack if you can

    R 1 Reply Last reply
    0
    • X Xmen Real

      I've a C# application, sort of monitoring application which must run as Admin. So I added manifest file in that. I tried many ways to do, added in registry, added shortcut in Startup directory, added in Task Scheduler. But nothing seems to be working. Any idea ?

      TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

      ----------------------------------------------- 128 bit encrypted signature, crack if you can

      R Offline
      R Offline
      RobCroll
      wrote on last edited by
      #2

      And you have tried running the application logged on as Admin? Any UI components? Have you tried wrapping it as a service and installing as service?

      "You get that on the big jobs."

      X 1 Reply Last reply
      0
      • R RobCroll

        And you have tried running the application logged on as Admin? Any UI components? Have you tried wrapping it as a service and installing as service?

        "You get that on the big jobs."

        X Offline
        X Offline
        Xmen Real
        wrote on last edited by
        #3

        RobCroll wrote:

        And you have tried running the application logged on as Admin?

        yes didnt work, but I want it with every user

        RobCroll wrote:

        Any UI components?

        no

        RobCroll wrote:

        Have you tried wrapping it as a service and installing as service?

        cant, service has some restrictions :(

        TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

        ----------------------------------------------- 128 bit encrypted signature, crack if you can

        D R 2 Replies Last reply
        0
        • X Xmen Real

          RobCroll wrote:

          And you have tried running the application logged on as Admin?

          yes didnt work, but I want it with every user

          RobCroll wrote:

          Any UI components?

          no

          RobCroll wrote:

          Have you tried wrapping it as a service and installing as service?

          cant, service has some restrictions :(

          TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

          ----------------------------------------------- 128 bit encrypted signature, crack if you can

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          You cannot do this. Every user is not going to have admin permissions ability. That means you cannot run the app as a normal user at all. Th eonly people who could run the app are those who are members of the Administrators group. You have no choice but to run this as a service under a dedicated admin account. What are you doing that requires admin priv's anyway?

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak

          X 1 Reply Last reply
          0
          • D Dave Kreskowiak

            You cannot do this. Every user is not going to have admin permissions ability. That means you cannot run the app as a normal user at all. Th eonly people who could run the app are those who are members of the Administrators group. You have no choice but to run this as a service under a dedicated admin account. What are you doing that requires admin priv's anyway?

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak

            X Offline
            X Offline
            Xmen Real
            wrote on last edited by
            #5

            Dave Kreskowiak wrote:

            What are you doing that requires admin priv's anyway?

            -Update network IPs -Take screenshot -Socket Connection -Shutdown/Restart PC I don't know if any of above requires admin privilege but app doesnt work properly without it.

            TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

            ----------------------------------------------- 128 bit encrypted signature, crack if you can

            L D 2 Replies Last reply
            0
            • X Xmen Real

              Dave Kreskowiak wrote:

              What are you doing that requires admin priv's anyway?

              -Update network IPs -Take screenshot -Socket Connection -Shutdown/Restart PC I don't know if any of above requires admin privilege but app doesnt work properly without it.

              TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

              ----------------------------------------------- 128 bit encrypted signature, crack if you can

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #6

              Xmen W.K. wrote:

              I don't know if any of above ...

              with proper error handling and logging, you would know. :|

              Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

              Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

              X 1 Reply Last reply
              0
              • X Xmen Real

                RobCroll wrote:

                And you have tried running the application logged on as Admin?

                yes didnt work, but I want it with every user

                RobCroll wrote:

                Any UI components?

                no

                RobCroll wrote:

                Have you tried wrapping it as a service and installing as service?

                cant, service has some restrictions :(

                TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

                ----------------------------------------------- 128 bit encrypted signature, crack if you can

                R Offline
                R Offline
                RobCroll
                wrote on last edited by
                #7

                If you can't run it logged on as Admin, then it doesn't matter what you do, it aint going to run. So first, get it running then you should be able to run on startup. If it has no UI, it probably should not have been posted here in the Windows Forms forum. Like I said get it working first and then seperate the components so the admin stuff runs as a service and the "all user" stuff like screen grabs, runs as a startup app. Then you just need to find a way of communicating with the service. Hope that helps

                "You get that on the big jobs."

                X 1 Reply Last reply
                0
                • L Luc Pattyn

                  Xmen W.K. wrote:

                  I don't know if any of above ...

                  with proper error handling and logging, you would know. :|

                  Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

                  Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

                  X Offline
                  X Offline
                  Xmen Real
                  wrote on last edited by
                  #8

                  it was written years ago and was working fine on xp, trying to save time by not going into source code.

                  TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

                  ----------------------------------------------- 128 bit encrypted signature, crack if you can

                  L 1 Reply Last reply
                  0
                  • R RobCroll

                    If you can't run it logged on as Admin, then it doesn't matter what you do, it aint going to run. So first, get it running then you should be able to run on startup. If it has no UI, it probably should not have been posted here in the Windows Forms forum. Like I said get it working first and then seperate the components so the admin stuff runs as a service and the "all user" stuff like screen grabs, runs as a startup app. Then you just need to find a way of communicating with the service. Hope that helps

                    "You get that on the big jobs."

                    X Offline
                    X Offline
                    Xmen Real
                    wrote on last edited by
                    #9

                    RobCroll wrote:

                    If you can't run it logged on as Admin, then it doesn't matter what you do, it aint going to run. So first, get it running then you should be able to run on startup.

                    that helped alot

                    RobCroll wrote:

                    If it has no UI, it probably should not have been posted here in the Windows Forms forum.

                    Its not console application, not service and it has UI but when on specific keys are pressed.

                    RobCroll wrote:

                    Like I said get it working first and then seperate the components so the admin stuff runs as a service and the "all user" stuff like screen grabs, runs as a startup app. Then you just need to find a way of communicating with the service.

                    why would I separate if I can run admin stuff :confused: and to grab screen no need to run on startup, just run it when need to grab. using service is just last option

                    TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

                    ----------------------------------------------- 128 bit encrypted signature, crack if you can

                    R 1 Reply Last reply
                    0
                    • X Xmen Real

                      it was written years ago and was working fine on xp, trying to save time by not going into source code.

                      TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

                      ----------------------------------------------- 128 bit encrypted signature, crack if you can

                      L Offline
                      L Offline
                      Luc Pattyn
                      wrote on last edited by
                      #10

                      there is no excuse for not having proper error handling. not ever. :~

                      Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

                      Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

                      X 1 Reply Last reply
                      0
                      • L Luc Pattyn

                        there is no excuse for not having proper error handling. not ever. :~

                        Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

                        Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

                        X Offline
                        X Offline
                        Xmen Real
                        wrote on last edited by
                        #11

                        it is when the code is old and written by a newbie :)

                        TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

                        ----------------------------------------------- 128 bit encrypted signature, crack if you can

                        1 Reply Last reply
                        0
                        • X Xmen Real

                          RobCroll wrote:

                          If you can't run it logged on as Admin, then it doesn't matter what you do, it aint going to run. So first, get it running then you should be able to run on startup.

                          that helped alot

                          RobCroll wrote:

                          If it has no UI, it probably should not have been posted here in the Windows Forms forum.

                          Its not console application, not service and it has UI but when on specific keys are pressed.

                          RobCroll wrote:

                          Like I said get it working first and then seperate the components so the admin stuff runs as a service and the "all user" stuff like screen grabs, runs as a startup app. Then you just need to find a way of communicating with the service.

                          why would I separate if I can run admin stuff :confused: and to grab screen no need to run on startup, just run it when need to grab. using service is just last option

                          TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

                          ----------------------------------------------- 128 bit encrypted signature, crack if you can

                          R Offline
                          R Offline
                          RobCroll
                          wrote on last edited by
                          #12

                          You said it had no UI and now you say it does! As mentioned to you before, a user can not run code that requires Administrator rights unless they have Administrator rights. That's why you need to separate that code and run it as a service. A service can run with Administrator rights regardless of the users rights. All the best.

                          "You get that on the big jobs."

                          X 1 Reply Last reply
                          0
                          • R RobCroll

                            You said it had no UI and now you say it does! As mentioned to you before, a user can not run code that requires Administrator rights unless they have Administrator rights. That's why you need to separate that code and run it as a service. A service can run with Administrator rights regardless of the users rights. All the best.

                            "You get that on the big jobs."

                            X Offline
                            X Offline
                            Xmen Real
                            wrote on last edited by
                            #13

                            it has no UI until user press some combination of keys, which is quite rare.

                            TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

                            ----------------------------------------------- 128 bit encrypted signature, crack if you can

                            1 Reply Last reply
                            0
                            • X Xmen Real

                              Dave Kreskowiak wrote:

                              What are you doing that requires admin priv's anyway?

                              -Update network IPs -Take screenshot -Socket Connection -Shutdown/Restart PC I don't know if any of above requires admin privilege but app doesnt work properly without it.

                              TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

                              ----------------------------------------------- 128 bit encrypted signature, crack if you can

                              D Offline
                              D Offline
                              Dave Kreskowiak
                              wrote on last edited by
                              #14

                              Xmen W.K. wrote:

                              -Update network IPs

                              What does this mean exactly? Are you changing the IP of the workstation?? Why would you do this outside of changing the network the machine is on? This is never done on an application basis. The rest does not take an admin to do. The exception may be Shutdown/Restart because of policy settings.

                              A guide to posting questions on CodeProject[^]
                              Dave Kreskowiak

                              X 1 Reply Last reply
                              0
                              • D Dave Kreskowiak

                                Xmen W.K. wrote:

                                -Update network IPs

                                What does this mean exactly? Are you changing the IP of the workstation?? Why would you do this outside of changing the network the machine is on? This is never done on an application basis. The rest does not take an admin to do. The exception may be Shutdown/Restart because of policy settings.

                                A guide to posting questions on CodeProject[^]
                                Dave Kreskowiak

                                X Offline
                                X Offline
                                Xmen Real
                                wrote on last edited by
                                #15

                                Dave Kreskowiak wrote:

                                What does this mean exactly?

                                To make changes in network adapter settings

                                Dave Kreskowiak wrote:

                                Are you changing the IP of the workstation?? Why would you do this outside of changing the network the machine is on? This is never done on an application basis.

                                its for my home pc and app is kind of parental control :)

                                TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

                                ----------------------------------------------- 128 bit encrypted signature, crack if you can

                                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