I wrote a Windows Service using C#.NET. To install the service, I've added a "Project Installer" class that inherited from the Installer
class and decorated with the [RunInstaller]
.
Without the [RunInstaller]
decoration, I cannot install the service using installutil.
Why is it that by deploying the service using the ServiceInstall table in MSI, MSI was able to install the service without a [RunInstaller]
decoration?
PS: I used WiX to author the MSI:
<ServiceInstall Id="RegistryReaderInstall" DisplayName="Registry Reader Service" Name="Registry Reader" ErrorControl="critical" Start="auto" Type="ownProcess"/>