Skip to content

Commit

Permalink
Updates to use PS profile functions when running setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgwagner committed Sep 7, 2014
1 parent 2fef56e commit 6234f8f
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 57 deletions.
14 changes: 0 additions & 14 deletions Functions.psm1

This file was deleted.

42 changes: 7 additions & 35 deletions Install-DotNetDev.ps1
Original file line number Diff line number Diff line change
@@ -1,40 +1,12 @@
Import-Module .\Functions
$ScriptPath = Split-Path -Parent $MyInvocation.MyCommand.Definition

## Development Tools - .NET
& "$ScriptPath\PowerShellProfile\Microsoft.PowerShell_profile.ps1"

cinst DotNet4.0
cinst DotNet4.5
chocolatey install VisualStudio2013Professional -InstallArguments "/Features:'WebTools'"

## Should figure out if I want the "whole" VS or just the express edition
## cinst VisualStudio2013ExpressWeb
cinst VisualStudio2013Professional -InstallArguments "WebTools"
chocolatey install SQLManagementStudio -source webpi

## WebPI is clutch for installing other tooling
cinst webpi
cinst webpicommandline
chocolatey install IIS-WebServerRole -source windowsfeatures
chocolatey install IIS-ASPNET45 -source windowsfeatures

## Install SQL Server tooling
cinst SQLManagementStudio -source webpi
cinst SQLExpressTools -source webpi

## IIS Configuration

cinst IIS-WebServerRole -source windowsfeatures

cinst ASPNET -source webpi
cinst ASPNET_REGIIS -source webpi
cinst DefaultDocument -source webpi
cinst DynamicContentCompression -source webpi
cinst HTTPRedirection -source webpi
cinst IIS7_ExtensionLessURLs -source webpi
cinst IISExpress -source webpi
cinst IISExpress_7_5 -source webpi
cinst IISManagementConsole -source webpi
cinst ISAPIExtensions -source webpi
cinst ISAPIFilters -source webpi
cinst NETExtensibility -source webpi
cinst RequestFiltering -source webpi
cinst StaticContent -source webpi
cinst StaticContentCompression -source webpi
cinst UrlRewrite2 -source webpi
cinst WindowsAuthentication -source webpi
chocolatey install webpi
6 changes: 3 additions & 3 deletions Install-Git.ps1
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Import-Module .\Functions
$ScriptPath = Split-Path -Parent $MyInvocation.MyCommand.Definition

& "$ScriptPath\PowerShellProfile\Microsoft.PowerShell_profile.ps1"

## Development Tools - Git

cinst githubforwindows

cinst TortoiseGit

cinst poshgit

## Create a new PowerShell Profile
if (!(test-path $profile))
{
Expand Down
7 changes: 5 additions & 2 deletions Install-Plex.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Import-Module .\Functions
$url = "http://ninite.com/plex/ninite.exe"
$file = "plex.exe"

DownloadAndRun "http://ninite.com/plex/ninite.exe" "plex.exe"
(New-Object net.webclient).DownloadFile($url, $file)

(New-Object -com shell.application).shellExecute($file)
4 changes: 3 additions & 1 deletion Install-PyDev.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Import-Module .\Functions
$ScriptPath = Split-Path -Parent $MyInvocation.MyCommand.Definition

& "$ScriptPath\PowerShellProfile\Microsoft.PowerShell_profile.ps1"

## Development Tools - Python

Expand Down
4 changes: 3 additions & 1 deletion Install-RubyDev.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Import-Module .\Functions
$ScriptPath = Split-Path -Parent $MyInvocation.MyCommand.Definition

& "$ScriptPath\PowerShellProfile\Microsoft.PowerShell_profile.ps1"

## Development Tools - Ruby

Expand Down
11 changes: 10 additions & 1 deletion PowerShellProfile/Microsoft.PowerShell_profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,13 @@ function Load-Assembly($assembly)
{
[System.Reflection.Assembly]::LoadWithPartialName("$assembly")
}
}
}

function DownloadAndRun($url, $file)
{
(New-Object net.webclient).DownloadFile($url, $file)

(New-Object -com shell.application).shellExecute($file)
}

Install-Chocolatey

0 comments on commit 6234f8f

Please sign in to comment.