fix: update cleanupinstall to use userprofile instead of username

This commit is contained in:
fenopy
2024-11-09 21:07:24 -06:00
parent eed21ff56f
commit 0e092df064

View File

@@ -7,7 +7,7 @@ echo Killing adb.exe processes...
taskkill /F /FI "IMAGENAME eq adb.exe" /T taskkill /F /FI "IMAGENAME eq adb.exe" /T
set "folderPath=C:\Users\%username%\AppData\Local\Rookie.WTF\" set "folderPath=%userprofile%\AppData\Local\Rookie.WTF\"
echo Deleting contents of %folderPath%... echo Deleting contents of %folderPath%...
for /D %%i in ("%folderPath%\*") do ( for /D %%i in ("%folderPath%\*") do (
rd /s /q "%%i" rd /s /q "%%i"
@@ -15,7 +15,7 @@ for /D %%i in ("%folderPath%\*") do (
del /q "%folderPath%\*.*" del /q "%folderPath%\*.*"
set "folderPath=C:\Users\%username%\AppData\Local\Rookie.AndroidSideloader\" set "folderPath=%userprofile%\AppData\Local\Rookie.AndroidSideloader\"
echo Deleting contents of %folderPath%... echo Deleting contents of %folderPath%...
for /D %%i in ("%folderPath%\*") do ( for /D %%i in ("%folderPath%\*") do (
rd /s /q "%%i" rd /s /q "%%i"