code: func removeService() error {
  	// Connect to the windows service manager.
  	serviceManager, err := mgr.Connect()
  	if err != nil {
  		return err
  	}
  	defer serviceManager.Disconnect()
  
  	// Ensure the service exists.
  	service, err := serviceManager.OpenService(svcName)
  	if err != nil {
  		return fmt.Errorf("service %s is not installed", svcName)
  	}
  	defer service.Close()
  
  	// Remove the service.
  	return service.Delete()
  }
docs: // removeService attempts to uninstall the btcd service.  Typically this should
  // be done by the msi uninstaller, but it is provided here since it can be
  // useful for development.  Not the eventlog entry is intentionally not removed
  // since it would invalidate any existing event log messages.