Last active
March 22, 2017 06:10
-
-
Save patelcp/12af9e2d5929d7be98c7b3c333161828 to your computer and use it in GitHub Desktop.
Boxstarter Tests
This file contains hidden or 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
# Allow unattended reboots | |
$Boxstarter.RebootOk=$true | |
$Boxstarter.NoPassword=$false | |
$Boxstarter.AutoLogin=$true | |
choco install nodejs.install --limitoutput | |
refreshenv | |
npm install -g gulp-cli | |
npm install -g bower | |
npm install -g yo | |
npm install -g generator-helix |
This file contains hidden or 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
# Allow unattended reboots | |
$Boxstarter.RebootOk=$true | |
$Boxstarter.NoPassword=$false | |
$Boxstarter.AutoLogin=$true | |
function Install-ClickOnceApp { | |
param( | |
$ApplicationName, | |
$WebLauncherUrl | |
) | |
$edgeVersion = Get-AppxPackage -Name Microsoft.MicrosoftEdge | |
if ($edgeVersion) { | |
Start-Process microsoft-edge:$webLauncherUrl | |
} | |
else { | |
$IE=new-object -com internetexplorer.application | |
$IE.navigate2($webLauncherUrl) | |
$IE.visible=$true | |
} | |
} | |
$sitecoreToolsPath = "c:\Sitecore\tools" | |
if(-not (Test-Path $sitecoreToolsPath)) { | |
New-Item $sitecoreToolsPath -ItemType Directory | |
} | |
# Enable Internet Information Services Feature - will enable a bunch of things by default | |
choco install IIS-WebServerRole --source windowsfeatures --limitoutput | |
# Web Management Tools Features | |
choco install IIS-ManagementScriptingTools --source windowsfeatures --limitoutput | |
choco install IIS-IIS6ManagementCompatibility --source windowsfeatures --limitoutput # installs IIS Metbase | |
# Common Http Features | |
choco install IIS-HttpRedirect --source windowsfeatures --limitoutput | |
# .NET Framework 4.5/4.6 Advance Services | |
choco install NetFx4Extended-ASPNET45 --source windowsfeatures --limitoutput # installs ASP.NET 4.5/4.6 | |
# Application Development Features | |
choco install IIS-NetFxExtensibility45 --source windowsfeatures --limitoutput # installs .NET Extensibility 4.5/4.6 | |
choco install IIS-ISAPIFilter --source windowsfeatures --limitoutput # required by IIS-ASPNET45 | |
choco install IIS-ISAPIExtensions --source windowsfeatures --limitoutput # required by IIS-ASPNET45 | |
choco install IIS-ASPNET45 --source windowsfeatures --limitoutput # installs support for ASP.NET 4.5/4.6 | |
choco install IIS-ApplicationInit --source windowsfeatures --limitoutput | |
# Health And Diagnostics Features | |
choco install IIS-LoggingLibraries --source windowsfeatures --limitoutput # installs Logging Tools | |
choco install IIS-RequestMonitor --source windowsfeatures --limitoutput | |
choco install IIS-HttpTracing --source windowsfeatures --limitoutput | |
choco install IIS-CustomLogging --source windowsfeatures --limitoutput | |
# Performance Features | |
choco install IIS-HttpCompressionDynamic --source windowsfeatures --limitoutput | |
# Security Features | |
choco install IIS-BasicAuthentication --source windowsfeatures --limitoutput | |
Install-ChocolateyZipPackage -allowEmptyChecksumsSecure -PackageName "Sitecore Config Builder 1.4" ` | |
-Url "https://github.com/Sitecore/Sitecore-Config-Builder/releases/download/1.4.0.20/SCB.1.4.0.20.zip" ` | |
-UnzipLocation "$sitecoreToolsPath\ConfigBuilder" -checksum "a254e7571b2c488c973d2d3edb609bc8" | |
Install-ChocolateyZipPackage -allowEmptyChecksumsSecure -PackageName "Sitecore Log Analyzer" ` | |
-Url "https://marketplace.sitecore.net/services/~/media/A99BCECAD8B44DA8B2CB27FC0BC6DD05.ashx?data=SCLA%202.0.0%20rev.%20140603&itemId=420d8d66-cc7f-4b59-a936-16c18cac13da" ` | |
-UnzipLocation "$sitecoreToolsPath\LogAnalyzer" -checksum "f1a6ed38a86daa9ec247b0dd67611f7d" | |
Install-ClickOnceApp -ApplicationName "Sitecore Instance Manager" -WebLauncherUrl "http://dl.sitecore.net/updater/sim/SIM.Tool.application" | |
Install-ClickOnceApp -ApplicationName "Sitecore Diagnostics Toolset" -WebLauncherUrl "http://dl.sitecore.net/updater/sdt/Sitecore.DiagnosticsToolset.WinApp.application" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment