-
-
Save dastanko/cffa62aa666ffd1163db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Exists-Drive { | |
param($driveletter) | |
(New-Object System.IO.DriveInfo($driveletter)).DriveType -ne 'NoRootDirectory' | |
} | |
function Create-Directories { | |
param($drive) | |
foreach($directory in $directories){ | |
Write-Host "$($drive)$($directory)" | |
mkdir "$($drive)$($directory)" | |
} | |
} | |
$directories = @("choco-packages", "devserver-image", "sources") | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
Write-Host "Preparing directory structure." | |
if (Exists-Drive 'D:') { | |
Create-Directories "D:\" | |
} else { | |
Create-Directories "C:\" | |
} | |
Write-Host "Installing software dependencies." | |
# Copy-Item "\\sw-trac-svn\Software\choco-packages" -Destination C:\choco-packages -Recurse -Verbose | |
# choco sources disable -name chocolatey | |
# choco install dotnet4.5.1 -source C:\choco-packages\DotNet4.5.1 | |
# choco install visualstudio2013ultimate -source C:\choco-packages\VisualStudio2013Ultimate | |
# choco install vmwareplayer -source C:\choco-packages\vmwareplayer | |
# choco install tortoisesvn -version 1.8.8 | |
# choco install git -version 1.9.5 | |
# choco install gitextensions -version 2.48.03 | |
# choco install resharper -version 9.0 | |
# choco install skype -version 6.22.81.105 | |
# choco install zim -version 0.61 | |
Copy-Item "\\sw-trac-svn\Software\devserver-image" -Destination C:\devserver-image -Recurse -Verbose | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment