Last active
December 2, 2023 00:24
-
-
Save busybox11/caa6d15ad555314ee68cf00157bc1e93 to your computer and use it in GitHub Desktop.
Install Script
This file contains 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
$user_downloads_folder = (New-Object -ComObject Shell.Application).NameSpace('shell:Downloads').Self.Path | |
$user_backup_folder = "R:\Install_script" | |
Write-Output "Opening Chrome Installer" | |
Start-Process -FilePath "$user_backup_folder\ChromeSetup.exe" | |
Write-Output "Copying VSCode" | |
Copy-Item -Path "$user_backup_folder\VSCode" -Destination "$HOME\VSCode" -Recurse | |
Write-Output "Downloading and installing Discord" | |
$discord_canary_url = "https://discordapp.com/api/download/canary?platform=win" | |
$discord_canary_output = "$user_downloads_folder\DiscordCanary.exe" | |
$download_start_time = Get-Date | |
$wc = New-Object System.Net.WebClient | |
# Start download | |
$wc.DownloadFile($discord_canary_url, $discord_canary_output) | |
# Download finished | |
Write-Output "Download time taken: $((Get-Date).Subtract($download_start_time).Seconds) second(s)" | |
Start-Process -FilePath $discord_canary_output | |
Write-Output "Copying wallpaper script" | |
Copy-Item -Path "$user_backup_folder\unsplash-wallpaper-win" -Destination "$HOME\wallpaper" -Recurse | |
Write-Output "Installing Windows Terminal" | |
Copy-Item -Path "$user_backup_folder\Microsoft.WindowsTerminal.msixbundle" -Destination $user_downloads_folder | |
add-appxpackage "$user_downloads_folder\Microsoft.WindowsTerminal.msixbundle" | |
Write-Output "Installing git" | |
Start-Process -FilePath "$user_backup_folder\Git.exe" | |
# TODO: Download and install node & npm | |
# Set proxy config | |
# Write-Output "Installing node & npm" | |
# Write-Output "Setting proxy" | |
Write-Output "All done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment