From 15ac8e9141d3d5b629543f8bf636d379e2e18b84 Mon Sep 17 00:00:00 2001 From: Trond Hindenes Date: Fri, 9 Oct 2015 20:28:54 +0200 Subject: [PATCH] turned out strict msi code checking --- lib/ansible/modules/extras/windows/win_package.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/windows/win_package.ps1 b/lib/ansible/modules/extras/windows/win_package.ps1 index 6cdc6bf6e5c..993659f07b0 100644 --- a/lib/ansible/modules/extras/windows/win_package.ps1 +++ b/lib/ansible/modules/extras/windows/win_package.ps1 @@ -752,7 +752,7 @@ function Set-TargetResource if($Ensure -eq "Present") { # check if Msi package contains the ProductName and Code specified - + <# $pName,$pCode = Get-MsiProductEntry -Path $Path if ( @@ -762,6 +762,7 @@ function Set-TargetResource { Throw-InvalidNameOrIdException ($LocalizedData.InvalidNameOrId -f $Name,$identifyingNumber,$pName,$pCode) } + #> $startInfo.Arguments = '/i "{0}"' -f $Path }