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