Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ServiceInstaller si = new ServiceInstaller();
- si.ServiceName = "MyService";
- ServiceProcessInstaller spi = new ServiceProcessInstaller();
- spi.Account = ServiceAccount.LocalSystem;
- spi.Installers.Add(si);
- this.Installers.Add(spi);
- TransactedInstaller ti = new TransactedInstaller();
- ServiceInstaller si = new ServiceInstaller();
- si.ServiceName = "MyService";
- ti.Installers.Add(si);
- ServiceProcessInstaller spi = new ServiceProcessInstaller();
- spi.Account = ServiceAccount.LocalSystem;
- ti.Installers.Add(spi);
- this.Installers.Add(ti);
Add Comment
Please, Sign In to add comment