Hi @Hossein.Margani,
Unfortunately, I have some bad news.
My testing had similar results to your own; my install for Postman was hanging and, even though successful on the host machine, wouldn’t report back to Octopus to say the process had been completed.
I tried several methods to work around this but to no avail.
I then tried with an application other than Postman: notepadplusplus.
Installing Notepad++ version 8.1.9.2 to my system using Chocolatey:
I then ran the script within Octopus to upgrade Notepad++:
choco upgrade notepadplusplus -y
Success, but why? After further investigation, I found that other people were complaining about Postman hanging on install on specific versions; I wonder if this is the reason why we’re both experiencing this behaviour?
I’d recommend, for now, until Postman can release an upgrade that allows for installing in a non-interactive window, you can add a pin to the current postman version to exclude it from upgrade all
calls.
$choco = "$env:ChocolateyInstall/bin/choco.exe"
$postmanVersion = (.$choco list --local-only "postman")[1].Split(" ")[1]
.$choco pin add --name="postman" --version=$postmanVersion
.$choco upgrade all -y
.$choco pin remove --name="postman"
The above command should find whatever version the current system is running of Postman, add that version to a Chocolatey pin, upgrade all other applications and then remove the pin from Postman.
I hope this helps, and my apologies I couldn’t find a better solution for you; hopefully, the next version of Postman allows sleeker installs via Chocolatey.
Kind Regards,
Adam