split installers

This commit is contained in:
Mylloon 2024-07-02 12:15:42 +02:00
parent db298dabb7
commit b475e7363b
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
8 changed files with 195 additions and 92 deletions

View file

@ -0,0 +1,23 @@
@ECHO OFF
:: Start as administrator
fltmc >NUL 2>&1 || (
PowerShell Start -Verb RunAs '%0' 2>NUL || (
EXIT 1
)
EXIT 0
)
ECHO Collapse...
PowerShell -Command "" ^
"$repo = 'CollapseLauncher/Collapse';" ^
"$releases = \"https://api.github.com/repos/$repo/releases/latest\";" ^
"$link = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url[0];" ^
"$exe = 'collapse-installer.exe';" ^
"$outFile = Join-Path -Path $env:TEMP -ChildPath $exe;" ^
"Invoke-WebRequest -Uri $link -OutFile $outFile;" ^
"Start-Process -Wait $outFile '/SUPPRESSMSGBOXES', '/VERYSILENT';" ^
"Remove-Item -Force $outFile"
IF NOT "%1"=="yes" PAUSE
EXIT /B

View file

@ -0,0 +1,26 @@
@ECHO OFF
:: Start as administrator
fltmc >NUL 2>&1 || (
PowerShell Start -Verb RunAs '%0' 2>NUL || (
EXIT 1
)
EXIT 0
)
ECHO Cubiomes viewer...
MKDIR "%LOCALAPPDATA%\cubiomes-viewer" 2>NUL
PowerShell -Command "" ^
"$exe = 'cubiomes-viewer-static-win.exe';" ^
"$link = 'https://github.com/Cubitect/cubiomes-viewer/releases/latest/download/' + $exe;" ^
"$outfile = Join-Path -Path '%LOCALAPPDATA%\cubiomes-viewer' -ChildPath $exe;" ^
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\cubiomes-viewer.lnk');" ^
"$Shortcut.TargetPath = $outfile;" ^
"$Shortcut.Save()"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\cubiomes-viewer" /f /v DisplayName /t REG_SZ /d "cubiomes-viewer"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\cubiomes-viewer" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\cubiomes-viewer"
IF NOT "%1"=="yes" PAUSE
EXIT /B

View file

@ -0,0 +1,26 @@
@ECHO OFF
:: Start as administrator
fltmc >NUL 2>&1 || (
PowerShell Start -Verb RunAs '%0' 2>NUL || (
EXIT 1
)
EXIT 0
)
ECHO Deceive...
MKDIR "%LOCALAPPDATA%\Deceive" 2>NUL
PowerShell -Command "" ^
"$exe = 'Deceive.exe';" ^
"$link = 'https://github.com/molenzwiebel/Deceive/releases/latest/download/' + $exe;" ^
"$outfile = Join-Path -Path '%LOCALAPPDATA%\Deceive' -ChildPath $exe;" ^
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Deceive.lnk');" ^
"$Shortcut.TargetPath = $outfile;" ^
"$Shortcut.Save()"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Deceive" /f /v DisplayName /t REG_SZ /d "Deceive"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Deceive" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\Deceive"
IF NOT "%1"=="yes" PAUSE
EXIT /B

View file

@ -0,0 +1,30 @@
@ECHO OFF
:: Start as administrator
fltmc >NUL 2>&1 || (
PowerShell Start -Verb RunAs '%0' 2>NUL || (
EXIT 1
)
EXIT 0
)
ECHO DSR...
PowerShell -Command "" ^
"$releases = 'https://git.mylloon.fr/api/v1/repos/Anri/dsr/releases/latest';" ^
"$link = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url;" ^
"$archive = '%TEMP%\dsr.zip';" ^
"Invoke-WebRequest -Uri $link -OutFile $archive;" ^
"Remove-Item '%LOCALAPPDATA%\DSR' -Recurse -ErrorAction SilentlyContinue;" ^
"Expand-Archive -Path $archive -DestinationPath '%LOCALAPPDATA%\DSR' -Force;" ^
"Move-Item -Path '%LOCALAPPDATA%\DSR\dsr-win32-x64\*' -Destination '%LOCALAPPDATA%\DSR' -Force;" ^
"Remove-Item '%LOCALAPPDATA%\DSR\dsr-win32-x64';" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\DSR.lnk');" ^
"$Shortcut.TargetPath = '%LOCALAPPDATA%\DSR\dsr.exe';" ^
"$Shortcut.Save();" ^
"Remove-Item -Force $archive"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\dsr" /f /v DisplayName /t REG_SZ /d "DSR"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\dsr" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\DSR"
IF NOT "%1"=="yes" PAUSE
EXIT /B

View file

