Click here to Skip to main content
15,905,073 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I successfully installed Microsoft Retail Management System software in one of the laptops that has Windows 7 OS.
When I try to run the application(HeadQuarterManager) it is prompting for administrator credentials.
What should be done to suppress the credentials prompt. I don't want to set the User Access Control to Never. It should notify me but should not prompt for credentials.

Thanks,
Uma
Posted
Updated 22-Aug-13 1:18am
v2

Hi ,

u just add one application manifest file in your project . and change the credential to the administrator . like this

<security>
      <requestedprivileges xmlns="urn:schemas-microsoft-com:asm.v3">
 <!-- UAC Manifest Options
            If you want to change the Windows User Account Control level replace the 
            requestedExecutionLevel node with one of the following.

        <requestedExecutionLevel  level="asInvoker" uiAccess="false" />
        <requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />
        <requestedExecutionLevel  level="highestAvailable" uiAccess="false" />

            Specifying requestedExecutionLevel node will disable file and registry virtualization.
            If you want to utilize File and Registry Virtualization for backward 
            compatibility then delete the requestedExecutionLevel node.
        -->
       

   <requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />
  
      </requestedprivileges>
    </security>


Thanking you
Animesh
 
Share this answer
 
Comments
Uma Kameswari 22-Aug-13 7:20am    
Dear Animesh,

I tried as you said but still it is prompting for Admin credentials. on other laptops i am not having this problem. the user is a poweruser. Any other solutions?
I guess you do not have access to the source code of the application. Consequently, you have to find a way to run the application as an administrator without the user actually being an admin.
I do not know the details, but there is some trick with "scheduled tasks". It is possible to generate scheduled tasks and provide there the credentials of a user whose account is to be used for that task (e.g. an admin in your case). Then you can allow any user to run that task manually, and Windows will still run it as that different user.
Note that drag&drop into that application will likely be prevented by Windows security mechanisms, but drag&drop from the application to desktop might still work.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900