Click here to Skip to main content
15,902,492 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello,

i have written a small application.

It running correctly but the program need Administrator password.

I created a Install due VS2008.
Program installed on c:\programme\CalculateTest\


If I want to start this application, i get first Username/Password-Windows from Windows.

How can I disable this? My Application need no access to System files.

Is this a property in application / Project / setup?

thx,
GuMu

I found
"level="requireAdministrator"
is this my problem?
XML
<?xml version="1.0" encoding="utf-8" ?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <assemblyIdentity version="3.1.21.0"
  processorArchitecture="X86"
  name="CalculateTest.exe"
  type="win32" />
  <description>CalculateTest</description>
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="requireAdministrator" />
      </requestedPrivileges>
    </security>
  </trustInfo>
</assembly>
Posted
Updated 16-Jun-11 3:22am
v2
Comments
Kim Togo 16-Jun-11 9:32am    
Please use "Improve question" instead of "Add solution".

Have you changed the default manifest file for the program?
 
Share this answer
 
Comments
GuMu-Stgt 16-Jun-11 9:01am    
ohh...This is my manifest-file
Is this my problem?
level="requireAdministrator" ??

<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestversion="1.0">
<assemblyidentity version="3.1.21.0" processorarchitecture="X86" name="CalculateTest.exe" type="win32">
<description>CalculateTest</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedprivileges>
<requestedexecutionlevel level="requireAdministrator">
</requestedexecutionlevel></requestedprivileges>
</security>
</trustInfo>
</assemblyidentity></assembly>
Kim Togo 16-Jun-11 9:25am    
Yes that is the problem :-) - Change "requireAdministrator" to "asInvoker"
GuMu-Stgt 16-Jun-11 9:54am    
done....
Happy End..

Thank you :-)
Kim Togo 16-Jun-11 9:56am    
You are welcome :-)
try to enable the anonymous user login...
 
Share this answer
 
Comments
GuMu-Stgt 16-Jun-11 9:55am    
Thx...

the problem was manifest-file

Thank you...

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