Windows Forms + windows service

Asked

Viewed 68 times

0

I have a windows Forms project, added a windows service class, would like to install the service and run from a one button event(no need to use Installutil).

There’s some way to do it?

1 answer

0


The tool Installutil.exe is a command line utility that allows you to install and uninstall resource servers running the installation components in specified assemblies.

Installutil.exe uses reflection to inspect the specified assemblies and find all types of installers Installer who have the attribute System.ComponentModel.RunInstallerAttribute defined as true.

Then the tool executes the method Installer.Install or Installer.Uninstall in each instance of the type of Installer found.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.