testing and generate

This commit is contained in:
redanthrax 2022-06-23 15:07:18 -07:00
parent 9743d7ee22
commit 3841aee4b2
24 changed files with 1087 additions and 610 deletions

View file

@ -836,15 +836,15 @@ func (a *Agent) InstallService() error {
// skip on first call of inno setup if this is a new install
_, err := registry.OpenKey(registry.LOCAL_MACHINE, `SOFTWARE\TacticalRMM`, registry.ALL_ACCESS)
if err != nil {
return nil
return err
}
s, err := service.New(a, a.ServiceConfig)
svc, err := service.New(a, a.ServiceConfig)
if err != nil {
return err
}
return service.Control(s, "install")
return service.Control(svc, "install")
}
// TODO add to stub