Skip to Main Content
Created by Michael van Kleeff
Created on May 19, 2021

Extract archive

New Action:

Expand-Archive

using different methods, for example through Powershell (would be much faster to have two required fields, instead of making the powershell script again and again for customers..)

Sample:"

"Expand-Archive -LiteralPath C:\Temp\Setup.zip -DestinationPath C:\Temp\AutoDesk-DesignReview"


But, as this has a shortcoming, it will fail on files which contain an umlaut in filenames (and some other characters), and it will not be able to run on older OS'es.

A second option would be to implement an other kind of expand method as well:


#Expand-Archive "C:\Liquit-Deploy\DBNSFIN 200000NL Client Setup.zip" -DestinationPath "C:\Liquit-Deploy\"

Add-Type -AssemblyName System.IO.Compression.FileSystem

$zipfile = 'C:\Liquit-Deploy\DBNSFIN 200000NL Client Setup.zip'

$outpath = 'C:\Liquit-Deploy\'

$enc = [System.Text.Encoding]::GetEncoding(29001) #29001, x-Europa, Europa

[System.IO.Compression.ZipFile]::ExtractToDirectory($zipfile, $outpath, $enc)

Product Application Workspace
  • Attach files