@ -0,0 +1,27 @@
@ECHO OFF
:: Start as administrator
fltmc >NUL 2>&1 || (
PowerShell Start -Verb RunAs '%0' 2>NUL || (
EXIT 1
)
EXIT 0
)
ECHO FiveM...
PowerShell -Command "" ^
"$baselink = 'https://runtime.fivem.net/client';" ^
"$exe = 'FiveM.exe';" ^
"$path = \"$env:LOCALAPPDATA\FiveM\";" ^
"$outFile = Join-Path -Path $path -ChildPath $exe;" ^
"Invoke-WebRequest -Uri \"https://runtime.fivem.net/client/$exe\" -OutFile $outFile;" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\FiveM.lnk');" ^
"$Shortcut.WorkingDirectory = \"$path\";" ^
"$Shortcut.TargetPath = $outFile;" ^
"$Shortcut.Save()"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\fivem" /f /v DisplayName /t REG_SZ /d "FiveM"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\fivem" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\FiveM"
IF NOT "%1"=="yes" PAUSE
EXIT /B

View file

@ -0,0 +1,28 @@
@ECHO OFF
:: Start as administrator
fltmc >NUL 2>&1 || (
PowerShell Start -Verb RunAs '%0' 2>NUL || (
EXIT 1
)
EXIT 0
)
ECHO LosslessCut...
PowerShell -Command "" ^
"$archive = 'LosslessCut-win-x64.7z';" ^
"$link = 'https://github.com/mifi/lossless-cut/releases/latest/download/' + $archive;" ^
"$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
"cd $env:TEMP;" ^
"& $env:ProgramFiles\7-Zip\7z.exe x $archive -o'%ProgramFiles%\LosslessCut' -y;" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\LosslessCut.lnk');" ^
"$Shortcut.TargetPath = '%ProgramFiles%\LosslessCut\LosslessCut.exe';" ^
"$Shortcut.Save();" ^
"Remove-Item -Force $archive"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\LosslessCut" /f /v DisplayName /t REG_SZ /d "LosslessCut"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\LosslessCut" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\LosslessCut"
IF NOT "%1"=="yes" PAUSE
EXIT /B

View file

@ -0,0 +1,21 @@
@ECHO OFF
:: Start as administrator
fltmc >NUL 2>&1 || (
PowerShell Start -Verb RunAs '%0' 2>NUL || (
EXIT 1
)
EXIT 0
)
ECHO NOWT...
PowerShell -Command "" ^
"$exe = 'NOWT-Installer.exe';" ^
"$link = 'https://github.com/pwall2222/NOWT/releases/latest/download/' + $exe;" ^
"$file = Join-Path -Path '%TEMP%' -ChildPath $exe;" ^
"Invoke-WebRequest -Uri $link -OutFile $file;" ^
"Start-Process -Wait $file '/SUPPRESSMSGBOXES', '/VERYSILENT';" ^
"Remove-Item -Force $file"
IF NOT "%1"=="yes" PAUSE
EXIT /B

View file

