Best way to unzip files in Deploy?
Micah Kilgore
Powershell or other?
0
Comments
If your targets have PowerShell 5 you can use Expand-Archive. https://stackoverflow.com/a/27771099
If not, you can build a function that calls .NET. https://stackoverflow.com/a/27768628
I have this in my PS Profile so that when I'm working with <v5 powershell systems I can easily zip/unzip stuff. Works pretty well:
Hey Colby,
I finally got back around to trying your method, and it does work, if the files don't exist. How do I tell it to overwrite.
Sorry, still new to powershell....
Which method? Expand-Archive or the Unzip function from StackOverflow?