Skip to content

Commit

Permalink
removed not needed backup funktion
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoey2936 committed Jan 1, 2022
1 parent fcb341d commit ec02fad
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 76 deletions.
4 changes: 2 additions & 2 deletions Installer.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off

set ver=Version 5.1.5.2
set ver=Version 5.1.6

IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
Expand Down Expand Up @@ -51,7 +51,7 @@ CLS
echo.
echo MIT License
echo.
echo Copyright (c) 2021 SanCraft
echo Copyright (c) 2022 SanCraft
echo.
echo Permission is hereby granted, free of charge, to any person obtaining a copy
echo of this software and associated documentation files (the "Software"), to deal
Expand Down
83 changes: 74 additions & 9 deletions MC-Launcher.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off

set ver=Version 5.1.5.2
set ver=Version 5.1.6

:start
FOR /F "usebackq" %%f IN (`PowerShell -NoProfile -Command "Write-Host([Environment]::GetFolderPath('Desktop'))"`) DO (
Expand Down Expand Up @@ -48,7 +48,72 @@ if not exist "%appdata%\.minecraft" (
start %ComSpec% /C %0
EXIT /B
)


C:
cd %appdata%\.minecraft
if exist Backup.* (
del /S /Q Backup.*
)
if exist *.tar (
echo Your Profiles and the Backup need to be converted from a .tar file to a .zip file
echo Start now?
Pause
echo converting Profiles from .tar to .zip...
if exist Profil-1.tar (
rmdir /S /Q mods
tar xf Profil-1.tar
tar acf Profil-1.zip mods config\openloader
echo Profil-1 converted to a zip file!
)
if exist Profil-2.tar (
rmdir /S /Q mods
tar xf Profil-2.tar
tar acf Profil-2.zip mods config\openloader
echo Profil-2 converted to a zip file!
)
if exist Profil-3.tar (
rmdir /S /Q mods
tar xf Profil-3.tar
tar acf Profil-3.zip mods config\openloader
echo Profil-3 converted to a zip file!
)
if exist Profil-4.tar (
rmdir /S /Q mods
tar xf Profil-4.tar
tar acf Profil-4.zip mods config\openloader
echo Profil-4 converted to a zip file!
)
if exist Profil-5.tar (
rmdir /S /Q mods
tar xf Profil-5.tar
tar acf Profil-5.zip mods config\openloader
echo Profil-5 converted to a zip file!
)
if exist Profil-6.tar (
rmdir /S /Q mods
tar xf Profil-6.tar
tar acf Profil-6.zip mods config\openloader
echo Profil-6 converted to a zip file!
)
if exist Profil-7.tar (
rmdir /S /Q mods
tar xf Profil-7.tar
tar acf Profil-7.zip mods config\openloader
echo Profil-7 converted to a zip file!
)
if exist Profil-8.tar (
rmdir /S /Q mods
tar xf Profil-8.tar
tar acf Profil-8.zip mods config\openloader
echo Profil-8 converted to a zip file!
)
del /S /Q *.tar
echo Finished! Now starting the Mod-Installer...
Pause
)
move servers.dat_tmp servers.dat

C:
cd "%appdata%\.minecraft\"
CLS
Expand All @@ -60,14 +125,14 @@ echo MC-Launcher %ver%
echo.
CHOICE /C 123456789 /M " Auswahl: "
IF ERRORLEVEL 9 GOTO mcl
IF ERRORLEVEL 8 rmdir /S /Q mods & tar xf Profil-8.zip
IF ERRORLEVEL 7 rmdir /S /Q mods & tar xf Profil-7.zip
IF ERRORLEVEL 6 rmdir /S /Q mods & tar xf Profil-6.zip
IF ERRORLEVEL 5 rmdir /S /Q mods & tar xf Profil-5.zip
IF ERRORLEVEL 4 rmdir /S /Q mods & tar xf Profil-4.zip
IF ERRORLEVEL 3 rmdir /S /Q mods & tar xf Profil-3.zip
IF ERRORLEVEL 2 rmdir /S /Q mods & tar xf Profil-2.zip
IF ERRORLEVEL 1 rmdir /S /Q mods & tar xf Profil-1.zip
IF ERRORLEVEL 8 rmdir /S /Q mods & rmdir /S /Q config\openloader & tar xf Profil-8.zip
IF ERRORLEVEL 7 rmdir /S /Q mods & rmdir /S /Q config\openloader & tar xf Profil-7.zip
IF ERRORLEVEL 6 rmdir /S /Q mods & rmdir /S /Q config\openloader & tar xf Profil-6.zip
IF ERRORLEVEL 5 rmdir /S /Q mods & rmdir /S /Q config\openloader & tar xf Profil-5.zip
IF ERRORLEVEL 4 rmdir /S /Q mods & rmdir /S /Q config\openloader & tar xf Profil-4.zip
IF ERRORLEVEL 3 rmdir /S /Q mods & rmdir /S /Q config\openloader & tar xf Profil-3.zip
IF ERRORLEVEL 2 rmdir /S /Q mods & rmdir /S /Q config\openloader & tar xf Profil-2.zip
IF ERRORLEVEL 1 rmdir /S /Q mods & rmdir /S /Q config\openloader & tar xf Profil-1.zip
TASKKILL /T /F /IM MinecraftLauncher.exe
TASKKILL /T /F /IM Minecraft.exe
:mcl
Expand Down
Loading

0 comments on commit ec02fad

Please sign in to comment.