Windows 将清单嵌入到exe失败,参数无效

Windows 将清单嵌入到exe失败,参数无效,windows,manifest,exe,administrator,Windows,Manifest,Exe,Administrator,我想将清单添加到.exe文件中,这样它就不会要求用户在Windows 7中以管理员身份运行 我遵循的似乎正是我想要完成的,但当我做同样的事情时,我得到了这个错误,并且我找不到解决方法: mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "C:\install.exe". The parameter is incorrect. 这是我使用的命令: mt.exe

我想将清单添加到.exe文件中,这样它就不会要求用户在Windows 7中以管理员身份运行

我遵循的似乎正是我想要完成的,但当我做同样的事情时,我得到了这个错误,并且我找不到解决方法:

mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "C:\install.exe". The parameter is incorrect.
这是我使用的命令:

mt.exe –manifest C:\install.exe.manifest -outputresource:C:\install.exe;1

非常感谢您的帮助。

这就是我解决这个问题的方法,它实际上是一个语法问题:

mt.exe –manifest "C:\install.exe.manifest" -outputresource:"C:\install.exe;#1"

还有一个更好的解决方案是直接使用VisualStudio编辑.exe

我就是这样解决这个问题的,它实际上是一个语法问题:

mt.exe –manifest "C:\install.exe.manifest" -outputresource:"C:\install.exe;#1"

还有一个更好的解决方案是直接使用VisualStudio编辑.exe

都在本地车道上,对吗?当输出是共享驱动器时,我看到了这个错误。我实际上解决了这个问题,我将发布解决方案。不管怎样,谢谢。都在本地车道上,对吗?当输出是共享驱动器时,我看到了这个错误。我实际上解决了这个问题,我将发布解决方案。无论如何,谢谢你。