1
1
@ echo off
2
+ setlocal EnableDelayedExpansion
2
3
3
4
FLTMC > NUL 2 >& 1 || PowerShell Start-Process -FilePath '%0 ' -Verb RunAs > NUL 2 >& 1 && EXIT /b
4
5
FLTMC > NUL 2 >& 1 && GoTo OSC
@@ -30,29 +31,29 @@ if "%choice%"=="1" (
30
31
echo 6. Visual Studio Professional 2019
31
32
echo ===================================
32
33
33
- set /p choice = " Enter your choice: "
34
+ set /p vs_choice = Enter your choice:
34
35
35
- if " %choice% " == " 1 " (
36
+ if !vs_choice! == 1 (
36
37
echo Installing, please wait...
37
38
winget install Microsoft.VisualStudioCode --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
38
39
goto finish
39
- ) else if " %choice% " == " 2 " (
40
+ ) else if !vs_choice! == 2 (
40
41
echo Installing, please wait...
41
42
winget install Microsoft.VisualStudioCode.Insiders --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
42
43
goto finish
43
- ) else if " %choice% " == " 3 " (
44
+ ) else if !vs_choice! == 3 (
44
45
echo Installing, please wait...
45
46
winget install Microsoft.VisualStudio.2022.Community --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
46
47
goto finish
47
- ) else if " %choice% " == " 4 " (
48
+ ) else if !vs_choice! == 4 (
48
49
echo Installing, please wait...
49
50
winget install Microsoft.VisualStudio.2019.Community --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
50
51
goto finish
51
- ) else if " %choice% " == " 5 " (
52
+ ) else if !vs_choice! == 5 (
52
53
echo Installing, please wait...
53
54
winget install Microsoft.VisualStudio.2022.Professional --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
54
55
goto finish
55
- ) else if " %choice% " == " 6 " (
56
+ ) else if !vs_choice! == 6 (
56
57
echo Installing, please wait...
57
58
winget install Microsoft.VisualStudio.2019.Professional --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
58
59
goto finish
@@ -69,37 +70,37 @@ if "%choice%"=="1" (
69
70
echo 8. GoLand
70
71
echo ==================
71
72
72
- set /p choice = " Enter your choice: "
73
+ set /p jetbrains_choice = Enter your choice:
73
74
74
- if " %choice% " == " 1 " (
75
+ if !jetbrains_choice! == 1 (
75
76
echo Installing PyCharm Community, please wait...
76
77
winget install JetBrains.PyCharm.Community --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
77
78
goto finish
78
- ) else if " %choice% " == " 2 " (
79
+ ) else if !jetbrains_choice! == 2 (
79
80
echo Installing PyCharm Professional, please wait...
80
81
winget install JetBrains.PyCharm.Professional --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
81
82
goto finish
82
- ) else if " %choice% " == " 3 " (
83
+ ) else if !jetbrains_choice! == 3 (
83
84
echo Installing CLion, please wait...
84
85
winget install JetBrains.CLion --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
85
86
goto finish
86
- ) else if " %choice% " == " 4 " (
87
+ ) else if !jetbrains_choice! == 4 (
87
88
echo Installing WebStorm, please wait...
88
89
winget install Jetbrains.WebStorm --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
89
90
goto finish
90
- ) else if " %choice% " == " 5 " (
91
+ ) else if !jetbrains_choice! == 5 (
91
92
echo Installing IntelliJ IDEA, please wait...
92
93
winget install JetBrains.IntelliJIDEA.Ultimate --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
93
94
goto finish
94
- ) else if " %choice% " == " 6 " (
95
+ ) else if !jetbrains_choice! == 6 (
95
96
echo Installing IntelliJ IDEA Community, please wait...
96
97
winget install JetBrains.IntelliJIDEA.Community --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
97
98
goto finish
98
- ) else if " %choice% " == " 7 " (
99
+ ) else if !jetbrains_choice! == 7 (
99
100
echo Installing PhpStorm, please wait...
100
101
winget install JetBrains.WebStorm --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
101
102
goto finish
102
- ) else if " %choice% " == " 8 " (
103
+ ) else if !jetbrains_choice! == 8 (
103
104
echo Installing GoLand, please wait...
104
105
winget install JetBrains.GoLand --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
105
106
goto finish
@@ -111,17 +112,17 @@ if "%choice%"=="1" (
111
112
echo 3. Sublime Merge
112
113
echo ===================================
113
114
114
- set /p choice = " Enter your choice: "
115
+ set /p sublime_choice = Enter your choice:
115
116
116
- if " %choice% " == " 1 " (
117
+ if !sublime_choice! == 1 (
117
118
echo Installing, please wait...
118
119
winget install SublimeHQ.SublimeText.4 --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
119
120
goto finish
120
- ) else if " %choice% " == " 2 " (
121
+ ) else if !sublime_choice! == 2 (
121
122
echo Installing, please wait...
122
123
winget install SublimeHQ.SublimeText.3 --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
123
124
goto finish
124
- ) else if " %choice% " == " 3 " (
125
+ ) else if !sublime_choice! == 3 (
125
126
echo Installing, please wait...
126
127
winget install SublimeHQ.SublimeMerge --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
127
128
goto finish
0 commit comments