exe installation

Nishant Kumar's Avatar

Nishant Kumar

11 Oct, 2017 02:17 PM

Hi Team,

I am doing a poc on octopus for deployment on windows server. I was just wondering if exe can be installed by octopus on the slave systems

  1. Support Staff 1 Posted by Kenneth Bates on 13 Oct, 2017 09:02 PM

    Kenneth Bates's Avatar

    Hi Nishant,

    Thanks for getting in touch! I hope your POC has been going well so far. :)

    Anything that you can script, you can run within your Octopus deployment process. You can include custom scripts in your package itself, or include them in the package step.
    https://octopus.com/docs/deploying-applications/custom-scripts

    I found what I think is a great resource and answer to a similar question (with further details on using Octopus variables) at the following link.
    https://stackoverflow.com/questions/43401602/trying-to-execute-an-e...

    Does this resource help? Don't hesitate to reach out if you have any further questions. :)

    Best regards,

    Kenny

  2. 2 Posted by Nishant Kumar on 14 Oct, 2017 06:04 PM

    Nishant Kumar's Avatar

    Thanks Kenny for the reply. I m mostly a Linux guy and it's first time I m
    dealing with Windows system. So I was just checking if there are any built
    in resources available.

    Thanks
    Nishant

  3. Support Staff 3 Posted by Kenneth Bates on 17 Oct, 2017 12:19 AM

    Kenneth Bates's Avatar

    Hi Nishant,

    Thanks for following up! While there's nothing built-in for this specifically, the following PowerShell command should do the trick: YourFile.exe /install=agent. This thread on Microsoft's page provides some additional info. :)
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/4e0...

    Additionally, you can get the path to your deployed file using Octopus system variables, specifically Octopus.Tentacle.CurrentDeployment.PackageFilePath. You can refer to our system variables documentation page.
    https://octopus.com/docs/deploying-applications/variables/system-va...

    I hope this helps! Let me know if you have any further questions going forward.

    Best regards,

    Kenny

  4. 4 Posted by Nishant Kumar on 07 Nov, 2017 11:00 AM

    Nishant Kumar's Avatar

    Hi Kenneth,

    My installation of msi requires users intervention. I am passing the
    parameters as well however the octopus hungs(seems like waiting for
    something) with logging following:

    SFXCA: Extracting custom action to temporary directory:
    C:\Windows\Installer\MSI83DD.tmp-\
    MSI (s) (C8!08) [05:47:27:944]: Closing MSIHANDLE (26) of type 790531 for
    thread 1800
    MSI (s) (C8!08) [05:47:28:398]: Creating MSIHANDLE (27) of type 790531 for
    thread 1800
    SFXCA: Binding to CLR version v2.0.50727

  5. Support Staff 5 Posted by Kenneth Bates on 09 Nov, 2017 12:20 AM

    Kenneth Bates's Avatar

    Hi Nishant,

    To install an MSI silently, where there's no UI that comes up requiring user intervention, you should be able to avoid that by passing the argument /quiet or /qn in the command. A similar example shown in our docs shows how you can install Tentacle silently, which uses the same approach.
    https://octopus.com/docs/installation/installing-tentacles/automati...

    Whatever script you run from Octopus, you can try running it locally on the Tentacle and see what happens, but you would need to log in with the same user.

    I hope this helps! Let me know how you go and if you have any further questions.

    Kind regards,

    Kenny

  6. 6 Posted by Nishant Kumar on 09 Nov, 2017 05:46 AM

    Nishant Kumar's Avatar

    Hi Kenny,

    Even I am passing the arguments:
    msiexec.exe /i 'C:\Installs\XYx.msi'
    INSTALLFOLDER=\"E:\\inetpub\\wwwroot\\XYX\\\" CLIENTSITEID=XYX /log
    'C:\Installs\temp.txt' /quiet.

    Issue is that when this command is run locally on the machine via PS: it
    executes fines however when invoked thru octopus it hangs.

  7. Support Staff 7 Posted by Kenneth Bates on 10 Nov, 2017 04:50 AM

    Kenneth Bates's Avatar

    Hi Nishant,

    I'm sorry to hear you're still hitting this issue! Could you provide a verbose deployment log so I can look more in depth into why it's hanging? The process of adding the debugging variables and producing/exporting the resulting log are outlined in the following doc page.
    https://octopus.com/docs/how-to/how-to-turn-on-variable-logging-and...

    I look forward to hearing back!

    Kind regards,

    Kenny

  8. 8 Posted by Nishant Kumar on 10 Nov, 2017 05:49 AM

    Nishant Kumar's Avatar

    Hi Kenneth,

    I managed to solve it by changing the user under which tentacles run.
    Thanks a lot.

  9. Support Staff 9 Posted by Kenneth Bates on 12 Nov, 2017 11:18 PM

    Kenneth Bates's Avatar

    Hi Nishant,

    That's great to hear you got it solved! Thanks for letting me know, and don't hesitate to reach out if you have any further questions going forward. :)

    Best regards,

    Kenny

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