Last active
October 4, 2024 08:35
-
-
Save RichardKanshen/ef67ac1a28ba1a12b7e468089acaa59f to your computer and use it in GitHub Desktop.
Just a simple code to get me started on a new Windows computer quickly :3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal enabledelayedexpansion | |
:: Create downloads directory | |
set "downloadDir=%USERPROFILE%\Downloads\SoftwareInstalls" | |
if not exist "%downloadDir%" mkdir "%downloadDir%" | |
:: Set working directory | |
cd /d "%downloadDir%" | |
echo Creating downloads directory: %downloadDir% | |
echo. | |
:: Function to download and install | |
:downloadAndInstall | |
set "name=%~1" | |
set "url=%~2" | |
set "filename=%~3" | |
set "installCmd=%~4" | |
echo Downloading %name%... | |
curl -L "%url%" -o "%filename%" | |
if %errorlevel% neq 0 ( | |
echo Failed to download %name% | |
goto :eof | |
) | |
echo Installing %name%... | |
%installCmd% | |
if %errorlevel% neq 0 ( | |
echo Failed to install %name% | |
goto :eof | |
) | |
echo %name% installation completed | |
echo. | |
goto :eof | |
:: Main installation sequence | |
echo Starting software installation... | |
echo. | |
:: UniGetUI | |
call :downloadAndInstall "UniGetUI" "https://github.com/marticliment/UniGetUI/releases/latest/download/UniGetUI.Installer.exe" "UniGetUI.Installer.exe" "UniGetUI.Installer.exe /VERYSILENT" | |
:: Arc Browser | |
call :downloadAndInstall "Arc Browser" "https://releases.arc.net/windows/ArcInstaller.exe" "ArcInstaller.exe" "ArcInstaller.exe --silent" | |
:: Zen Browser | |
call :downloadAndInstall "Zen Browser" "https://github.com/zen-browser/desktop/releases/latest/download/zen.installer.exe" "zen.installer.exe" "zen.installer.exe /S" | |
:: Free Download Manager | |
call :downloadAndInstall "Free Download Manager" "https://files2.freedownloadmanager.org/6/latest/fdm_x64_setup.exe" "fdm_x64_setup.exe" "fdm_x64_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART" | |
:: Discord | |
call :downloadAndInstall "Discord" "https://discord.com/api/downloads/distributions/app/installers/latest?channel=stable&platform=win&arch=x64" "DiscordSetup.exe" "DiscordSetup.exe -s" | |
:: Vencord Installer | |
call :downloadAndInstall "Vencord" "https://github.com/Vencord/Installer/releases/latest/download/VencordInstaller.exe" "VencordInstaller.exe" "VencordInstaller.exe --silent" | |
:: Spotify | |
call :downloadAndInstall "Spotify" "https://download.scdn.co/SpotifySetup.exe" "SpotifySetup.exe" "SpotifySetup.exe /SILENT" | |
:: Spicetify (PowerShell) | |
echo Installing Spicetify... | |
powershell -Command "iwr -useb https://raw.githubusercontent.com/spicetify/cli/main/install.ps1 | iex" | |
:: GitHub Desktop | |
call :downloadAndInstall "GitHub Desktop" "https://central.github.com/deployments/desktop/desktop/latest/win32" "GitHubDesktopSetup.exe" "GitHubDesktopSetup.exe -s" | |
:: Visual Studio Code | |
call :downloadAndInstall "Visual Studio Code" "https://code.visualstudio.com/sha/download?build=stable&os=win32-x64-user" "VSCodeSetup.exe" "VSCodeSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART" | |
:: JDK | |
call :downloadAndInstall "JDK" "https://download.oracle.com/java/23/latest/jdk-23_windows-x64_bin.exe" "jdk-23_windows-x64_bin.exe" "jdk-23_windows-x64_bin.exe /s" | |
:: Python (using winget for simplicity) | |
echo Installing Python... | |
winget install Python.Python.3.12 -h --accept-source-agreements --accept-package-agreements | |
echo. | |
echo Installation process completed! | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment