I have created a window service using c# in visual studio 2013. Windows service is working fine.
When i create a setup project and run the .msi file in different computer it gives me an error
Steps I did :
1.Right click on solution -> Other Project Types ->Visual Studio Installer - Setup Project
2.After adding the name File system Editor -> Select Application Folder -> Right click -> Add -> Project output -> Add Project Output Group pop up Project : selected my project with Primary Output
- Select Custom Action Editor -> Install -> Right CLick -> Add Custom Action -> Select the Application folder and the Project output.
Repeated the same for Uninstall
- Build the Installer.
.msi and setup.exe file is created in the folder.
I saw https://www.youtube.com/watch?v=cp2aFNtcZfk tutorial to do this.
Can any tell me how to solve this.
Thanks
Edit : I have projectInstaller in my Project
namespace certify4byd_ver2._0
{
partial class ProjectInstaller
{
private System.ComponentModel.IContainer components = null;
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.serviceProcessInstaller1 = new System.ServiceProcess.ServiceProcessInstaller();
this.serviceInstaller1 = new System.ServiceProcess.ServiceInstaller();
//
// serviceProcessInstaller1
//
this.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalService;
this.serviceProcessInstaller1.Password = null;
this.serviceProcessInstaller1.Username = null;
//
// serviceInstaller1
//
this.serviceInstaller1.Description = "Quick Source specific development to allow ftp files to be send to ByDesign envir" +
"onment";
this.serviceInstaller1.DisplayName = "Quick Source Certify4ByDesign";
this.serviceInstaller1.ServiceName = "qs_certify4byd_v2.0";
this.serviceInstaller1.StartType = System.ServiceProcess.ServiceStartMode.Automatic;
this.serviceInstaller1.AfterInstall += new System.Configuration.Install.InstallEventHandler(this.serviceInstaller1_AfterInstall);
//
// ProjectInstaller
//
this.Installers.AddRange(new System.Configuration.Install.Installer[] {
this.serviceProcessInstaller1,
this.serviceInstaller1});
}
#endregion
private System.ServiceProcess.ServiceProcessInstaller serviceProcessInstaller1;
private System.ServiceProcess.ServiceInstaller serviceInstaller1;
}
}