I have two projects: a service project and a service installer project. There is assembly information in the service design that is suitable for my product. It includes company information and the correct service name. All this seems to be ignored as soon as the service is actually installed. When a service is installed, it uses the properties set in the initializeComponent Service Installer method. It took me a while, but I managed to find it.
Unfortunately, the created MSI is still created with the name of the company "Microsoft", the name is "Service", and therefore the installer by default installs the installation on "C: \ Program Files (x86) \ Microsoft \ Service", which does not seem to be a good location default.
The service project does not have any configuration files that I can change that will affect the default installation path or build information for the generated setup.exe and ServiceInstaller.msi file.
And, as with most .NET things, Googling produced very little useful information. Any thoughts or suggestions are welcome!
tl; dr: How to influence the assembly information and the default installation path in the Service Installer project.
source share