Skip to content

Commit d41a2c1

Browse files
crutkasyodurr
authored andcommitted
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
1 parent 79bbe5b commit d41a2c1

File tree

5 files changed

+207
-52
lines changed

5 files changed

+207
-52
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ To run a recipe script, click a link in the table below from your target machine
3434

3535
|Click link to run |Description |
3636
|---------|---------|
37-
|<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) |
37+
|<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)) |
38+
|<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) |
39+
|<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)) |
40+
|<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++) |
3841
|<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) |
3942
|<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)¹ |
4043
|<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 |

dev_app.ps1

Lines changed: 54 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,54 @@
1-
# Description: Boxstarter Script
2-
# Author: Microsoft
3-
# Common dev settings for desktop app development
4-
5-
Disable-UAC
6-
7-
# Get the base URI path from the ScriptToCall value
8-
$bstrappackage = "-bootstrapPackage"
9-
$helperUri = $Boxstarter['ScriptToCall']
10-
$strpos = $helperUri.IndexOf($bstrappackage)
11-
$helperUri = $helperUri.Substring($strpos + $bstrappackage.Length)
12-
$helperUri = $helperUri.TrimStart("'", " ")
13-
$helperUri = $helperUri.TrimEnd("'", " ")
14-
$helperUri = $helperUri.Substring(0, $helperUri.LastIndexOf("/"))
15-
$helperUri += "/scripts"
16-
write-host "helper script base URI is $helperUri"
17-
18-
function executeScript {
19-
Param ([string]$script)
20-
write-host "executing $helperUri/$script ..."
21-
iex ((new-object net.webclient).DownloadString("$helperUri/$script"))
22-
}
23-
24-
#--- Setting up Windows ---
25-
executeScript "SystemConfiguration.ps1";
26-
executeScript "FileExplorerSettings.ps1";
27-
executeScript "RemoveDefaultApps.ps1";
28-
executeScript "CommonDevTools.ps1";
29-
30-
#--- Tools ---
31-
#--- Installing VS and VS Code with Git
32-
# See this for install args: https://chocolatey.org/packages/VisualStudio2017Community
33-
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community
34-
# https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio#list-of-workload-ids-and-component-ids
35-
# visualstudio2017community
36-
# visualstudio2017professional
37-
# visualstudio2017enterprise
38-
39-
choco install visualstudio2017community -y --package-parameters "--add Microsoft.VisualStudio.Component.Git"
40-
Update-SessionEnvironment #refreshing env due to Git install
41-
42-
#--- UWP Workload and installing Windows Template Studio ---
43-
choco install -y visualstudio2017-workload-azure
44-
choco install -y visualstudio2017-workload-universal
45-
executeScript "WindowsTemplateStudio.ps1";
46-
executeScript "GetUwpSamplesOffGithub.ps1";
47-
48-
#--- reenabling critial items ---
49-
Enable-UAC
50-
Enable-MicrosoftUpdate
51-
Install-WindowsUpdate -acceptEula
1+
# Description: Boxstarter Script
2+
# Author: Microsoft
3+
# Common dev settings for desktop app development
4+
5+
Disable-UAC
6+
7+
# Get the base URI path from the ScriptToCall value
8+
$bstrappackage = "-bootstrapPackage"
9+
$helperUri = $Boxstarter['ScriptToCall']
10+
$strpos = $helperUri.IndexOf($bstrappackage)
11+
$helperUri = $helperUri.Substring($strpos + $bstrappackage.Length)
12+
$helperUri = $helperUri.TrimStart("'", " ")
13+
$helperUri = $helperUri.TrimEnd("'", " ")
14+
$helperUri = $helperUri.Substring(0, $helperUri.LastIndexOf("/"))
15+
$helperUri += "/scripts"
16+
write-host "helper script base URI is $helperUri"
17+
18+
function executeScript {
19+
Param ([string]$script)
20+
write-host "executing $helperUri/$script ..."
21+
iex ((new-object net.webclient).DownloadString("$helperUri/$script"))
22+
}
23+
24+
#--- Setting up Windows ---
25+
executeScript "SystemConfiguration.ps1";
26+
executeScript "FileExplorerSettings.ps1";
27+
executeScript "RemoveDefaultApps.ps1";
28+
executeScript "CommonDevTools.ps1";
29+
30+
#--- Tools ---
31+
#--- Installing VS and VS Code with Git
32+
# See this for install args: https://chocolatey.org/packages/VisualStudio2017Community
33+
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community
34+
# https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio#list-of-workload-ids-and-component-ids
35+
# visualstudio2017community
36+
# visualstudio2017professional
37+
# visualstudio2017enterprise
38+
39+
choco install visualstudio2017community -y --package-parameters "--add Microsoft.VisualStudio.Component.Git"
40+
Update-SessionEnvironment #refreshing env due to Git install
41+
42+
#--- UWP Workload and installing Windows Template Studio ---
43+
choco install -y visualstudio2017-workload-azure
44+
choco install -y visualstudio2017-workload-universal
45+
choco install -y visualstudio2017-workload-manageddesktop
46+
choco install -y visualstudio2017-workload-nativedesktop
47+
48+
executeScript "WindowsTemplateStudio.ps1";
49+
executeScript "GetUwpSamplesOffGithub.ps1";
50+
51+
#--- reenabling critial items ---
52+
Enable-UAC
53+
Enable-MicrosoftUpdate
54+
Install-WindowsUpdate -acceptEula

