Skip to content

Commit 4c57b64

Browse files
committed
1.0.2.2
- Fixed invalid choices in sub-menus like telegram desktop clients
1 parent 27f87a6 commit 4c57b64

File tree

6 files changed

+56
-42
lines changed

6 files changed

+56
-42
lines changed

Programs/browsers.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ if %choice%==2 (
6363
echo 1. Mozilla Firefox ESR *Extended Support Release*
6464
echo 2. Mozilla Firefox *Default*
6565
echo =================================================
66-
set /p browser_choice="Enter your choice: "
67-
if "%browser_choice%"=="1" (
66+
set /p choice="Enter your choice: "
67+
if %choice%==1 (
6868
echo Installing, please wait...
6969
winget install Mozilla.Firefox.ESR --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
7070
goto finish
71-
) else if "%browser_choice%"=="2" (
71+
) else if %choice%==2 (
7272
echo Installing, please wait...
7373
winget install Mozilla.Firefox --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
7474
goto finish

Programs/messengers.bat

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@echo off
2+
setlocal EnableDelayedExpansion
23

34
FLTMC >NUL 2>&1 || PowerShell Start-Process -FilePath '%0' -Verb RunAs >NUL 2>&1 && EXIT /b
45
FLTMC >NUL 2>&1 && GoTo OSC
@@ -21,72 +22,73 @@ echo ========================================
2122

2223
set /p choice="Enter your choice: "
2324

24-
if "%choice%"=="3" (
25+
if %choice%==3 (
2526
echo Installing, please wait...
2627
winget install Viber.Viber --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
2728
goto finish
2829
)
2930

30-
if "%choice%"=="4" (
31+
if %choice%==4 (
3132
echo Installing, please wait...
3233
winget install WhatsApp.WhatsApp --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
3334
goto finish
3435
)
3536

36-
if "%choice%"=="5" (
37+
if %choice%==5 (
3738
echo Installing, please wait...
3839
winget install Zoom.Zoom --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
3940
goto finish
4041
)
4142

42-
if "%choice%"=="6" (
43+
if %choice%==6 (
4344
echo Installing, please wait...
4445
winget install Element.Element --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
4546
goto finish
4647
)
4748

48-
if "%choice%"=="1" (
49+
if %choice%==1 (
4950
echo ================================
5051
echo 1. Telegram Desktop *Official*
5152
echo 2. 64Gram
5253
echo ================================
53-
set /p choice="Enter your choice: "
54+
set /P telegram_choice=Enter your choice:
5455

55-
if "%choice%"=="1" (
56+
if !telegram_choice!==1 (
5657
winget install Telegram.TelegramDesktop --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
5758
goto finish
58-
) else if "%choice%"=="2" (
59+
)
60+
if !telegram_choice!==2 (
5961
winget install 64gram.64gram --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
6062
goto finish
6163
)
6264
)
63-
if "%choice%"=="2" (
65+
if %choice%==2 (
6466
echo ========================
6567
echo 1. Discord *Official*
6668
echo 2. Discord PTB
6769
echo 3. Discord Canary
6870
echo 4. Discord Development
6971
echo 5. Vencord
7072
echo ========================
71-
set /p choice="Enter your choice: "
73+
set /p discord_choice=Enter your choice:
7274

73-
if "%choice%"=="1" (
75+
if !discord_choice!==1 (
7476
echo Installing, please wait...
7577
winget install Discord.Discord --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
7678
goto finish
77-
) else if "%choice%"=="2" (
79+
) else if !discord_choice!==2 (
7880
echo Installing, please wait...
7981
winget install Discord.Discord.PTB --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
8082
goto finish
81-
) else if "%choice%"=="3" (
83+
) else if !discord_choice!==3 (
8284
echo Installing, please wait...
8385
winget install Discord.Discord.Canary --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
8486
goto finish
85-
) else if "%choice%"=="4" (
87+
) else if !discord_choice!==4 (
8688
echo Installing, please wait...
8789
winget install Discord.Discord.Development --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
8890
goto finish
89-
) else if "%choice%"=="5" (
91+
) else if !discord_choice!==5 (
9092
echo Installing, please wait...
9193
winget install Vencord.Vencord --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
9294
goto finish

Programs/text.bat

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@echo off
2+
setlocal EnableDelayedExpansion
23

34
FLTMC >NUL 2>&1 || PowerShell Start-Process -FilePath '%0' -Verb RunAs >NUL 2>&1 && EXIT /b
45
FLTMC >NUL 2>&1 && GoTo OSC
@@ -30,29 +31,29 @@ if "%choice%"=="1" (
3031
echo 6. Visual Studio Professional 2019
3132
echo ===================================
3233

33-
set /p choice="Enter your choice: "
34+
set /p vs_choice=Enter your choice:
3435

35-
if "%choice%"=="1" (
36+
if !vs_choice!==1 (
3637
echo Installing, please wait...
3738
winget install Microsoft.VisualStudioCode --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
3839
goto finish
39-
) else if "%choice%"=="2" (
40+
) else if !vs_choice!==2 (
4041
echo Installing, please wait...
4142
winget install Microsoft.VisualStudioCode.Insiders --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
4243
goto finish
43-
) else if "%choice%"=="3" (
44+
) else if !vs_choice!==3 (
4445
echo Installing, please wait...
4546
winget install Microsoft.VisualStudio.2022.Community --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
4647
goto finish
47-
) else if "%choice%"=="4" (
48+
) else if !vs_choice!==4 (
4849
echo Installing, please wait...
4950
winget install Microsoft.VisualStudio.2019.Community --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
5051
goto finish
51-
) else if "%choice%"=="5" (
52+
) else if !vs_choice!==5 (
5253
echo Installing, please wait...
5354
winget install Microsoft.VisualStudio.2022.Professional --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
5455
goto finish
55-
) else if "%choice%"=="6" (
56+
) else if !vs_choice!==6 (
5657
echo Installing, please wait...
5758
winget install Microsoft.VisualStudio.2019.Professional --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
5859
goto finish
@@ -69,37 +70,37 @@ if "%choice%"=="1" (
6970
echo 8. GoLand
7071
echo ==================
7172

72-
set /p choice="Enter your choice: "
73+
set /p jetbrains_choice=Enter your choice:
7374

74-
if "%choice%"=="1" (
75+
if !jetbrains_choice!==1 (
7576
echo Installing PyCharm Community, please wait...
7677
winget install JetBrains.PyCharm.Community --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
7778
goto finish
78-
) else if "%choice%"=="2" (
79+
) else if !jetbrains_choice!==2 (
7980
echo Installing PyCharm Professional, please wait...
8081
winget install JetBrains.PyCharm.Professional --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
8182
goto finish
82-
) else if "%choice%"=="3" (
83+
) else if !jetbrains_choice!==3 (
8384
echo Installing CLion, please wait...
8485
winget install JetBrains.CLion --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
8586
goto finish
86-
) else if "%choice%"=="4" (
87+
) else if !jetbrains_choice!==4 (
8788
echo Installing WebStorm, please wait...
8889
winget install Jetbrains.WebStorm --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
8990
goto finish
90-
) else if "%choice%"=="5" (
91+
) else if !jetbrains_choice!==5 (
9192
echo Installing IntelliJ IDEA, please wait...
9293
winget install JetBrains.IntelliJIDEA.Ultimate --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
9394
goto finish
94-
) else if "%choice%"=="6" (
95+
) else if !jetbrains_choice!==6 (
9596
echo Installing IntelliJ IDEA Community, please wait...
9697
winget install JetBrains.IntelliJIDEA.Community --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
9798
goto finish
98-
) else if "%choice%"=="7" (
99+
) else if !jetbrains_choice!==7 (
99100
echo Installing PhpStorm, please wait...
100101
winget install JetBrains.WebStorm --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
101102
goto finish
102-
) else if "%choice%"=="8" (
103+
) else if !jetbrains_choice!==8 (
103104
echo Installing GoLand, please wait...
104105
winget install JetBrains.GoLand --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
105106
goto finish
@@ -111,17 +112,17 @@ if "%choice%"=="1" (
111112
echo 3. Sublime Merge
112113
echo ===================================
113114

114-
set /p choice ="Enter your choice: "
115+
set /p sublime_choice=Enter your choice:
115116

116-
if "%choice%"=="1" (
117+
if !sublime_choice!==1 (
117118
echo Installing, please wait...
118119
winget install SublimeHQ.SublimeText.4 --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
119120
goto finish
120-
) else if "%choice%"=="2" (
121+
) else if !sublime_choice!==2 (
121122
echo Installing, please wait...
122123
winget install SublimeHQ.SublimeText.3 --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
123124
goto finish
124-
) else if "%choice%"=="3" (
125+
) else if !sublime_choice!==3 (
125126
echo Installing, please wait...
126127
winget install SublimeHQ.SublimeMerge --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
127128
goto finish

Programs/torrent.bat

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ winget settings --enable InstallerHashOverride >NUL 2>&1
1212
echo Torrent Client
1313
echo ===========================
1414
echo 1. Qbittorrent
15-
echo 2.
1615
echo ===========================
1716

1817
set /p choice="Enter your choice: "
@@ -21,8 +20,6 @@ if "%choice%"=="1" (
2120
echo Installing, please wait...
2221
winget install qBittorrent.qBittorrent --silent --ignore-security-hash --accept-package-agreements --accept-source-agreements --force
2322
goto finish
24-
) else if "%choice%"=="2" (
25-
...
2623
)
2724

2825
:finish

UserFirstLogon.cmd

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@echo off
2+
3+
:: Batch file for completing the final stage of the installation
4+
5+
echo Please, wait...
6+
timeout /t 3 >NUL
7+
8+
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "SystemUsesLightTheme" /d 0 /t REG_DWORD /f >NUL 2>nul
9+
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "AppsUseLightTheme" /d 0 /t REG_DWORD /f >NUL 2>nul
10+
11+
taskkill /f /im explorer.exe >NUL 2>nul && start explorer.exe >NUL 2>nul
12+
exit

programs.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ pause
77
exit
88
:OSC
99

10-
title RebOS - Programs ^| Version 1.0.2.1
10+
title RebOS - Programs ^| Version 1.0.2.2
1111

1212
winget settings --enable InstallerHashOverride >NUL 2>&1
1313

14+
echo GitHub: https://github.com/RebTeam
15+
echo.
1416
echo Main Menu
1517
echo ========================================
1618
echo 1. Browsers

0 commit comments

Comments
 (0)