-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetup.bat
More file actions
29 lines (27 loc) · 1.73 KB
/
Setup.bat
File metadata and controls
29 lines (27 loc) · 1.73 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
@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 creerà ora un collegamento sul desktop. Attendere prego...
copy "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"
set /p launch=Do you want to launch the Compact Shell? (y/n):
if /i "%launch%"=="y" start "" "Italian.bat"
if /i "%launch%"=="n" exit
:ENGLISH
echo You selected English.
echo The program will now create a shortcut on your desktop. Please wait...
copy "English.bat" "%USERPROFILE%\Desktop\Compact Shell - English.bat"
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"
set /p launch=Do you want to launch the Compact Shell? (y/n):
if /i "%launch%"=="y" start "" "English.bat"
if /i "%launch%"=="n" exit