dev_app_desktop_.NET.ps1

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Description: Boxstarter Script
2+
# Author: Microsoft
3+
# Common dev settings for desktop app development
4+
5+
Disable-UAC
6+
7+
# Get the base URI path from the ScriptToCall value
8+
$bstrappackage = "-bootstrapPackage"
9+
$helperUri = $Boxstarter['ScriptToCall']
10+
$strpos = $helperUri.IndexOf($bstrappackage)
11+
$helperUri = $helperUri.Substring($strpos + $bstrappackage.Length)
12+
$helperUri = $helperUri.TrimStart("'", " ")
13+
$helperUri = $helperUri.TrimEnd("'", " ")
14+
$helperUri = $helperUri.Substring(0, $helperUri.LastIndexOf("/"))
15+
$helperUri += "/scripts"
16+
write-host "helper script base URI is $helperUri"
17+
18+
function executeScript {
19+
Param ([string]$script)
20+
write-host "executing $helperUri/$script ..."
21+
iex ((new-object net.webclient).DownloadString("$helperUri/$script"))
22+
}
23+
24+
#--- Setting up Windows ---
25+
executeScript "SystemConfiguration.ps1";
26+
executeScript "FileExplorerSettings.ps1";
27+
executeScript "RemoveDefaultApps.ps1";
28+
executeScript "CommonDevTools.ps1";
29+
30+
#--- Tools ---
31+
#--- Installing VS and VS Code with Git
32+
# See this for install args: https://chocolatey.org/packages/VisualStudio2017Community
33+
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community
34+
# https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio#list-of-workload-ids-and-component-ids
35+
# visualstudio2017community
36+
# visualstudio2017professional
37+
# visualstudio2017enterprise
38+
39+
choco install visualstudio2017community -y --package-parameters "--add Microsoft.VisualStudio.Component.Git"
40+
Update-SessionEnvironment #refreshing env due to Git install
41+
42+
#--- UWP Workload and installing Windows Template Studio ---
43+
choco install -y visualstudio2017-workload-azure
44+
choco install -y visualstudio2017-workload-manageddesktop
45+
46+
#--- reenabling critial items ---
47+
Enable-UAC
48+
Enable-MicrosoftUpdate
49+
Install-WindowsUpdate -acceptEula

