title: Error in executing *.msi file created using Visual Studio
body: <p>I have created a window service using c# in visual studio 2013.
  Windows service is working fine.</p>
  
  <p>When i create a setup project and run the .msi file in different computer it gives me an error </p>
  
  <p><a href="https://i.stack.imgur.com/oRjQR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oRjQR.png" alt="Error "></a></p>
  
  <p>Steps I did :</p>
  
  <p>1.Right click on solution -> Other Project Types ->Visual Studio Installer - Setup Project</p>
  
  <p>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</p>
  
  <p><a href="https://i.stack.imgur.com/WyUO5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WyUO5.png" alt="File system editor"></a></p>
  
  <ol start="3">
  <li>Select Custom Action Editor -> Install -> Right CLick -> Add Custom Action -> Select the Application folder and the Project output.</li>
  </ol>
  
  <p>Repeated the same for Uninstall </p>
  
  <p><a href="https://i.stack.imgur.com/37cyg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/37cyg.png" alt="Custom Actions Editor"></a></p>
  
  <ol start="4">
  <li>Build the Installer.</li>
  </ol>
  
  <p>.msi and setup.exe file is created in the folder.</p>
  
  <p>I saw <a href="https://www.youtube.com/watch?v=cp2aFNtcZfk" rel="nofollow noreferrer">https://www.youtube.com/watch?v=cp2aFNtcZfk</a> tutorial to do this. </p>
  
  <p>Can any tell me how to solve this.</p>
  
  <p>Thanks</p>
  
  <hr>
  
  <p>Edit : I have projectInstaller in my Project</p>
  
  <pre><code>namespace certify4byd_ver2._0
  {
  partial class ProjectInstaller
  {
  
      private System.ComponentModel.IContainer components = null;
  
      protected override void Dispose(bool disposing)
      {
          if (disposing &amp;&amp; (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;
      }
  }
  </code></pre>