Differences

This shows you the differences between the selected revisions of the page.

2016-10-12 2016-10-12
explicit value to switch parameter argument for compatibility with PowerShell 2 (martin) PowerShell 3.0 is needed to load the System.IO.Compression (martin)
Line 83: Line 83:
    else     else
    {     {
 +        if ($PSVersionTable.PSVersion.Major -lt 3)
 +        {
 +            throw "PowerShell 3.0 and newer is required. Please, upgrade PowerShell. Or try using the 7-zip mode instead."
 +        }
 +
        Add-Type -AssemblyName "System.IO.Compression"         Add-Type -AssemblyName "System.IO.Compression"
        Add-Type -AssemblyName "System.IO.Compression.FileSystem"         Add-Type -AssemblyName "System.IO.Compression.FileSystem"

Last modified: by martin