Windows7向けのコードも足したmanifestのベースファイル
<?xml version="1.0" encoding="utf-8"?>
<assembly
xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd"
manifestVersion="1.0"
xmlns:asmv1="urn:schemas-microsoft-com:asm.v1"
xmlns:asmv2="urn:schemas-microsoft-com:asm.v2"
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"
xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"
xmlns="urn:schemas-microsoft-com:asm.v1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<asmv3:trustInfo>
<asmv3:security>
<requestedPrivileges>
<requestedExecutionLevel level="asinvoker" uiAccess="false"/>
</requestedPrivileges>
</asmv3:security>
</asmv3:trustInfo>
<assemblyIdentity name="xxxx.exe" type="win32" version="1.0.0.0" processorArchitecture="x86" />
<file name="xxxx.dll">
<typelib tlbid="{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}" version="1.0" helpdir="" resourceid="0" flags="HASDISKIMAGE" />
<comClass clsid="{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}" threadingModel="Apartment" progid="DirLibNIF.DirCheckNIF" tlbid="{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}" />
</file>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!--The ID below indicates application support for Windows Vista -->
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
<!--The ID below indicates application support for Windows 7 -->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
</application>
</compatibility>
</assembly>
サポートOSについては
http://msdn.microsoft.com/en-us/library/dd371711(VS.85).aspx
ちゃんとWindows 7ターゲットできているかどうかはリソースモニターでチェックする。詳細はkkamegawaさんのページ
http://d.hatena.ne.jp/kkamegawa/20090705/p1