The MASM Forum Archive 2004 to 2012

Project Support Forums => 64 Bit Assembler => Topic started by: sinsi on March 12, 2010, 07:22:56 AM

Title: Manifest in x64
Post by: sinsi on March 12, 2010, 07:22:56 AM
I was wondering about using a manifest file with a 64-bit exe. A couple of things, I have seen "processorArchitecture" as "AMD64", is this correct? Another post here
says something about using "processorArchitecture=*". The other thing is with using common controls 6, is the info in the 32-bit manifest the same for x64?

Also curious as to what happens with a manifest asking for administrator under XP Pro 64-bit. Will it bring up a "run as" dialog or is that a vista+ thing?
I've seen Greg's code which does bring up the dialog but will a manifest have the same effect without code?
Title: Re: Manifest in x64
Post by: tofu-sensei on March 12, 2010, 11:29:34 AM
Quote from: sinsi on March 12, 2010, 07:22:56 AM
A couple of things, I have seen "processorArchitecture" as "AMD64", is this correct? Another post here
says something about using "processorArchitecture=*". The other thing is with using common controls 6, is the info in the 32-bit manifest the same for x64?
here's a manifest for an x64 program as generated by vs 2008:
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="requireAdministrator" uiAccess="false"></requestedExecutionLevel>
      </requestedPrivileges>
    </security>
  </trustInfo>
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="amd64" publicKeyToken="6595b64144ccf1df" language="*"></assemblyIdentity>
    </dependentAssembly>
  </dependency>
</assembly>


QuoteAlso curious as to what happens with a manifest asking for administrator under XP Pro 64-bit. Will it bring up a "run as" dialog or is that a vista+ thing?
I've seen Greg's code which does bring up the dialog but will a manifest have the same effect without code?
it will just run, even on a limited account.
Title: Re: Manifest in x64
Post by: sinsi on March 13, 2010, 05:30:22 AM
Thanks for that my friend. The only thing different is 'amd64' instead of 'x86'.
Title: Re: Manifest in x64
Post by: Antariy on August 12, 2010, 10:19:47 PM
sinsi, try use:

processorArchitecture="*"


This must be one thing for any architecture.



Alex
Title: Re: Manifest in x64
Post by: Twister on August 16, 2010, 07:43:58 PM
For the processorArchitecture element is should be "ia64".

http://msdn.microsoft.com/en-us/library/aa374191%28VS.85%29.aspx
Title: Re: Manifest in x64
Post by: GregL on August 21, 2010, 03:16:39 AM
"ia64" is Itanium. I think that part of that documentation was overlooked. It should be "amd64".