How do I modify the “File Description” of an executable using msbuild (or command line)?

谁说胖子不能爱 提交于 2020-01-16 18:50:11

问题


I have a 3rd party app that is generating an executable for me, but it's putting its own name into the "File description" and "product name" details of the executable.

When I sign these with authenticode, it causes the user prompt to show the 3rd party app name rather than my own, even though it's signed with my company's certificate.

Is there a way to modify this from the command line, using some msbuild task? I know there are tasks that do this before compilation -- but in this case, I'm not compiling, and all I have is the finalized executable.


回答1:


I did figure this out, using Verpatch.

verpatch.exe myexe.exe /s description "New description" /s product "New product name"


来源:https://stackoverflow.com/questions/4036830/how-do-i-modify-the-file-description-of-an-executable-using-msbuild-or-comman

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!