dev_app_desktop_cplusplus.ps1

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Description: Boxstarter Script
2+
# Author: Microsoft
3+
# Common dev settings for desktop app development
4+
5+
Disable-UAC
6+
7+
# Get the base URI path from the ScriptToCall value
8+
$bstrappackage = "-bootstrapPackage"
9+
$helperUri = $Boxstarter['ScriptToCall']
10+
$strpos = $helperUri.IndexOf($bstrappackage)
11+
$helperUri = $helperUri.Substring($strpos + $bstrappackage.Length)
12+
$helperUri = $helperUri.TrimStart("'", " ")
13+
$helperUri = $helperUri.TrimEnd("'", " ")
14+
$helperUri = $helperUri.Substring(0, $helperUri.LastIndexOf("/"))
15+
$helperUri += "/scripts"
16+
write-host "helper script base URI is $helperUri"
17+
18+
function executeScript {
19+
Param ([string]$script)
20+
write-host "executing $helperUri/$script ..."
21+
iex ((new-object net.webclient).DownloadString("$helperUri/$script"))
22+
}
23+
24+
#--- Setting up Windows ---
25+
executeScript "SystemConfiguration.ps1";
26+
executeScript "FileExplorerSettings.ps1";
27+
executeScript "RemoveDefaultApps.ps1";
28+
executeScript "CommonDevTools.ps1";
29+
30+
#--- Tools ---
31+
#--- Installing VS and VS Code with Git
32+
# See this for install args: https://chocolatey.org/packages/VisualStudio2017Community
33+
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community
34+
# https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio#list-of-workload-ids-and-component-ids
35+
# visualstudio2017community
36+
# visualstudio2017professional
37+
# visualstudio2017enterprise
38+
39+
choco install visualstudio2017community -y --package-parameters "--add Microsoft.VisualStudio.Component.Git"
40+
Update-SessionEnvironment #refreshing env due to Git install
41+
42+
#--- UWP Workload and installing Windows Template Studio ---
43+
choco install -y visualstudio2017-workload-azure
44+
choco install -y visualstudio2017-workload-nativedesktop
45+
46+
#--- reenabling critial items ---
47+
Enable-UAC
48+
Enable-MicrosoftUpdate
49+
Install-WindowsUpdate -acceptEula

dev_app_desktop_uwp.ps1

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Description: Boxstarter Script
2+
# Author: Microsoft
3+
# Common dev settings for desktop app development
4+
5+
Disable-UAC
6+
7+
# Get the base URI path from the ScriptToCall value
8+
$bstrappackage = "-bootstrapPackage"
9+
$helperUri = $Boxstarter['ScriptToCall']
10+
$strpos = $helperUri.IndexOf($bstrappackage)
11+
$helperUri = $helperUri.Substring($strpos + $bstrappackage.Length)
12+
$helperUri = $helperUri.TrimStart("'", " ")
13+
$helperUri = $helperUri.TrimEnd("'", " ")
14+
$helperUri = $helperUri.Substring(0, $helperUri.LastIndexOf("/"))
15+
$helperUri += "/scripts"
16+
write-host "helper script base URI is $helperUri"
17+
18+
function executeScript {
19+
Param ([string]$script)
20+
write-host "executing $helperUri/$script ..."
21+
iex ((new-object net.webclient).DownloadString("$helperUri/$script"))
22+
}
23+
24+
#--- Setting up Windows ---
25+
executeScript "SystemConfiguration.ps1";
26+
executeScript "FileExplorerSettings.ps1";
27+
executeScript "RemoveDefaultApps.ps1";
28+
executeScript "CommonDevTools.ps1";
29+
30+
#--- Tools ---
31+
#--- Installing VS and VS Code with Git
32+
# See this for install args: https://chocolatey.org/packages/VisualStudio2017Community
33+
# https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community
34+
# https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio#list-of-workload-ids-and-component-ids
35+
# visualstudio2017community
36+
# visualstudio2017professional
37+
# visualstudio2017enterprise
38+
39+
choco install visualstudio2017community -y --package-parameters "--add Microsoft.VisualStudio.Component.Git"
40+
Update-SessionEnvironment #refreshing env due to Git install
41+
42+
#--- UWP Workload and installing Windows Template Studio ---
43+
choco install -y visualstudio2017-workload-azure
44+
choco install -y visualstudio2017-workload-universal
45+
executeScript "WindowsTemplateStudio.ps1";
46+
executeScript "GetUwpSamplesOffGithub.ps1";
47+
48+
#--- reenabling critial items ---
49+
Enable-UAC
50+
Enable-MicrosoftUpdate
51+
Install-WindowsUpdate -acceptEula

0 commit comments

Comments
 (0)