Skip to content

Commit

Permalink
Added cls to hide the techy stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
RoboXL authored Aug 29, 2023
1 parent a5333a9 commit 00af57b
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions Installer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,30 @@ REM Prompt to confirm installation
echo ----------------------------
echo UpdateX-Windows installation
echo ----------------------------
echo .
echo ""
echo Run this again to update UpdateX
echo.
echo ""
echo This script will install UpdateX-Windows to the following location:
echo -----------------------------
echo %destinationFolder%
echo -----------------------------
echo.
echo ""

set /p "choice=Do you want to continue with the installation? (Y/N): "
if /i "%choice%" neq "Y" exit

REM Download the repository zip file
echo.
echo ""
echo --------------------------------------
powershell.exe -Command "(New-Object System.Net.WebClient).DownloadFile('%repoUrl%', '%downloadPath%')"
echo --------------------------------------
echo .
echo ""

REM Extract the contents of the zip file
echo --------------------------------------
powershell.exe -Command "Expand-Archive -Path '%downloadPath%' -DestinationPath '%extractPath%' -Force"
echo --------------------------------------
echo .
echo ""

REM Create the destination folder if it doesn't exist
mkdir "%destinationFolder%" 2>nul
Expand All @@ -49,7 +49,7 @@ REM Move the scripts to the desired locations
echo --------------------------------------
move /Y "%scriptPath%" "%destinationPath%"
echo --------------------------------------
echo .
echo ""
echo --------------------------------------
move /Y "%updateScriptPath%" "%updateScriptDestinationPath%"
echo --------------------------------------
Expand All @@ -64,9 +64,11 @@ REM Clean up temporary files
del "%downloadPath%" /F /Q
rmdir "%extractPath%" /S /Q

echo.
cls

echo ""
echo UpdateX-Windows installation completed.
echo.
echo ""
pause


0 comments on commit 00af57b

Please sign in to comment.