Squirrel.Windows icon indicating copy to clipboard operation
Squirrel.Windows copied to clipboard

Can Squirrel run PowerShell scripts during updates / installation like Nuget does?

Open provkristian opened this issue 10 years ago • 3 comments

Can Squirrel run PowerShell scripts during updates / installation like Nuget does? Thanks.

https://docs.nuget.org/create/creating-and-publishing-a-package#automatically-running-powershell-scripts-during-package-installation-and-removal

provkristian avatar Aug 08 '16 15:08 provkristian

I just did an experiment with some really simple PowerShell scripts and it appears that this does not work. I created a tools folder like the Nuget documentation suggests and included an Init.ps1, Install.ps1, and Uninstall.ps1. So, I suppose that I answered my own question. :)

provkristian avatar Aug 10 '16 19:08 provkristian

No, they don't work, you should use Squirrel Events instead

anaisbetts avatar Aug 10 '16 19:08 anaisbetts

Okay, thanks.

provkristian avatar Aug 10 '16 19:08 provkristian