简体   繁体   English

Visual Studio 2010安装项目:如何设置默认安装位置中使用的公司名称?

[英]Visual Studio 2010 setup project: How to set company name used in default install location?

I have a console app project and a related setup project in the same solution. 我在同一解决方案中有一个控制台应用程序项目和相关的安装项目。 When I run the generated .msi, the install wizard shows following default Install location: 当我运行生成的.msi时,安装向导会显示以下默认安装位置:

C:\Program Files (x86)\Default Company Name\myApp\

How can I put my own company name? 我怎样才能把自己的公司名称?

Open the Properties Window (NOT the right-click on the set-up project) 打开属性窗口(不是右键单击设置项目)

Use the toolbar View -> Properties Window 使用工具栏视图 - >属性窗口

VS 2013/2017 on windows 7 : Keyboard shortcut F4 Windows 2013上的VS 2013/2017 :键盘快捷键F4

VS 2010 on windows 7 : Keyboard shortcut sequence Ctrl + W and then Ctrl + P Windows 7上的VS 2010 :键盘快捷键顺序Ctrl + W然后按Ctrl + P.

Now select your set-up project in the Solution Explorer window, the Properties window should populate with the info (eg author, language, program title etc.) that you can edit 现在在Solution Explorer窗口中选择您的设置项目,Properties窗口应该填充您可以编辑的信息(例如作者,语言,程序标题等)

在解决方案资源管理器中选择项目,然后按F4

If you want to change the Default Company Name visible in control panel in Publisher column, then change the Manufacturer property in properties window of setup project. 如果要更改“ 发布者”列中控制面板中可见的“默认公司名称”,请在“安装项目”的“属性”窗口中更改“制造商”属性。

if you want to change the program name as visible in Name column in control panel please change the ProductName in properties window. 如果要在控制面板的“ 名称”列中更改程序名称,请在属性窗口中更改ProductName

For changing the following default Install location 用于更改以下默认安装位置

C:\\Program Files (x86)\\Default Company Name\\myAppSetup\\ C:\\ Program Files(x86)\\ Default Company Name \\ myAppSetup \\

  • Select the set-up project "myAppSetup" in solution explorer and hit F4 . 在解决方案资源管理器中选择设置项目“myAppSetup”,然后点击F4
  • Change the Manufacturer property "Default Company Name" in properties window to your own company name, eg "StackOverflow". 将属性窗口中的制造商属性“默认公司名称”更改为您自己的公司名称,例如“StackOverflow”。
  • Change the ProductName property "myAppSetup" in properties window to your desired program name, eg "Sweepstakes". 将属性窗口中的ProductName属性“myAppSetup”更改为所需的程序名称,例如“Sweepstakes”。
  • The Author property may contain a default value "Default Company Name" and can also be changed. 作者属性可能包含默认值“默认公司名称”,也可以更改。

Then the Install location will be like this 然后安装位置将是这样的

C:\\Program Files (x86)\\StackOverflow\\Sweepstakes\\ C:\\ Program Files(x86)\\ StackOverflow \\ Sweepstakes \\

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM