-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(GH-1060) Add BeforeInstall parameter to Install-ChocolateyPackage.ps1 #1436
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it
Would it also be possible to have a A |
@Mistuke that already exists, and for exactly that purpose - it's called the By the way, Chocolatey is actually quite good at handling locked files in the package directory, we even have tests on this. You may see some warnings and error messages but it does successfully perform upgrades with locked package files. |
@ferventcoder Thanks! I didn't know this was added, I should update my chocolatey. Last time I tried it with locked files it seems to just hang on the file move. But this was a while ago. I'll try it again. |
222372e
to
b1de6ec
Compare
b1de6ec
to
8be88e0
Compare
…Package.ps1 - Add a ScriptBlock parameter `BeforeInstall` to Install-ChocolateyPackage.ps1. If supplied, the script block is called after download but before install.
8be88e0
to
4c3cf9c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@flcdrg thank you very much for taking the time to make this addition. This looks good to me, and once the CI builds are complete, I will get this merged in. |
|
||
Use this for starting an auxilary process such as AutoHotkey, so that any timeouts are not | ||
affected by the time to download. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note for consistency - we put parameter docs in the order they appear. This should later be moved ABOVE IgnoredArguments.
Closes #1060