StudentX
StudentX

Reputation: 2323

how to embed manifest file in executable without mt.exe?

I don't have Visual Studio and I don't have Windows SDK, so I don't have mt.exe. Is there a way to embed the manifest file in the executable without using mt.exe ?

Upvotes: 3

Views: 1123

Answers (1)

Remy Lebeau
Remy Lebeau

Reputation: 597951

If you have the ability to compile source code into an executable program via a different compiler, then you can use the Win32 API UpdateResource() function to modify the target .exe file and add/update an RT_MANIFEST resource in it as needed. Otherwise, you will have to use a third-party resource editor, such as XN Resource Editor or Resource Hacker, to edit the target .exe file manually.

Upvotes: 3

Related Questions