diff options
author | Don Schenck <don.schenck@gmail.com> | 2014-06-18 21:40:14 +0000 |
---|---|---|
committer | Matt Martz <matt@sivel.net> | 2014-06-19 14:25:28 -0500 |
commit | ef968efa8ba77905f4db54616f030f9ab9916f96 (patch) | |
tree | 60e56b052dba40296edd63563e2f39ed12ea4c2b /examples | |
parent | b0648fda0b0c8305c1d69dd6d00b028531f1ca1d (diff) | |
download | ansible-ef968efa8ba77905f4db54616f030f9ab9916f96.tar.gz |
Fixed bugs related to .NET Framework version. Version 3.5 or higher is now
assumed.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/scripts/UpgradeToPS3.ps1 | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/scripts/UpgradeToPS3.ps1 b/examples/scripts/UpgradeToPS3.ps1 index 5fe5dd5195..f6a303c951 100644 --- a/examples/scripts/UpgradeToPS3.ps1 +++ b/examples/scripts/UpgradeToPS3.ps1 @@ -32,13 +32,13 @@ if (!(test-path $powershellpath)) # .NET Framework 4.0 is necessary. -if (($PSVersionTable.CLRVersion.Major) -lt 4) -{ - $DownloadUrl = "http://download.microsoft.com/download/B/A/4/BA4A7E71-2906-4B2D-A0E1-80CF16844F5F/dotNetFx45_Full_x86_x64.exe" - $FileName = $DownLoadUrl.Split('/')[-1] - download-file $downloadurl "$powershellpath\$filename" - ."$powershellpath\$filename" /quiet /norestart -} +#if (($PSVersionTable.CLRVersion.Major) -lt 2) +#{ +# $DownloadUrl = "http://download.microsoft.com/download/B/A/4/BA4A7E71-2906-4B2D-A0E1-80CF16844F5F/dotNetFx45_Full_x86_x64.exe" +# $FileName = $DownLoadUrl.Split('/')[-1] +# download-file $downloadurl "$powershellpath\$filename" +# ."$powershellpath\$filename" /quiet /norestart +#} #You may need to reboot after the .NET install if so just run the script again. @@ -53,7 +53,7 @@ $osminor = [environment]::OSVersion.Version.Minor if ($osminor -eq 1) { - $DownloadUrl = "http://download.microsoft.com/download/3/D/6/3D61D262-8549-4769-A660-230B67E15B25/Windows6.1-KB2819745-x86-MultiPkg.msu" + $DownloadUrl = "http://download.microsoft.com/download/E/7/6/E76850B8-DA6E-4FF5-8CCE-A24FC513FD16/Windows6.1-KB2506143-x64.msu" } elseif ($osminor -eq 0) { |