Search code examples
visual-studiovisual-studio-2012windows-servicesinstallshieldinstallshield-le

How to make InstallShield change Installed Windows Service's Startup Type


I'm using Visual Studio 2012, and InstallShield LE.

Thanks to the answer on this post, I am able to successfully install a Windows Service to a computer using the InstallShield LE installer.

I'm wondering how I can set the Startup Type for the Window's Service to "Automatic" within InstallShield? Right now it's defaulting to "Manual".

enter image description here


Solution

  • I could not find a way to make InstallShield install a service with a certain Startup Type.

    In regard to Window's Services built through Visual Studio, under the ProjectInstaller.cs auto-generated class, set the serviceInstaller class's StartType property to be "Automatic".