Skip to content

Commit

Permalink
Use %appdata% instead of %userprofile%\AppData\Roaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoey2936 committed Jun 30, 2021
1 parent 2ef7bc8 commit a29688a
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 60 deletions.
64 changes: 32 additions & 32 deletions Installer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ where java >nul 2>nul
exit /B
)

if not exist "%userprofile%\AppData\Roaming\.minecraft" (
if not exist "%appdata%\.minecraft" (

CLS
echo .minecraft Ordner nicht am blichen Pfad oder nicht vorhanden.
echo Unter "%userprofile%\AppData\Roaming\.minecraft"
echo Unter "%appdata%\.minecraft"
echo Installer wird beendet...
Pause
exit /B
Expand Down Expand Up @@ -50,23 +50,23 @@ IF ERRORLEVEL 1 GOTO is
:is
echo Instalation starten?
Pause
cd "%userprofile%\AppData\Roaming\.minecraft"
cd "%appdata%\.minecraft"
curl --output Mod-Installer.bat --url https://download.san0j.de/mods/Mod-Installer.bat
curl --output MC-Launcher.bat --url https://download.san0j.de/mods/MC-Launcher.bat
curl --output Installer-Uninstaller.bat --url https://download.san0j.de/mods/Installer.bat
curl --output Donwload.ico --url https://download.san0j.de/mods/Download.ico
curl --output Installer.ico --url https://download.san0j.de/mods/Installer.ico

mkdir "%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Mod-Installer"
mkdir "%appdata%\Microsoft\Windows\Start Menu\Programs\Mod-Installer"

CLS
set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs"

echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT%
echo sLinkFile = "%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Mod-Installer\MC-Launcher.lnk" >> %SCRIPT%
echo sLinkFile = "%appdata%\Microsoft\Windows\Start Menu\Programs\Mod-Installer\MC-Launcher.lnk" >> %SCRIPT%
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT%
echo oLink.TargetPath = "%windir%\system32\cmd.exe" >> %SCRIPT%
echo oLink.Arguments = "/C %userprofile%\AppData\Roaming\.minecraft\MC-Launcher.bat" >> %SCRIPT%
echo oLink.Arguments = "/C %appdata%\.minecraft\MC-Launcher.bat" >> %SCRIPT%
echo oLink.IconLocation = "%ProgramFiles(x86)%\Minecraft Launcher\MinecraftLauncher.exe" >> %SCRIPT%
echo oLink.Save >> %SCRIPT%

Expand All @@ -77,11 +77,11 @@ del %SCRIPT%
set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs"

echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT%
echo sLinkFile = "%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Mod-Installer\Mod-Installer.lnk" >> %SCRIPT%
echo sLinkFile = "%appdata%\Microsoft\Windows\Start Menu\Programs\Mod-Installer\Mod-Installer.lnk" >> %SCRIPT%
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT%
echo oLink.TargetPath = "%windir%\system32\cmd.exe" >> %SCRIPT%
echo oLink.Arguments = "/C %userprofile%\AppData\Roaming\.minecraft\Mod-Installer.bat" >> %SCRIPT%
echo oLink.IconLocation = "%userprofile%\AppData\Roaming\.minecraft\Donwload.ico" >> %SCRIPT%
echo oLink.Arguments = "/C %appdata%\.minecraft\Mod-Installer.bat" >> %SCRIPT%
echo oLink.IconLocation = "%appdata%\.minecraft\Donwload.ico" >> %SCRIPT%
echo oLink.Save >> %SCRIPT%

cscript /nologo %SCRIPT%
Expand All @@ -91,18 +91,18 @@ del %SCRIPT%
set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs"

echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT%
echo sLinkFile = "%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Mod-Installer\Installer-Uninstaller.lnk" >> %SCRIPT%
echo sLinkFile = "%appdata%\Microsoft\Windows\Start Menu\Programs\Mod-Installer\Installer-Uninstaller.lnk" >> %SCRIPT%
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT%
echo oLink.TargetPath = "%windir%\system32\cmd.exe" >> %SCRIPT%
echo oLink.Arguments = "/C %userprofile%\AppData\Roaming\.minecraft\Installer-Uninstaller.bat" >> %SCRIPT%
echo oLink.IconLocation = "%userprofile%\AppData\Roaming\.minecraft\Installer.ico" >> %SCRIPT%
echo oLink.Arguments = "/C %appdata%\.minecraft\Installer-Uninstaller.bat" >> %SCRIPT%
echo oLink.IconLocation = "%appdata%\.minecraft\Installer.ico" >> %SCRIPT%
echo oLink.Save >> %SCRIPT%

cscript /nologo %SCRIPT%
del %SCRIPT%

CLS
echo Scripte erfolgreich in "%userprofile%\AppData\Roaming\.minecraft" gespeichert!
echo Scripte erfolgreich in "%appdata%\.minecraft" gespeichert!
echo Desktopverkpfungen erstellen?
echo.
ECHO 1. Ja
Expand All @@ -119,7 +119,7 @@ echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT%
echo sLinkFile = "%USERPROFILE%\Desktop\MC-Launcher.lnk" >> %SCRIPT%
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT%
echo oLink.TargetPath = "%windir%\system32\cmd.exe" >> %SCRIPT%
echo oLink.Arguments = "/C %userprofile%\AppData\Roaming\.minecraft\MC-Launcher.bat" >> %SCRIPT%
echo oLink.Arguments = "/C %appdata%\.minecraft\MC-Launcher.bat" >> %SCRIPT%
echo oLink.IconLocation = "%ProgramFiles(x86)%\Minecraft Launcher\MinecraftLauncher.exe" >> %SCRIPT%
echo oLink.Save >> %SCRIPT%

Expand All @@ -134,8 +134,8 @@ echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT%
echo sLinkFile = "%USERPROFILE%\Desktop\Mod-Installer.lnk" >> %SCRIPT%
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT%
echo oLink.TargetPath = "%windir%\system32\cmd.exe" >> %SCRIPT%
echo oLink.Arguments = "/C %userprofile%\AppData\Roaming\.minecraft\Mod-Installer.bat" >> %SCRIPT%
echo oLink.IconLocation = "%userprofile%\AppData\Roaming\.minecraft\Donwload.ico" >> %SCRIPT%
echo oLink.Arguments = "/C %appdata%\.minecraft\Mod-Installer.bat" >> %SCRIPT%
echo oLink.IconLocation = "%appdata%\.minecraft\Donwload.ico" >> %SCRIPT%
echo oLink.Save >> %SCRIPT%

cscript /nologo %SCRIPT%
Expand Down Expand Up @@ -165,14 +165,14 @@ IF ERRORLEVEL 2 GOTO end
IF ERRORLEVEL 1 GOTO rmy

:rmy
del /S /Q %userprofile%\AppData\Roaming\.minecraft\Donwload.ico
del /S /Q %userprofile%\AppData\Roaming\.minecraft\Installer.ico
del /S /Q %userprofile%\AppData\Roaming\.minecraft\MC-Launcher.bat
del /S /Q %userprofile%\AppData\Roaming\.minecraft\Mod-Installer.bat
del /S /Q %appdata%\.minecraft\Donwload.ico
del /S /Q %appdata%\.minecraft\Installer.ico
del /S /Q %appdata%\.minecraft\MC-Launcher.bat
del /S /Q %appdata%\.minecraft\Mod-Installer.bat
del /S /Q %USERPROFILE%\Desktop\Mod-Installer.lnk
del /S /Q %USERPROFILE%\Desktop\MC-Launcher.lnk

rmdir /S /Q "%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Mod-Installer"
rmdir /S /Q "%appdata%\Microsoft\Windows\Start Menu\Programs\Mod-Installer"

CLS
ECHO.
Expand All @@ -192,16 +192,16 @@ IF ERRORLEVEL 1 GOTO rmpb


:rmpb
del /S /Q %userprofile%\AppData\Roaming\.minecraft\Profil-9.tar
del /S /Q %userprofile%\AppData\Roaming\.minecraft\Profil-8.tar
del /S /Q %userprofile%\AppData\Roaming\.minecraft\Profil-7.tar
del /S /Q %userprofile%\AppData\Roaming\.minecraft\Profil-6.tar
del /S /Q %userprofile%\AppData\Roaming\.minecraft\Profil-5.tar
del /S /Q %userprofile%\AppData\Roaming\.minecraft\Profil-4.tar
del /S /Q %userprofile%\AppData\Roaming\.minecraft\Profil-3.tar
del /S /Q %userprofile%\AppData\Roaming\.minecraft\Profil-2.tar
del /S /Q %userprofile%\AppData\Roaming\.minecraft\Profil-1.tar
del /S /Q %userprofile%\AppData\Roaming\.minecraft\Backup.tar
del /S /Q %appdata%\.minecraft\Profil-9.tar
del /S /Q %appdata%\.minecraft\Profil-8.tar
del /S /Q %appdata%\.minecraft\Profil-7.tar
del /S /Q %appdata%\.minecraft\Profil-6.tar
del /S /Q %appdata%\.minecraft\Profil-5.tar
del /S /Q %appdata%\.minecraft\Profil-4.tar
del /S /Q %appdata%\.minecraft\Profil-3.tar
del /S /Q %appdata%\.minecraft\Profil-2.tar
del /S /Q %appdata%\.minecraft\Profil-1.tar
del /S /Q %appdata%\.minecraft\Backup.tar
CLS
ECHO.
ECHO Fertig! Profile und Backups wurden gel”scht!
Expand All @@ -211,6 +211,6 @@ Pause
GOTO endr

:endr
del /S /Q %userprofile%\AppData\Roaming\.minecraft\Installer-Uninstaller.bat
del /S /Q %appdata%\.minecraft\Installer-Uninstaller.bat
del /S /Q %0
GOTO end
8 changes: 4 additions & 4 deletions MC-Launcher.bat
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@echo off
C:

if not exist "%userprofile%\AppData\Roaming\.minecraft" (
if not exist "%appdata%\.minecraft" (
curl --output %0 --url https://download.san0j.de/mods/MC-Launcher.bat

CLS
echo .minecraft Ordner nicht am blichen Pfad oder nicht vorhanden.
echo Unter "%userprofile%\AppData\Roaming\.minecraft"
echo Unter "%appdata%\.minecraft"
echo Starten von Minecraft nicht m”glich
echo MC-Launcher wird beendet...
Pause
Expand All @@ -27,7 +27,7 @@ EXIT /B
)

C:
cd "%userprofile%\AppData\Roaming\.minecraft\"
cd "%appdata%\.minecraft\"
tar cf Backup.tar mods config
rmdir /S /Q mods
CLS
Expand All @@ -47,7 +47,7 @@ IF ERRORLEVEL 1 tar xf Profil-1.tar

echo Mods geladen! Starten...
C:
cd %userprofile%\AppData\Roaming\.minecraft\
cd %appdata%\.minecraft\
if exist steam (

start steam://rungameid/13354743620561797120
Expand Down
48 changes: 24 additions & 24 deletions Mod-Installer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ endlocal
IF ERRORLEVEL 1 GOTO start
)

if not exist "%userprofile%\AppData\Roaming\.minecraft" (
if not exist "%appdata%\.minecraft" (
CLS
echo .minecraft Ordner nicht am blichen Pfad oder nicht vorhanden.
echo Unter "%userprofile%\AppData\Roaming\.minecraft"
echo Unter "%appdata%\.minecraft"
echo Ausfhrung von Mod Updates und Installationen nicht m”glich.
ECHO.
ECHO 1. Installer neustarten.
Expand Down Expand Up @@ -73,7 +73,7 @@ CLS
IF ERRORLEVEL 1 GOTO 1.16

:1.17
cd %userprofile%\AppData\Roaming\.minecraft
cd %appdata%\.minecraft
CLS
ECHO Only = Nur Grafikmods, Lite = Wenige leichte Mods, Full = Minimap, WTHIT, usw.
ECHO.
Expand Down Expand Up @@ -108,7 +108,7 @@ IF ERRORLEVEL 1 GOTO 1.17-optifine
:1.17-optifine
echo Instalation startet...
C:
cd %userprofile%\AppData\Roaming\.minecraft
cd %appdata%\.minecraft
tar cf Backup.tar mods
curl --output 1.17-optifine.jar --url https://download.san0j.de/mods/1.17-optifine.jar
echo Im n„chsten Schritt ”ffnet sich automatisch ein Fenster klicke dort nur auf "Install"!
Expand All @@ -128,7 +128,7 @@ IF ERRORLEVEL 1 GOTO start
:1.17-fabric
echo Instalation startet...
C:
cd %userprofile%\AppData\Roaming\.minecraft
cd %appdata%\.minecraft
tar cf Backup.tar mods
curl --output fabric.jar --url https://maven.fabricmc.net/net/fabricmc/fabric-installer/0.7.4/fabric-installer-0.7.4.jar
java -jar fabric.jar client -mcversion 1.17
Expand All @@ -146,7 +146,7 @@ IF ERRORLEVEL 1 GOTO start
:1.17-forge
echo Instalation startet...
C:
cd %userprofile%\AppData\Roaming\.minecraft
cd %appdata%\.minecraft
tar cf Backup.tar mods
curl --output forge.jar --url https://maven.minecraftforge.net/net/minecraftforge/forge/link
echo Im n„chsten Schritt ”ffnet sich automatisch ein Fenster klicke dort nur auf "OK"!
Expand All @@ -167,7 +167,7 @@ IF ERRORLEVEL 1 GOTO start
:1.17-Client-Only
echo Instalation startet...
C:
cd %userprofile%\AppData\Roaming\.minecraft
cd %appdata%\.minecraft
tar cf Backup.tar mods
curl --output fabric.jar --url https://maven.fabricmc.net/net/fabricmc/fabric-installer/0.7.4/fabric-installer-0.7.4.jar
java -jar fabric.jar client -mcversion 1.17
Expand All @@ -189,7 +189,7 @@ IF ERRORLEVEL 1 GOTO start
:1.17-Client-Mods-Lite
echo Instalation startet...
C:
cd %userprofile%\AppData\Roaming\.minecraft
cd %appdata%\.minecraft
tar cf Backup.tar mods
curl --output fabric.jar --url https://maven.fabricmc.net/net/fabricmc/fabric-installer/0.7.4/fabric-installer-0.7.4.jar
java -jar fabric.jar client -mcversion 1.17
Expand All @@ -211,7 +211,7 @@ IF ERRORLEVEL 1 GOTO start
:1.17-Client-Mods-Full
echo Instalation startet...
C:
cd %userprofile%\AppData\Roaming\.minecraft
cd %appdata%\.minecraft
tar cf Backup.tar mods
curl --output fabric.jar --url https://maven.fabricmc.net/net/fabricmc/fabric-installer/0.7.4/fabric-installer-0.7.4.jar
java -jar fabric.jar client -mcversion 1.17
Expand All @@ -232,7 +232,7 @@ IF ERRORLEVEL 1 GOTO start


:1.16
cd %userprofile%\AppData\Roaming\.minecraft
cd %appdata%\.minecraft
CLS
ECHO Client: FPS = Sodium, Shader = Optifine
ECHO Only = Nur Grafikmods, Lite = Wenige leichte Mods, Full = Minimap, WTHIT, usw.
Expand Down Expand Up @@ -276,7 +276,7 @@ IF ERRORLEVEL 1 GOTO 1.16-optifine
:1.16-optifine
echo Instalation startet...
C:
cd %userprofile%\AppData\Roaming\.minecraft
cd %appdata%\.minecraft
tar cf Backup.tar mods
curl --output 1.16-optifine.jar --url https://download.san0j.de/mods/1.16-optifine.jar
echo Im n„chsten Schritt ”ffnet sich automatisch ein Fenster klicke dort nur auf "Install"!
Expand All @@ -296,7 +296,7 @@ IF ERRORLEVEL 1 GOTO start
:1.16-fabric
echo Instalation startet...
C:
cd %userprofile%\AppData\Roaming\.minecraft
cd %appdata%\.minecraft
tar cf Backup.tar mods
curl --output fabric.jar --url https://maven.fabricmc.net/net/fabricmc/fabric-installer/0.7.4/fabric-installer-0.7.4.jar
java -jar fabric.jar client -mcversion 1.16.5
Expand All @@ -314,7 +314,7 @@ IF ERRORLEVEL 1 GOTO start
:1.16-forge
echo Instalation startet...
C:
cd %userprofile%\AppData\Roaming\.minecraft
cd %appdata%\.minecraft
tar cf Backup.tar mods
curl --output forge.jar --url https://maven.minecraftforge.net/net/minecraftforge/forge/1.16.5-36.1.24/forge-1.16.5-36.1.24-installer.jar
echo Im n„chsten Schritt ”ffnet sich automatisch ein Fenster klicke dort nur auf "OK"!
Expand All @@ -335,7 +335,7 @@ IF ERRORLEVEL 1 GOTO start
:1.16-Client-Only-FPS
echo Instalation startet...
C:
cd %userprofile%\AppData\Roaming\.minecraft
cd %appdata%\.minecraft
tar cf Backup.tar mods
curl --output fabric.jar --url https://maven.fabricmc.net/net/fabricmc/fabric-installer/0.7.4/fabric-installer-0.7.4.jar
java -jar fabric.jar client -mcversion 1.16.5
Expand All @@ -357,7 +357,7 @@ IF ERRORLEVEL 1 GOTO start
:1.16-Client-Mods-Lite-FPS
echo Instalation startet...
C:
cd %userprofile%\AppData\Roaming\.minecraft
cd %appdata%\.minecraft
tar cf Backup.tar mods
curl --output fabric.jar --url https://maven.fabricmc.net/net/fabricmc/fabric-installer/0.7.4/fabric-installer-0.7.4.jar
java -jar fabric.jar client -mcversion 1.16.5
Expand All @@ -379,7 +379,7 @@ IF ERRORLEVEL 1 GOTO start
:1.16-Client-Mods-Full-FPS
echo Instalation startet...
C:
cd %userprofile%\AppData\Roaming\.minecraft
cd %appdata%\.minecraft
tar cf Backup.tar mods
curl --output fabric.jar --url https://maven.fabricmc.net/net/fabricmc/fabric-installer/0.7.4/fabric-installer-0.7.4.jar
java -jar fabric.jar client -mcversion 1.16.5
Expand All @@ -401,7 +401,7 @@ IF ERRORLEVEL 1 GOTO start
:1.16-Client-Only-Shader
echo Instalation startet...
C:
cd %userprofile%\AppData\Roaming\.minecraft
cd %appdata%\.minecraft
tar cf Backup.tar mods
curl --output fabric.jar --url https://maven.fabricmc.net/net/fabricmc/fabric-installer/0.7.4/fabric-installer-0.7.4.jar
java -jar fabric.jar client -mcversion 1.16.5
Expand All @@ -423,7 +423,7 @@ IF ERRORLEVEL 1 GOTO start
:1.16-Client-Mods-Lite-Shader
echo Instalation startet...
C:
cd %userprofile%\AppData\Roaming\.minecraft
cd %appdata%\.minecraft
tar cf Backup.tar mods
curl --output fabric.jar --url https://maven.fabricmc.net/net/fabricmc/fabric-installer/0.7.4/fabric-installer-0.7.4.jar
java -jar fabric.jar client -mcversion 1.16.5
Expand All @@ -445,7 +445,7 @@ IF ERRORLEVEL 1 GOTO start
:1.16-Client-Mods-Full-Shader
echo Instalation startet...
C:
cd %userprofile%\AppData\Roaming\.minecraft
cd %appdata%\.minecraft
tar cf Backup.tar mods
curl --output fabric.jar --url https://maven.fabricmc.net/net/fabricmc/fabric-installer/0.7.4/fabric-installer-0.7.4.jar
java -jar fabric.jar client -mcversion 1.16.5
Expand All @@ -466,7 +466,7 @@ IF ERRORLEVEL 1 GOTO start


:tp
cd %userprofile%\AppData\Roaming\.minecraft
cd %appdata%\.minecraft
CLS
ECHO.
ECHO Texture Packs:
Expand All @@ -491,7 +491,7 @@ IF ERRORLEVEL 1 GOTO k
:k
echo Instalation startet...
C:
cd %userprofile%\AppData\Roaming\.minecraft\resourcepacks
cd %appdata%\.minecraft\resourcepacks
curl --output Krbis.zip --url https://download.san0j.de/mods/Krbis.zip

ECHO 1. Mod-Installer neustarten.
Expand All @@ -505,7 +505,7 @@ IF ERRORLEVEL 1 GOTO start
:dm
echo Instalation startet...
C:
cd %userprofile%\AppData\Roaming\.minecraft\resourcepacks
cd %appdata%\.minecraft\resourcepacks
curl --output Dark.zip --url https://download.san0j.de/mods/Dark-Mode.zip

ECHO 1. Mod-Installer neustarten.
Expand All @@ -519,7 +519,7 @@ IF ERRORLEVEL 1 GOTO start
:x
echo Instalation startet...
C:
cd %userprofile%\AppData\Roaming\.minecraft\resourcepacks
cd %appdata%\.minecraft\resourcepacks
curl --output Xray.zip --url https://download.san0j.de/mods/Xray.zip

ECHO 1. Mod-Installer neustarten.
Expand Down Expand Up @@ -548,7 +548,7 @@ IF ERRORLEVEL 1 GOTO start

:bp
C:
cd "%userprofile%\AppData\Roaming\.minecraft\"
cd "%appdata%\.minecraft\"
CLS
ECHO Stelle sicher, dass du im Minecraft Launcher unten Links den richtigen Modloader ausw„hlst!
ECHO.
Expand Down

0 comments on commit a29688a

Please sign in to comment.