简体   繁体   中英

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:

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

VS 2010 on windows 7 : Keyboard shortcut sequence Ctrl + W and then 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

在解决方案资源管理器中选择项目,然后按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.

For changing the following default Install location

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

  • Select the set-up project "myAppSetup" in solution explorer and hit F4 .
  • Change the Manufacturer property "Default Company Name" in properties window to your own company name, eg "StackOverflow".
  • Change the ProductName property "myAppSetup" in properties window to your desired program name, eg "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\\

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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