diff --git a/windows/installers/collapse.bat b/windows/installers/collapse.bat new file mode 100644 index 0000000..f4ea97a --- /dev/null +++ b/windows/installers/collapse.bat @@ -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 diff --git a/windows/installers/cubiomesviewer.bat b/windows/installers/cubiomesviewer.bat new file mode 100644 index 0000000..066b169 --- /dev/null +++ b/windows/installers/cubiomesviewer.bat @@ -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 diff --git a/windows/installers/deceive.bat b/windows/installers/deceive.bat new file mode 100644 index 0000000..a6a1273 --- /dev/null +++ b/windows/installers/deceive.bat @@ -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 diff --git a/windows/installers/dsr.bat b/windows/installers/dsr.bat new file mode 100644 index 0000000..7567855 --- /dev/null +++ b/windows/installers/dsr.bat @@ -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 diff --git a/windows/installers/fivem.bat b/windows/installers/fivem.bat new file mode 100644 index 0000000..accfb90 --- /dev/null +++ b/windows/installers/fivem.bat @@ -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 diff --git a/windows/installers/losslesscut.bat b/windows/installers/losslesscut.bat new file mode 100644 index 0000000..e12e197 --- /dev/null +++ b/windows/installers/losslesscut.bat @@ -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 diff --git a/windows/installers/nowt.bat b/windows/installers/nowt.bat new file mode 100644 index 0000000..da91146 --- /dev/null +++ b/windows/installers/nowt.bat @@ -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 diff --git a/windows11.bat b/windows11.bat index f4fddd9..ac4e15e 100644 --- a/windows11.bat +++ b/windows11.bat @@ -242,42 +242,12 @@ CMD /c "%TEMP%\geek.bat" yes :: === LosslessCut == -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" - +PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/losslesscut.bat -OutFile '%TEMP%\losslesscut.bat'" +CMD /c "%TEMP%\losslesscut.bat" yes :: === DSR == -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" - +PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/dsr.bat -OutFile '%TEMP%\dsr.bat'" +CMD /c "%TEMP%\dsr.bat" yes :: === Vencord == :: Use already downloaded script @@ -327,30 +297,13 @@ PowerShell -Command "" ^ :: === NOWT == -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" +PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/nowt.bat -OutFile '%TEMP%\nowt.bat'" +CMD /c "%TEMP%\nowt.bat" yes :: === Deceive == -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" +PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/deceive.bat -OutFile '%TEMP%\deceive.bat'" +CMD /c "%TEMP%\deceive.bat" yes :: === Xournal++ == @@ -380,19 +333,8 @@ RENAME "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Prism Launcher.lnk" Mine :: === Cubiomes viewer == -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" +PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/cubiomesviewer.bat -OutFile '%TEMP%\cubiomesviewer.bat'" +CMD /c "%TEMP%\cubiomesviewer.bat" yes :: === Firefox configuration == @@ -435,36 +377,16 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/.config/WindowsAutoNightMode/ :: === miHoYo Games launcher == -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" +PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/collapse.bat -OutFile '%TEMP%\collapse.bat'" +CMD /c "%TEMP%\collapse.bat" yes :: Games shortcut CMD /c "!local!\fix_mihoyo_shortcut.bat" yes :: === FiveM == -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" +PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/installers/fivem.bat -OutFile '%TEMP%\fivem.bat'" +CMD /c "%TEMP%\fivem.bat" yes :: === DaVinci Resolve ==