@ -242,42 +242,12 @@ CMD /c "%TEMP%\geek.bat" yes
:: === LosslessCut == :: === LosslessCut ==
ECHO LosslessCut... PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/losslesscut.bat -OutFile '%TEMP%\losslesscut.bat'"
PowerShell -Command "" ^ CMD /c "%TEMP%\losslesscut.bat" yes
"$archive = 'LosslessCut-win-x64.7z';" ^
"$link = 'https://github.com/mifi/lossless-cut/releases/latest/download/' + $archive;" ^
"$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
"cd $env:TEMP;" ^
"& $env:ProgramFiles\7-Zip\7z.exe x $archive -o'%ProgramFiles%\LosslessCut' -y;" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\LosslessCut.lnk');" ^
"$Shortcut.TargetPath = '%ProgramFiles%\LosslessCut\LosslessCut.exe';" ^
"$Shortcut.Save();" ^
"Remove-Item -Force $archive"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\LosslessCut" /f /v DisplayName /t REG_SZ /d "LosslessCut"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\LosslessCut" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\LosslessCut"
:: === DSR == :: === DSR ==
ECHO DSR... PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/dsr.bat -OutFile '%TEMP%\dsr.bat'"
PowerShell -Command "" ^ CMD /c "%TEMP%\dsr.bat" yes
"$releases = 'https://git.mylloon.fr/api/v1/repos/Anri/dsr/releases/latest';" ^
"$link = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url;" ^
"$archive = '%TEMP%\dsr.zip';" ^
"Invoke-WebRequest -Uri $link -OutFile $archive;" ^
"Remove-Item '%LOCALAPPDATA%\DSR' -Recurse -ErrorAction SilentlyContinue;" ^
"Expand-Archive -Path $archive -DestinationPath '%LOCALAPPDATA%\DSR' -Force;" ^
"Move-Item -Path '%LOCALAPPDATA%\DSR\dsr-win32-x64\*' -Destination '%LOCALAPPDATA%\DSR' -Force;" ^
"Remove-Item '%LOCALAPPDATA%\DSR\dsr-win32-x64';" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\DSR.lnk');" ^
"$Shortcut.TargetPath = '%LOCALAPPDATA%\DSR\dsr.exe';" ^
"$Shortcut.Save();" ^
"Remove-Item -Force $archive"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\dsr" /f /v DisplayName /t REG_SZ /d "DSR"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\dsr" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\DSR"
:: === Vencord == :: === Vencord ==
:: Use already downloaded script :: Use already downloaded script
@ -327,30 +297,13 @@ PowerShell -Command "" ^
:: === NOWT == :: === NOWT ==
ECHO NOWT... PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/nowt.bat -OutFile '%TEMP%\nowt.bat'"
PowerShell -Command "" ^ CMD /c "%TEMP%\nowt.bat" yes
"$exe = 'NOWT-Installer.exe';" ^
"$link = 'https://github.com/pwall2222/NOWT/releases/latest/download/' + $exe;" ^
"$file = Join-Path -Path '%TEMP%' -ChildPath $exe;" ^
"Invoke-WebRequest -Uri $link -OutFile $file;" ^
"Start-Process -Wait $file '/SUPPRESSMSGBOXES', '/VERYSILENT';" ^
"Remove-Item -Force $file"
:: === Deceive == :: === Deceive ==
ECHO Deceive... PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/deceive.bat -OutFile '%TEMP%\deceive.bat'"
MKDIR "%LOCALAPPDATA%\Deceive" 2>NUL CMD /c "%TEMP%\deceive.bat" yes
PowerShell -Command "" ^
"$exe = 'Deceive.exe';" ^
"$link = 'https://github.com/molenzwiebel/Deceive/releases/latest/download/' + $exe;" ^
"$outfile = Join-Path -Path '%LOCALAPPDATA%\Deceive' -ChildPath $exe;" ^
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Deceive.lnk');" ^
"$Shortcut.TargetPath = $outfile;" ^
"$Shortcut.Save()"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Deceive" /f /v DisplayName /t REG_SZ /d "Deceive"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\Deceive" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\Deceive"
:: === Xournal++ == :: === Xournal++ ==
@ -380,19 +333,8 @@ RENAME "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Prism Launcher.lnk" Mine
:: === Cubiomes viewer == :: === Cubiomes viewer ==
ECHO Cubiomes viewer... PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/cubiomesviewer.bat -OutFile '%TEMP%\cubiomesviewer.bat'"
MKDIR "%LOCALAPPDATA%\cubiomes-viewer" 2>NUL CMD /c "%TEMP%\cubiomesviewer.bat" yes
PowerShell -Command "" ^
"$exe = 'cubiomes-viewer-static-win.exe';" ^
"$link = 'https://github.com/Cubitect/cubiomes-viewer/releases/latest/download/' + $exe;" ^
"$outfile = Join-Path -Path '%LOCALAPPDATA%\cubiomes-viewer' -ChildPath $exe;" ^
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\cubiomes-viewer.lnk');" ^
"$Shortcut.TargetPath = $outfile;" ^
"$Shortcut.Save()"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\cubiomes-viewer" /f /v DisplayName /t REG_SZ /d "cubiomes-viewer"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\cubiomes-viewer" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\cubiomes-viewer"
:: === Firefox configuration == :: === Firefox configuration ==
@ -435,36 +377,16 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/WindowsAutoNightMode/
:: === miHoYo Games launcher == :: === miHoYo Games launcher ==
ECHO Collapse... PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/collapse.bat -OutFile '%TEMP%\collapse.bat'"
PowerShell -Command "" ^ CMD /c "%TEMP%\collapse.bat" yes
"$repo = 'CollapseLauncher/Collapse';" ^
"$releases = \"https://api.github.com/repos/$repo/releases/latest\";" ^
"$link = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url[0];" ^
"$exe = 'collapse-installer.exe';" ^
"$outFile = Join-Path -Path $env:TEMP -ChildPath $exe;" ^
"Invoke-WebRequest -Uri $link -OutFile $outFile;" ^
"Start-Process -Wait $outFile '/SUPPRESSMSGBOXES', '/VERYSILENT';" ^
"Remove-Item -Force $outFile"
:: Games shortcut :: Games shortcut
CMD /c "!local!\fix_mihoyo_shortcut.bat" yes CMD /c "!local!\fix_mihoyo_shortcut.bat" yes
:: === FiveM == :: === FiveM ==
ECHO FiveM... PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/fivem.bat -OutFile '%TEMP%\fivem.bat'"
PowerShell -Command "" ^ CMD /c "%TEMP%\fivem.bat" yes
"$baselink = 'https://runtime.fivem.net/client';" ^
"$exe = 'FiveM.exe';" ^
"$path = \"$env:LOCALAPPDATA\FiveM\";" ^
"$outFile = Join-Path -Path $path -ChildPath $exe;" ^
"Invoke-WebRequest -Uri \"https://runtime.fivem.net/client/$exe\" -OutFile $outFile;" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\FiveM.lnk');" ^
"$Shortcut.WorkingDirectory = \"$path\";" ^
"$Shortcut.TargetPath = $outFile;" ^
"$Shortcut.Save()"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\fivem" /f /v DisplayName /t REG_SZ /d "FiveM"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\fivem" /f /v InstallLocation /t REG_SZ /d "%LOCALAPPDATA%\FiveM"
:: === DaVinci Resolve == :: === DaVinci Resolve ==