using code similar to this Inno Setup for Windows service?
on a windows 7 box (VS 2010) when I try to run my inno installer I get the following result
No public installers with the RunInstallerAttribute.Yes attribute could be found
The service works if run with a standard windows installer; here is the code:
[RunInstaller(true)]
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
public static void Main(string[] args)
{
if (args.Count()==1)
{
string parameter = string.Concat(args);
switch (parameter)
{
case "--install":
ManagedInstallerClass.InstallHelper(new string[] {Assembly.GetExecutingAssembly().Location});
break;
case "--uninstall":
ManagedInstallerClass.InstallHelper(new string[]
{"/u", Assembly.GetExecutingAssembly().Location});
break;
}
}
else
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new SkyLibrarian()
};
ServiceBase.Run(ServicesToRun);
}
}
}
Does anyone have any experience of this issue? I run the installer as an administrator using a right click. Thanks
Simon Norburn