How do I modify the “File Description” of an execu

2019-08-30 18:47发布

问题:

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"