Skip to content

Commit

Permalink
First commit (1.0 released)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ainyaku authored Apr 17, 2022
1 parent a4b11e8 commit 12bd3e4
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions !ChangeToBeatSaberFolder.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C:\Program Files (x86)\Steam\steamapps\common\Beat Saber
21 changes: 21 additions & 0 deletions !Install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@echo off
echo %cd%> %USERPROFILE%\AinyakuBeatSaberSongandModInstallerFileLocation.txt
set SCRIPT1="%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs"
echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT1%
echo sLinkFile = "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\SendTo\Beat Saber Mod Folder.lnk" >> %SCRIPT1%
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT1%
echo oLink.TargetPath = "%cd%\IgnoreThisM.bat" >> %SCRIPT1%
echo oLink.Description = "This file is required to use Ainyaku's Beat Saber Mod Installer. Deleting this file will make the installer unusable unless it is reinstalled by opening %cd%\!Install.bat" >> %SCRIPT1%
echo oLink.Save >> %SCRIPT1%
cscript /nologo %SCRIPT1%
del %SCRIPT1%
set SCRIPT2="%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs"
echo Set oWS = WScript.CreateObject("WScript.Shell") >> %SCRIPT2%
echo sLinkFile = "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\SendTo\Beat Saber Song Folder.lnk" >> %SCRIPT2%
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> %SCRIPT2%
echo oLink.TargetPath = "%cd%\IgnoreThisS.bat" >> %SCRIPT2%
echo oLink.Description = "This file is required to use Ainyaku's Beat Saber Song Installer. Deleting this file will make the installer unusable unless it is reinstalled by opening %cd%\!Install.bat" >> %SCRIPT2%
echo oLink.Save >> %SCRIPT2%
echo MsgBox "Ainyaku's Beat Saber Song and Mod Installer has been installed. If the file path to the folder containing these files is ever changed (like if the folder is moved or renamed), run !Install.bat again.",64,"Ainyaku's Beat Saber Song and Mod Installer" >> %SCRIPT2%
cscript /nologo %SCRIPT2%
del %SCRIPT2%
8 changes: 8 additions & 0 deletions !Uninstall.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@echo off
del "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\SendTo\Beat Saber Song Folder.lnk"
del "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\SendTo\Beat Saber Mod Folder.lnk"
del "%USERPROFILE%\AinyakuBeatSaberSongandModInstallerFileLocation.txt"
set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs"
echo MsgBox "Ainyaku's Beat Saber Song and Mod Installer has been uninstalled. Please report any problems at https://r.ainyaku.com/BSprob",64,"Ainyaku's Beat Saber Song and Mod Installer" >> %SCRIPT%
cscript /nologo %SCRIPT%
del %SCRIPT%
8 changes: 8 additions & 0 deletions IgnoreThisM.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@echo off
for /f "tokens=* delims=" %%x in ('type "%USERPROFILE%\AinyakuBeatSaberSongandModInstallerFileLocation.txt"') do set files=%%x
for /f "tokens=* delims=" %%x in ('type "%files%\!ChangeToBeatSaberFolder.txt"') do set location=%%x
powershell -command "Expand-Archive -Force '%1' '%location%'"
set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs"
echo MsgBox "Mod installed.",64,"Ainyaku's Beat Saber Song and Mod Installer" >> %SCRIPT%
cscript /nologo %SCRIPT%
del %SCRIPT%
8 changes: 8 additions & 0 deletions IgnoreThisS.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@echo off
for /f "tokens=* delims=" %%x in ('type "%USERPROFILE%\AinyakuBeatSaberSongandModInstallerFileLocation.txt"') do set files=%%x
for /f "tokens=* delims=" %%x in ('type "%files%\!ChangeToBeatSaberFolder.txt"') do set location=%%x
powershell -command "Expand-Archive -Force '%1' '%location%\Beat Saber_Data\CustomLevels\%~n1'"
set SCRIPT="%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs"
echo MsgBox "Song installed.",64,"Ainyaku's Beat Saber Song and Mod Installer" >> %SCRIPT%
cscript /nologo %SCRIPT%
del %SCRIPT%
1 change: 1 addition & 0 deletions Version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0

0 comments on commit 12bd3e4

Please sign in to comment.