Add desktop (#72)
* adding all varients of desktop configuration * adjusted the readme * making my life easier for testing * removing whitespace at the top * looks like readme has a typp * helps to execute script with the file extention :) * Update README.md updating back to master, going to rename Full so old link doesn't break * Rename dev_app_desktop_Full.ps1 to dev_app_desktop.ps1 * Rename dev_app_desktop.ps1 to dev_app.ps1 actually match now ... * Update README.md
This commit is contained in:
@@ -34,7 +34,10 @@ To run a recipe script, click a link in the table below from your target machine
|
|||||||
|
|
||||||
|Click link to run |Description |
|
|Click link to run |Description |
|
||||||
|---------|---------|
|
|---------|---------|
|
||||||
|<a href='http://boxstarter.org/package/url?https://raw.githubusercontent.com/Microsoft/windows-dev-box-setup-scripts/master/dev_app.ps1'>Desktop App</a> | Windows Desktop App Development (Visual Studio, Windows SDK) |
|
|<a href='http://boxstarter.org/package/url?https://raw.githubusercontent.com/Microsoft/windows-dev-box-setup-scripts/master/dev_app.ps1'>Full Desktop App</a> | Windows Desktop App Development (Visual Studio, Windows SDK, C++, UWP, .NET (WPF and Winforms)) |
|
||||||
|
|<a href='http://boxstarter.org/package/url?https://raw.githubusercontent.com/Microsoft/windows-dev-box-setup-scripts/master/dev_app_desktop_uwp.ps1'>UWP Desktop App</a> | Windows Desktop App Development (Visual Studio, Windows SDK, UWP) |
|
||||||
|
|<a href='http://boxstarter.org/package/url?https://raw.githubusercontent.com/Microsoft/windows-dev-box-setup-scripts/master/dev_app_desktop_.NET.ps1'>.NET Desktop App</a> | Windows Desktop App Development (Visual Studio, Windows SDK, .NET (WPF and Winforms)) |
|
||||||
|
|<a href='http://boxstarter.org/package/url?https://raw.githubusercontent.com/Microsoft/windows-dev-box-setup-scripts/master/dev_app_desktop_cplusplus.ps1'>C++ Desktop App</a> | Windows Desktop App Development (Visual Studio, Windows SDK, C++) |
|
||||||
|<a href='http://boxstarter.org/package/url?https://raw.githubusercontent.com/Microsoft/windows-dev-box-setup-scripts/master/dev_web.ps1'>Web</a> | Web (VS Code, WSL, Multiple Browsers) |
|
|<a href='http://boxstarter.org/package/url?https://raw.githubusercontent.com/Microsoft/windows-dev-box-setup-scripts/master/dev_web.ps1'>Web</a> | Web (VS Code, WSL, Multiple Browsers) |
|
||||||
|<a href='http://boxstarter.org/package/url?https://raw.githubusercontent.com/Microsoft/windows-dev-box-setup-scripts/master/dev_web_nodejs.ps1'>Web NodeJS</a> | Web Dev with NodeJS (Web + NodeJS LTS)¹ |
|
|<a href='http://boxstarter.org/package/url?https://raw.githubusercontent.com/Microsoft/windows-dev-box-setup-scripts/master/dev_web_nodejs.ps1'>Web NodeJS</a> | Web Dev with NodeJS (Web + NodeJS LTS)¹ |
|
||||||
|<a href='http://boxstarter.org/package/url?https://raw.githubusercontent.com/Microsoft/windows-dev-box-setup-scripts/master/dev_ml_windows.ps1'>Machine Learning Windows</a>| Machine Learning with only Windows native tools |
|
|<a href='http://boxstarter.org/package/url?https://raw.githubusercontent.com/Microsoft/windows-dev-box-setup-scripts/master/dev_ml_windows.ps1'>Machine Learning Windows</a>| Machine Learning with only Windows native tools |
|
||||||
|
|||||||
@@ -42,6 +42,9 @@ Update-SessionEnvironment #refreshing env due to Git install
|
|||||||
#--- UWP Workload and installing Windows Template Studio ---
|
#--- UWP Workload and installing Windows Template Studio ---
|
||||||
choco install -y visualstudio2017-workload-azure
|
choco install -y visualstudio2017-workload-azure
|
||||||
choco install -y visualstudio2017-workload-universal
|
choco install -y visualstudio2017-workload-universal
|
||||||
|
choco install -y visualstudio2017-workload-manageddesktop
|
||||||
|
choco install -y visualstudio2017-workload-nativedesktop
|
||||||
|
|
||||||
executeScript "WindowsTemplateStudio.ps1";
|
executeScript "WindowsTemplateStudio.ps1";
|
||||||
executeScript "GetUwpSamplesOffGithub.ps1";
|
executeScript "GetUwpSamplesOffGithub.ps1";
|
||||||
|
|
||||||
|
|||||||
49
dev_app_desktop_.NET.ps1
Normal file
49
dev_app_desktop_.NET.ps1
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
# Description: Boxstarter Script
|
||||||
|
# Author: Microsoft
|
||||||
|
# Common dev settings for desktop app development
|
||||||
|
|
||||||
|
Disable-UAC
|
||||||
|
|
||||||
|
# Get the base URI path from the ScriptToCall value
|
||||||
|
$bstrappackage = "-bootstrapPackage"
|
||||||
|
$helperUri = $Boxstarter['ScriptToCall']
|
||||||
|
$strpos = $helperUri.IndexOf($bstrappackage)
|
||||||
|
$helperUri = $helperUri.Substring($strpos + $bstrappackage.Length)
|
||||||
|
$helperUri = $helperUri.TrimStart("'", " ")
|
||||||
|
$helperUri = $helperUri.TrimEnd("'", " ")
|
||||||
|
$helperUri = $helperUri.Substring(0, $helperUri.LastIndexOf("/"))
|
||||||
|
$helperUri += "/scripts"
|
||||||
|
write-host "helper script base URI is $helperUri"
|
||||||
|
|
||||||
|
function executeScript {
|
||||||
|
Param ([string]$script)
|
||||||
|
write-host "executing $helperUri/$script ..."
|
||||||
|
iex ((new-object net.webclient).DownloadString("$helperUri/$script"))
|
||||||
|
}
|
||||||
|
|
||||||
|
#--- Setting up Windows ---
|
||||||
|
executeScript "SystemConfiguration.ps1";
|
||||||
|
executeScript "FileExplorerSettings.ps1";
|
||||||
|
executeScript "RemoveDefaultApps.ps1";
|
||||||
|
executeScript "CommonDevTools.ps1";
|
||||||
|
|
||||||
|
#--- Tools ---
|
||||||
|
#--- Installing VS and VS Code with Git
|
||||||
|
# See this for install args: https://chocolatey.org/packages/VisualStudio2017Community
|
||||||
|
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community
|
||||||
|
# https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio#list-of-workload-ids-and-component-ids
|
||||||
|
# visualstudio2017community
|
||||||
|
# visualstudio2017professional
|
||||||
|
# visualstudio2017enterprise
|
||||||
|
|
||||||
|
choco install visualstudio2017community -y --package-parameters "--add Microsoft.VisualStudio.Component.Git"
|
||||||
|
Update-SessionEnvironment #refreshing env due to Git install
|
||||||
|
|
||||||
|
#--- UWP Workload and installing Windows Template Studio ---
|
||||||
|
choco install -y visualstudio2017-workload-azure
|
||||||
|
choco install -y visualstudio2017-workload-manageddesktop
|
||||||
|
|
||||||
|
#--- reenabling critial items ---
|
||||||
|
Enable-UAC
|
||||||
|
Enable-MicrosoftUpdate
|
||||||
|
Install-WindowsUpdate -acceptEula
|
||||||
49
dev_app_desktop_cplusplus.ps1
Normal file
49
dev_app_desktop_cplusplus.ps1
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
# Description: Boxstarter Script
|
||||||
|
# Author: Microsoft
|
||||||
|
# Common dev settings for desktop app development
|
||||||
|
|
||||||
|
Disable-UAC
|
||||||
|
|
||||||
|
# Get the base URI path from the ScriptToCall value
|
||||||
|
$bstrappackage = "-bootstrapPackage"
|
||||||
|
$helperUri = $Boxstarter['ScriptToCall']
|
||||||
|
$strpos = $helperUri.IndexOf($bstrappackage)
|
||||||
|
$helperUri = $helperUri.Substring($strpos + $bstrappackage.Length)
|
||||||
|
$helperUri = $helperUri.TrimStart("'", " ")
|
||||||
|
$helperUri = $helperUri.TrimEnd("'", " ")
|
||||||
|
$helperUri = $helperUri.Substring(0, $helperUri.LastIndexOf("/"))
|
||||||
|
$helperUri += "/scripts"
|
||||||
|
write-host "helper script base URI is $helperUri"
|
||||||
|
|
||||||
|
function executeScript {
|
||||||
|
Param ([string]$script)
|
||||||
|
write-host "executing $helperUri/$script ..."
|
||||||
|
iex ((new-object net.webclient).DownloadString("$helperUri/$script"))
|
||||||
|
}
|
||||||
|
|
||||||
|
#--- Setting up Windows ---
|
||||||
|
executeScript "SystemConfiguration.ps1";
|
||||||
|
executeScript "FileExplorerSettings.ps1";
|
||||||
|
executeScript "RemoveDefaultApps.ps1";
|
||||||
|
executeScript "CommonDevTools.ps1";
|
||||||
|
|
||||||
|
#--- Tools ---
|
||||||
|
#--- Installing VS and VS Code with Git
|
||||||
|
# See this for install args: https://chocolatey.org/packages/VisualStudio2017Community
|
||||||
|
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community
|
||||||
|
# https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio#list-of-workload-ids-and-component-ids
|
||||||
|
# visualstudio2017community
|
||||||
|
# visualstudio2017professional
|
||||||
|
# visualstudio2017enterprise
|
||||||
|
|
||||||
|
choco install visualstudio2017community -y --package-parameters "--add Microsoft.VisualStudio.Component.Git"
|
||||||
|
Update-SessionEnvironment #refreshing env due to Git install
|
||||||
|
|
||||||
|
#--- UWP Workload and installing Windows Template Studio ---
|
||||||
|
choco install -y visualstudio2017-workload-azure
|
||||||
|
choco install -y visualstudio2017-workload-nativedesktop
|
||||||
|
|
||||||
|
#--- reenabling critial items ---
|
||||||
|
Enable-UAC
|
||||||
|
Enable-MicrosoftUpdate
|
||||||
|
Install-WindowsUpdate -acceptEula
|
||||||
51
dev_app_desktop_uwp.ps1
Normal file
51
dev_app_desktop_uwp.ps1
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
# Description: Boxstarter Script
|
||||||
|
# Author: Microsoft
|
||||||
|
# Common dev settings for desktop app development
|
||||||
|
|
||||||
|
Disable-UAC
|
||||||
|
|
||||||
|
# Get the base URI path from the ScriptToCall value
|
||||||
|
$bstrappackage = "-bootstrapPackage"
|
||||||
|
$helperUri = $Boxstarter['ScriptToCall']
|
||||||
|
$strpos = $helperUri.IndexOf($bstrappackage)
|
||||||
|
$helperUri = $helperUri.Substring($strpos + $bstrappackage.Length)
|
||||||
|
$helperUri = $helperUri.TrimStart("'", " ")
|
||||||
|
$helperUri = $helperUri.TrimEnd("'", " ")
|
||||||
|
$helperUri = $helperUri.Substring(0, $helperUri.LastIndexOf("/"))
|
||||||
|
$helperUri += "/scripts"
|
||||||
|
write-host "helper script base URI is $helperUri"
|
||||||
|
|
||||||
|
function executeScript {
|
||||||
|
Param ([string]$script)
|
||||||
|
write-host "executing $helperUri/$script ..."
|
||||||
|
iex ((new-object net.webclient).DownloadString("$helperUri/$script"))
|
||||||
|
}
|
||||||
|
|
||||||
|
#--- Setting up Windows ---
|
||||||
|
executeScript "SystemConfiguration.ps1";
|
||||||
|
executeScript "FileExplorerSettings.ps1";
|
||||||
|
executeScript "RemoveDefaultApps.ps1";
|
||||||
|
executeScript "CommonDevTools.ps1";
|
||||||
|
|
||||||
|
#--- Tools ---
|
||||||
|
#--- Installing VS and VS Code with Git
|
||||||
|
# See this for install args: https://chocolatey.org/packages/VisualStudio2017Community
|
||||||
|
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community
|
||||||
|
# https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio#list-of-workload-ids-and-component-ids
|
||||||
|
# visualstudio2017community
|
||||||
|
# visualstudio2017professional
|
||||||
|
# visualstudio2017enterprise
|
||||||
|
|
||||||
|
choco install visualstudio2017community -y --package-parameters "--add Microsoft.VisualStudio.Component.Git"
|
||||||
|
Update-SessionEnvironment #refreshing env due to Git install
|
||||||
|
|
||||||
|
#--- UWP Workload and installing Windows Template Studio ---
|
||||||
|
choco install -y visualstudio2017-workload-azure
|
||||||
|
choco install -y visualstudio2017-workload-universal
|
||||||
|
executeScript "WindowsTemplateStudio.ps1";
|
||||||
|
executeScript "GetUwpSamplesOffGithub.ps1";
|
||||||
|
|
||||||
|
#--- reenabling critial items ---
|
||||||
|
Enable-UAC
|
||||||
|
Enable-MicrosoftUpdate
|
||||||
|
Install-WindowsUpdate -acceptEula
|
||||||
Reference in New Issue
Block a user