InstallUtil vs sc.exe

Conor Boyd's Avatar

Conor Boyd

18 Jan, 2018 02:07 AM

Hi,

I'm working with a team to automate deployment of Windows services to a webserver.

As I understand it, the built-in "Deploy a Windows Service" step uses sc.exe under the hood to do the actual service installation or reconfiguration.

However, this development team have bundled up 4 different Windows services into the same binary, with some custom installer smarts. The .net InstallUtil utility installs these services fine, but unfortunately sc.exe doesn't handle it and only installs one of the four services.

I see a few references in the Support forums to InstallUtil but it's unclear to me whether there is any support for InstallUtil built in to Octopus.

Please can you give me some advice/suggestions on how to use InstallUtil instead of sc.exe to deploy Windows services using Octopus?

Many thanks,

Conor

  1. Support Staff 1 Posted by Daniel Fischer on 19 Jan, 2018 02:43 AM

    Daniel Fischer's Avatar

    Hi Conor,

    Thanks for getting in touch! Currently the only way to do this would be via custom script. We have a bit more information on how you can customize this part of your deployment on the following documentation page.

    Let me know if you have any further questions here or run into any issues. :)

    Best regards,
    Daniel

  2. 2 Posted by Conor Boyd on 24 Jan, 2018 12:38 AM

    Conor Boyd's Avatar

    Thanks Daniel,

    I'll work through those links when I have some time to put in to it.

    Cheers,

    Conor

  3. Support Staff 3 Posted by Daniel Fischer on 25 Jan, 2018 01:08 AM

    Daniel Fischer's Avatar

    Hi Conor,

    Thanks for the update! Please don't hesitate to let me know if you do run into further issues here. :)

    Best regards,
    Daniel

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac