diff --git a/DSCResources/cChocoInstaller/cChocoInstaller.psm1 b/DSCResources/cChocoInstaller/cChocoInstaller.psm1 index 661acb3..a6c89b2 100644 --- a/DSCResources/cChocoInstaller/cChocoInstaller.psm1 +++ b/DSCResources/cChocoInstaller/cChocoInstaller.psm1 @@ -183,12 +183,6 @@ Function Install-Chocolatey { ) Write-Verbose 'Install-Chocolatey' - #Create install directory if it does not exist - If(-not (Test-Path -Path $InstallDir)) { - Write-Verbose "[ChocoInstaller] Creating $InstallDir" - New-Item -Path $InstallDir -ItemType Directory - } - #Set permanent EnvironmentVariable Write-Verbose 'Setting ChocolateyInstall environment variables' [Environment]::SetEnvironmentVariable('ChocolateyInstall', $InstallDir, [EnvironmentVariableTarget]::Machine)