Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. Difference between embedded manifest and separate manifest file

Difference between embedded manifest and separate manifest file

Scheduled Pinned Locked Moved Windows API
comhardwaresecurityxmlquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mav northwind
    wrote on last edited by
    #1

    Hi guys! Vista is driving me nuts (once again). So far I thought you get the exactly same results when you have your application manifest file as a separate file or when you have it embedded inside your app. Today I found that the application behaves differently and I was wondering if anyone can shed some light on this topic. I was embedding this manifest

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <dependency>
    <dependentAssembly>
    <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="x86" publicKeyToken="6595b64144ccf1df" language="*"></assemblyIdentity>
    </dependentAssembly>
    </dependency>
    <v3:trustInfo xmlns:v3="urn:schemas-microsoft-com:asm.v3">
    v3:security
    v3:requestedPrivileges
    <!-- level can be "asInvoker", "highestAvailable", or "requireAdministrator" -->
    <v3:requestedExecutionLevel level="requireAdministrator" />
    </v3:requestedPrivileges>
    </v3:security>
    </v3:trustInfo>
    </assembly>

    and, as expected, the little shield appeared at the program icon and the UAC dialog popped up every time I started the application. Then I rebuilt the application and didn't embed the manifest, but kept it in a separate file named MyApp.exe.manifest in the same directory as MyApp.exe. Explorer showed the little shield again after refreshing the view, but then there was no UAC dialog and the application ran without requesting elevated rights. Can anyone explain this behaviour? Thanks in advance! Regards, mav -- Black holes are the places where God divided by 0...

    modified on Monday, January 21, 2008 2:15:25 PM

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups