title: How can I get the startup type of a service from InstallShield?
body: <p>I have an InstallScript installer that needs to modify an existing service's startup type (i.e. Automatic, Manual or Disabled) based on its current value.  For example, if the current startup type is Disabled, it might leave it so, while otherwise it might set it to Automatic.</p>
  
  <p>Unfortunately I can't find a way to obtain a service's startup type.  There are functions to detect whether a service exists (<code>ServiceExistsService</code>), and get its current started/stopped state (<code>ServiceGetServiceState</code>), but nothing that retrieves the service's parameters.  I thought that perhaps calling one of those functions would populate the <code>SERVICE_IS_PARAMS</code> structure as a side-effect, but that doesn't seem to be the case.</p>
  
  <p>How can I get a service's startup type?</p>