Hello all, I know of the basic way to make a program run as an admin (rightclick, Properties -> Compatibility - > Run this program as an administrator) Prob I have found out, If I put the .exe on another site for someone to download, when they download it to their PC, or if I just simply move the .EXE to another part of the PC, the admin rights are taken off. If there a way to keep the "Always run as an administrator" on there at all times, can you please tell me?
probably have to make a batch file adding:- runas /user:Administrator Example1.exe name it the same as the exe and run that simplest
You can add manifest file beside it save as ProgramName.exe.manifest Spoiler Code: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="1.0.0.0" processorArchitecture="*" name="abc" type="win32"></assemblyIdentity> <description>abc</description> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"></assemblyIdentity> </dependentAssembly> </dependency> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLevel level="requireAdministrator" uiAccess="false"></requestedExecutionLevel> </requestedPrivileges> </security> </trustInfo> <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> <application> <!--The ID below indicates application support for Windows 7 --> <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"></supportedOS> </application> </compatibility> </assembly>