Setting the manufacturer in a VS 2008 Setup Projec

2019-04-04 04:13发布

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.

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.

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

How do I set the Manufacturer name?

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

Thanks in advance for any help.

2条回答
趁早两清
2楼-- · 2019-04-04 04:55

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.

查看更多
叼着烟拽天下
3楼-- · 2019-04-04 05:08

Note if you're confused/frustrated doing this seemingly trivial thing: if you open properties by right-clicking on the project and clicking "Properties" in the right-mouse menu, you will get the wrong dialog box. You need to select the project, but then navigate to the properties tag. One way to navigate to the properties tag is from the "View" menu, select "Properties Window".

查看更多
登录 后发表回答