通过powershell将版本设置为exe [英] Set version to exe through powershell
本文介绍了通过powershell将版本设置为exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图通过powershell脚本设置产品名称,产品版本号,文件描述。
您能否分享任何可以将给定版本号设置为给定EXE文件的代码片段。
谢谢,
Srinivas。
我尝试了什么:
我试过RegEx替换选项,但这对我没有帮助。
Hi,
I am trying to set product name, product version number, File description via powershell script.
Could you please share any code snippet which can set a given version number to given EXE file.
Thanks,
Srinivas.
What I have tried:
I tried with RegEx replace option, but that doesn't help me out.
推荐答案
使用此工具,您可以设置版本信息:适用于Windows的简单版本资源工具 [ ^ ]
示例:
With this tool you can set the version info: Simple Version Resource Tool for Windows[^]
Example:
verpatch foo.dll "1.2.3.4 my special build"
这篇关于通过powershell将版本设置为exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文