Install Folders for Windows Service

T

tshad

I have created a service and cannot figure out where the program is figuring
out what to use for a company name or product name.

I have a solution called UPS and a windows services called UPS.Service. My
deployment project is called UPS.Deployment.

When I build the msi and setup for the program it wants to put the folders
in:

c:\Program Files\Default Company\UPS.Deployment

I want the intall program to put the default folder as:

C:\Program Files\My Company\UPS

I can't figure out how to make that work.

In the primary output of the UPS.Deployment for the properties of the
Application folder, I get:

[ProgramFilesFolder][Manufacturer]\[ProductName]

Where is it getting the ProductName or Manufacturer from?

If I go to the UPS.Service properties and on the Publish tab and Publish
options set Product Name as UPS. It doesn't use that. I still get
UPS.Deployment.

Anyone know how this works?

Thanks,

Tom
 
T

tshad

This is the most unintuitive program around.

I found an article (finally) that explained how to get to a properties
window (not the right-click properties - which gives you a completely
different window). You have to select the deployment project then hit F4
(or go to View\Properties Window). There are the properties for this.

I have been right clicking on all my projects and the solution to find the
properties as well as selecting the Solutions and selecting
Project\Properties. None of these have this.

What is the difference between all the right-click properties and the F4
property window?????

It took me forever to find this.

Tom
 
J

Jeff Johnson

This is the most unintuitive program around.

"This" being Visual Studio?
I found an article (finally) that explained how to get to a properties
window (not the right-click properties - which gives you a completely
different window). You have to select the deployment project then hit F4
(or go to View\Properties Window). There are the properties for this.

I have been right clicking on all my projects and the solution to find the
properties as well as selecting the Solutions and selecting
Project\Properties. None of these have this.

What is the difference between all the right-click properties and the F4
property window?????

Well, it sounds like you've been dealing with Solution Explorer. In my
experience, when you select an item in Solution Explorer, the Properties
window displays properties as they relate to FILES. For example, when
selecting a project (like a class library or Windows Forms project), I see
only two properties: Project File and Project Folder. When selecting a file
that belongs to the project, like a .CS file, I see a few more properties,
mostly relating to how the file will be compiled into the output (if at
all), whether to physically move the file, what custom tool run run against
the file, etc. See the pattern?

The Properties window won't display what we tend to think of as "regular"
properties until you've selected something in a code or designer window,
because it's only then that Visual Studio has the proper context. And since
projects don't have designer or code windows, they have a special window
that shows up only when you right-click the object in Solution Explorer and
choose Properties.

It sounds like you don't have the Properties window showing at all times, or
you'd be more used to the kind of things it displays. I have to say, I find
this almost unthinkable. There are very few tool windows that I consider
indispensible, but this is one of them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top