在VS 2008安装项目中设置制造商 [英] Setting the manufacturer in a VS 2008 Setup Project

查看:111
本文介绍了在VS 2008安装项目中设置制造商的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows安装项目,用于安装服务.除以下几点外,所有方法都工作正常:安装过程中提供给用户的默认目录的格式为"C:\ Program Files \ Microsoft \ ProgramName".我正在尝试对此进行修改,以便使用我们公司的名称代替"Microsoft".

I have a windows setup project that installs a service. All works well except for one thing: The default directory offered to the user during install is of the form "C:\Program Files\Microsoft\ProgramName". I am trying to modify this so that instead of "Microsoft" we would have our company's name.

我找到了安装项目的应用程序文件夹属性,它的DefaultLocation属性为"[ProgramFilesFolder] [Manufacturer] [ProductName]".因此,看起来我需要做的就是设置"Manufacturer"属性,然后全部设置完毕.但是,我找不到设置此属性的方法!我曾希望它可以从主要输出项目的AssemblyInfo中的公司名称中获取,但是没有.

I found the application folder property of the setup project, and it has a DefaultLocation property of "[ProgramFilesFolder][Manufacturer][ProductName]". So, it looks like all I need to do is set the "Manufacturer" property and I'll be all set. However, I can not find a way to set this property! I had hoped it would take it from the company name in the AssemblyInfo of the primary output project, but it did not.

我可以从DefaultLocation中删除"[Manufacturer]",然后将其替换为我们的字面公司名称,但这似乎很容易.

I could remove "[Manufacturer]" from the DefaultLocation and replace it with our literal company name, but that seems like a hack.

如何设置制造商名称?

请注意,我没有使用成熟的WiX项目.我只是将Windows安装项目添加到了我的解决方案中.

Note that I am not using a full-blown WiX project. I have simply added a windows setup project to my solution.

在此先感谢您的帮助.

推荐答案

在Visual Studio中单击安装项目,打开属性",您会注意到可以设置许多属性,例如制造商","SupportURL"等.

Click on your setup project in Visual Studio, open the Properties and you will notice that there are a number of Properties that you can set like Manufacturer, SupportURL, etc.

这篇关于在VS 2008安装项目中设置制造商的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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