UAC: manifest file ignored

One of my executables writes some configuration to an XML file at C: \ Program Files \ MyApp \ config.xml. It must run as administrator on Vista / Server 2008, otherwise the OS will not allow it to write to this location.

I have included a manifest file named config.exe.manifest to automatically prompt for admin rights on startup.

Here's my manifest file:

<?xml version="1.0" encoding="utf-8"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="requireAdministrator" />
      </requestedPrivileges>
    </security>
  </trustInfo>
</assembly>

      

I tried this on Windows Server 2008, but the manifest file seems to be ignored and the executable is run without sufficient rights.

+2


source to share


3 answers


Works well when I paste the manifest file using MT.EXE. Don't do this though, because it doesn't work when I provide the manifest as a separate file, but I guess the attachment is a good enough solution.



0


source


http://blogs.msdn.com/junfeng/archive/2009/05/11/internal-manifest-vs-external-manifest.aspx

from the link: On Windows XP, Sxs looks for the outer manifest before the inner manifest. If an external manifest is found, the internal manifest is ignored.



In Windows Server 2003 and later, the order is reversed. An internal manifest is preferable to an external manifest.

If you are using an external manifest and your script works on Windows XP but not Windows Server 2003 and later, please double check that the executable does not have an internal manifest

+3


source


This takes you to butty - got to the bottom and posted an article and some utilities to help ignore your manifest: Find out why your external Manifesto is being ignored .

+2


source







All Articles