-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetupgit.bat
More file actions
36 lines (34 loc) · 2.03 KB
/
setupgit.bat
File metadata and controls
36 lines (34 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@echo off
echo Welcome to the setup of the Compact Shell!
set /p cmd=Select your language (it/en):
if /i "%cmd%"=="it" goto ITALIAN
if /i "%cmd%"=="en" goto ENGLISH
:ITALIAN
echo Hai selezionato la lingua italiana.
echo.
echo Il programma clonera ora il repository GitHub del Compact Shell. Attendere prego...
git clone https://github.com/Andrex189234/Compact-Shell.git C:\Users\%USERNAME%\Documents\Starting
cd C:\Users\%USERNAME%\Documents\Starting
echo.
echo Il programma creerà ora un collegamento sul desktop. Attendere prego...
copy "C:\Users\%USERNAME%\Documents\Starting\Italian.bat" "%USERPROFILE%\Desktop\Compact Shell - Italian.bat"
echo.
echo L'utente predefinito e "guest" e la password predefinita e "guest". Puoi modificare queste credenziali nel file "users.cfg" che si trova nella stessa directory di questo script di installazione.
echo Per creare un nuovo utente, aggiungi semplicemente una nuova riga nel file "users.cfg" con il formato "username=password". Ad esempio, per creare un utente chiamato "admin" con password "admin123", dovresti aggiungere la riga "admin=admin123" al file.
notepad "users.cfg"
pause
exit
:ENGLISH
echo You selected English.
echo The program will now clone the Compact Shell GitHub repository. Please wait...
git clone https://github.com/Andrex189234/Compact-Shell.git C:\Users\%USERNAME%\Documents\Starting
cd C:\Users\%USERNAME%\Documents\Starting
echo.
echo The program will now create a shortcut on your desktop. Please wait...
copy "C:\Users\%USERNAME%\Documents\Starting\English.bat" "%USERPROFILE%\Desktop\Compact Shell - English.bat"
echo.
echo The default user is "guest" and the default password is "guest". You can change these credentials in the "users.cfg" file located in the same directory as this setup script.
echo To create a new user, simply add a new line in the "users.cfg" file with the format "username=password". For example, to create a user named "admin" with the password "admin123", you would add the line "admin=admin123" to the file.
notepad "users.cfg"
pause
exit