次のコマンドラインを使用して、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.
もちろん、リソースはファイルに見つかりませんでした。ファイルにはマニフェストがないため、マニフェストを追加します。
マニフェストを実行可能ファイルに追加するにはどうすればよいですか?これは簡単ではないですか?