Skip to content

How to create a package with dependencies that require reboots #2082

Answered by ferventcoder
Grobi2010 asked this question in General
Discussion options

You must be logged in to vote

Chocolatey and Reboots

Chocolatey itself as a package manager will never perform a reboot - it's simply not in its purview to do that. However, it will tell you that you need to reboot, and with Chocolatey v0.10.12+ you can even set a feature flag for Chocolatey to stop execution if a needed reboot is detected (more on that in next section).

There are other tools that do infrastructure / configuration management where it would be in the purview of those tools to perform reboots. In those cases, those tools could perform reboots when needed.

Exit codes / stop on need for reboot

One thing you can do that will help with locally running Chocolatey and integrations is have Chocolatey stop with…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ferventcoder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants