问题
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