From 7c99a60f2bda35914e21053e93d1d9412dd0e42a Mon Sep 17 00:00:00 2001 From: Andrea Scarpino Date: Thu, 11 Feb 2016 16:43:12 +0100 Subject: [PATCH] win_unzip: overwrite any existing file --- windows/win_unzip.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/windows/win_unzip.ps1 b/windows/win_unzip.ps1 index 0e5485dddb9..f547c0081fa 100644 --- a/windows/win_unzip.ps1 +++ b/windows/win_unzip.ps1 @@ -61,7 +61,8 @@ If ($ext -eq ".zip" -And $recurse -eq $false) { $shell = New-Object -ComObject Shell.Application $zipPkg = $shell.NameSpace($src) $destPath = $shell.NameSpace($dest) - $destPath.CopyHere($zipPkg.Items()) + # 20 means do not display any dialog (4) and overwrite any file (16) + $destPath.CopyHere($zipPkg.Items(), 20) $result.changed = $true } Catch {