我试图使用mt.exe从Windows SDK的清单添加到没有一个可执行文件,使用以下命令行:如何使用mt.exe将清单添加到可执行文件?
C:\winsdk61>mt.exe -nologo -manifest "r:\shared\hl.exe.manifest" -updateresource:"r:\shared\hl33m.exe;#1"
不幸的是,当我这样做,我得到这个错误:
mt.exe : general error c101008c: Failed to read the manifest from
the resource of file "r:\shared\hl33m.exe". The specified resource
type cannot be found in the image file.
当然,资源没有在文件中找到 - 该文件没有清单,这就是为什么我想添加一个。
如何将清单附加到可执行文件?这不应该简单吗?