I get the above error message as well as a complaint about the
RunInstallerAttribute not being found when compiling the following code.
This couldn't be any simpler and I see examples on the web that use this
namespace and this attribute. I am using VS.Net 2003. Any ideas?
using System;
using System.ServiceProcess;
using System.Configuration.Installer;
namespace POP3Retriever
{
[RunInstallerAttribute(true)]
public class ProjectInstaller : System.ServiceProcess.ServiceInstaller
{
public ProjectInstaller()
{
ServiceProcessInstaller spi = new ServiceProcessInstaller();
spi.Account = ServiceAccount.LocalSystem;
ServiceInstaller si = new ServiceInstaller();
si.ServiceName = "POP3 retriever";
si.StartType = ServiceStartMode.Manual;
Installers.AddRange(new Installer[] {spi, si});
}
}
}