lib/mixlib/install.rb in mixlib-install-3.12.5 vs lib/mixlib/install.rb in mixlib-install-3.12.7

- old
+ new

@@ -182,10 +182,10 @@ # An update to most Windows versions > 2008r2 now sets the execution policy # to disallow unsigned powershell scripts. This changes it for just this # powershell session, which allows this to run even if the execution policy # is set higher. - Mixlib::ShellOut.new("powershell.exe -file #{File.join(d, "detect_platform.ps1")}", :env => { "PSExecutionPolicyPreference" => "Bypass" }).run_command + Mixlib::ShellOut.new("powershell.exe -NoProfile -file #{File.join(d, "detect_platform.ps1")}", :env => { "PSExecutionPolicyPreference" => "Bypass" }).run_command end else Mixlib::ShellOut.new(detect_platform_sh).run_command end