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. Problem in windows7

Problem in windows7

Scheduled Pinned Locked Moved C / C++ / MFC
csharphelpc++visual-studiotutorial
7 Posts 5 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.
  • B Offline
    B Offline
    bhanu_8509
    wrote on last edited by
    #1

    Hello Iam developing VC++ application in "Visual studio .NET 2005". Application had some problem in windows7, when ever i start the appliction it prompts to the pop window as following "Do you want to allow the following program to make changes your computer". Some one please help me how to start my application without popup window. Thanks in advance, Regards, bhanu.

    P K 2 Replies Last reply
    0
    • B bhanu_8509

      Hello Iam developing VC++ application in "Visual studio .NET 2005". Application had some problem in windows7, when ever i start the appliction it prompts to the pop window as following "Do you want to allow the following program to make changes your computer". Some one please help me how to start my application without popup window. Thanks in advance, Regards, bhanu.

      P Offline
      P Offline
      phil o
      wrote on last edited by
      #2

      Hi, You should take a look here. Regards.

      1 Reply Last reply
      0
      • B bhanu_8509

        Hello Iam developing VC++ application in "Visual studio .NET 2005". Application had some problem in windows7, when ever i start the appliction it prompts to the pop window as following "Do you want to allow the following program to make changes your computer". Some one please help me how to start my application without popup window. Thanks in advance, Regards, bhanu.

        K Offline
        K Offline
        krmed
        wrote on last edited by
        #3

        It sounds like this is a UAC intervention. What is the name of your program (some names will trigger UAC) and does your program attempt to modify any system information (HEY_LOCAL_MACHINE registry, add files to the Program Files directory or sub-directories, etc)?

        Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

        B 1 Reply Last reply
        0
        • K krmed

          It sounds like this is a UAC intervention. What is the name of your program (some names will trigger UAC) and does your program attempt to modify any system information (HEY_LOCAL_MACHINE registry, add files to the Program Files directory or sub-directories, etc)?

          Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

          B Offline
          B Offline
          bhanu_8509
          wrote on last edited by
          #4

          hello, Yes, my application access and modifies regestries(HKLM) and also my application was installed in Program files directory. please advice how to get rid of this problem Regards, bhanu.

          D _ K 3 Replies Last reply
          0
          • B bhanu_8509

            hello, Yes, my application access and modifies regestries(HKLM) and also my application was installed in Program files directory. please advice how to get rid of this problem Regards, bhanu.

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

            bhanu_8509 wrote:

            Yes, my application access and modifies regestries(HKLM) and also my application was installed in Program files directory.

            Two things you are really not supposed to do with Windows 7. Yes, there are exceptions to the rule, but the days of applications having full access to all of Windows are gone.

            bhanu_8509 wrote:

            please advice how to get rid of this problem

            Be specific with what you are wanting. A better solution likely exists.

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "Man who follows car will be exhausted." - Confucius

            1 Reply Last reply
            0
            • B bhanu_8509

              hello, Yes, my application access and modifies regestries(HKLM) and also my application was installed in Program files directory. please advice how to get rid of this problem Regards, bhanu.

              _ Offline
              _ Offline
              _Superman_
              wrote on last edited by
              #6

              It is not recommended to modify HKLM and Program Files and many other locations. These recommendations where true from a very long time. But since users in XP and earlier OSs where true administrators, this did not pose a problem. From Vista onwards, a program by default runs without admin privileges. That is the reason for the prompt.

              «_Superman_»  _I love work. It gives me something to do between weekends.

              _Microsoft MVP (Visual C++)

              Polymorphism in C

              1 Reply Last reply
              0
              • B bhanu_8509

                hello, Yes, my application access and modifies regestries(HKLM) and also my application was installed in Program files directory. please advice how to get rid of this problem Regards, bhanu.

                K Offline
                K Offline
                krmed
                wrote on last edited by
                #7

                Since you are writing to HKEY_LOCAL_MACHINE, I don't think you can prevent the prompt - writing there REQUIRES administrative privilege. Having your application in the Program Files directory is OK, but modifying or creating files in that directory is a problem also requiring admin privilege. Even if you create a manifest containing the RequestedExecutionLevel set to "requiresAdministrator" (as some will probably suggest) will not solve it - all that does is when your program starts the user is prompted to enter the administrator password or approve the operation anyway. As DavidCrow indicated, there is probably a better way to accomplish what you need - perhaps using HKEY_CURRENT_USER instead. Good luck.

                Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

                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