如何使用Visual Studio将文件版本嵌入MSI文件中? [英] How do I embed a File Version in an MSI file with Visual Studio?

查看:142
本文介绍了如何使用Visual Studio将文件版本嵌入MSI文件中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用于C#程序的安装项目,并且此安装项目的属性中有一个Version.我想要生成的MSI文件嵌入其中,因此我可以在资源管理器中将其悬停在鼠标上,以查看文件的版本.

I have a setup project for my C# program, and this setup project has a Version in its properties. I'd like for the MSI file that is generated to have this Version embedded in it, so I can mouse over it in explorer and see what version the file is.

我正在使用VS2008.我该怎么办?

I'm using VS2008. How can I do this?

推荐答案

如果仅将"Version:1.5.0"文本添加到安装项目的Description属性中,则版本号也将显示在MSI文件上,如下所示:

If you simply add the "Version: 1.5.0" text into the Description property of the Setup Project, the version number also shows on the MSI file like so:

http://screencast.com/t/A499i6jS

这篇关于如何使用Visual Studio将文件版本嵌入MSI文件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