@@ -630,6 +630,8 @@ Begin
630
630
3. Manually pin that wt.lnk shortcut to taskbar
631
631
#>
632
632
633
+ # # winget install --id=Microsoft.WindowsTerminal -e --source winget
634
+
633
635
$parentId = (gwmi win32_process - Filter " processid='$pid '" ).parentprocessid
634
636
if ((gwmi win32_process - Filter " processid='$parentId '" ).Name -eq ' WindowsTerminal.exe' )
635
637
{
@@ -640,7 +642,11 @@ Begin
640
642
Chocolatize ' microsoft-windows-terminal'
641
643
642
644
ConfigureTerminalSettings
643
- ConfigureTerminalShortcut
645
+
646
+ if (! $Win11 )
647
+ {
648
+ ConfigureTerminalShortcut
649
+ }
644
650
645
651
$reminder = ' Windows Terminal' , `
646
652
" 0. Pin C:\Tools\wt.lnk to Taskbar" , `
@@ -822,7 +828,7 @@ Begin
822
828
$root = & " ${env: ProgramFiles(x86)} \Microsoft Visual Studio\Installer\vswhere.exe" - latest - property installationPath
823
829
$installer = " $root \Common7\IDE\vsixinstaller.exe"
824
830
825
- # TODO: update these versions very now and then...
831
+ # TODO: update these versions every now and then...
826
832
827
833
InstallVsix $installer ' EditorGuidelines' ' PaulHarrington/vsextensions/EditorGuidelines/2.2.5/vspackage'
828
834
InstallVsix $installer ' InstallerProjects' ' VisualStudioClient/vsextensions/MicrosoftVisualStudio2017InstallerProjects/1.0.0/vspackage'
@@ -992,6 +998,8 @@ Process
992
998
return
993
999
}
994
1000
1001
+ $script :Win11 = [int ](get-itempropertyvalue - path $0 - name CurrentBuild) -ge 22000
1002
+
995
1003
if ($AccessKey -and $SecretKey )
996
1004
{
997
1005
# harmless to do this even before AWS is installed
@@ -1036,7 +1044,8 @@ Process
1036
1044
DisableCFG
1037
1045
1038
1046
InstallThings
1039
- InstallTerminal
1047
+
1048
+ if (! $Win11 ) { InstallTerminal }
1040
1049
1041
1050
InstallMacrium
1042
1051
@@ -1061,7 +1070,9 @@ Process
1061
1070
Chocolatize ' paint.net'
1062
1071
Chocolatize ' treesizefree'
1063
1072
Chocolatize ' vlc'
1064
- InstallDateInTray
1073
+
1074
+ if (! $Win11 ) { InstallDateInTray }
1075
+
1065
1076
InstallWiLMa
1066
1077
InstallWmiExplorer
1067
1078
}
0 commit comments