Recently, due to my own mistake, I made the SSD where the system is located Inconsistent, so I decided to reinstall the Windows system, clean up the junk and rarely used software on my computer (yes, because MacOS is my main machine, Windows system is usually only used for gaming and running software like Vivado, so it ended up like this). This method also has its advantages, as it thoroughly removes junk from the computer.
This article is more personal. The software for installing the computer is tailored to my personal usage habits, so its versatility may not be very high.
Installing Software using Scoop
I’ve written an article before about Homebrew, a package manager on MacOS. Scoop is somewhat similar to a package manager on Windows, but it still doesn’t quite achieve the seamless use like Unix-like systems (Ubuntu, MacOS). However, it’s better than searching for software one by one on the internet - Scoop Official Website
Below are a few files I use to bootstrap, along with the corresponding software inside them.
Powershell script - Install all software (according to my computer)
Execute only the necessary files according to your needs
basic.ps1 - Some basic Windows software
machine_specific.ps1 - Peripherals-related software/Office software
gaming.ps1 - Gaming-related
development.ps1 - Development-related
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://blog.mapleaf.link/cn/p/windows-bootstrap/basic.ps1 | Invoke-Expression
Invoke-RestMethod -Uri https://blog.mapleaf.link/cn/p/windows-bootstrap/machine_specific.ps1 | Invoke-Expression
Invoke-RestMethod -Uri https://blog.mapleaf.link/cn/p/windows-bootstrap/gaming.ps1 | Invoke-Expression
Invoke-RestMethod -Uri https://blog.mapleaf.link/cn/p/windows-bootstrap/development.ps1 | Invoke-Expression
basic.ps1
Installation command
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://blog.mapleaf.link/cn/p/windows-bootstrap/basic.ps1 | Invoke-Expression
Content
#Install Scoop
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
scoop install git
scoop bucket add extras
scoop install extras/googlechrome
scoop install extras/office-tool-plus
scoop install extras/landrop
scoop install extras/typora
scoop install extras/obsidian
scoop install extras/everything
reg import "~\scoop\apps\everything\current\install-context.reg"
scoop install extras/vscode
scoop install extras/mpv
scoop install main/yt-dlp
scoop install extras/v2rayn
scoop install extras/spacesniffer
scoop install extras/onecommander
scoop install extras/obs-studio
scoop install extras/dropit
scoop install extras/keeweb
scoop install extras/bulk-crap-uninstaller
scoop install extras/windows-terminal
scoop install extras/zoom
#require admin
scoop install extras/tailscale
scoop bucket add okibcn_ScoopMaster "https://github.com/okibcn/ScoopMaster"
#invalid
scoop install okibcn_ScoopMaster/compact-gui
scoop install "okibcn_ScoopMaster/huorong.installer"
machine_specific.ps1
Installation command
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://blog.mapleaf.link/cn/p/windows-bootstrap/machine_specific.ps1 | Invoke-Expression
Content
scoop bucket add okibcn_ScoopMaster https://github.com/okibcn/ScoopMaster
scoop install okibcn_ScoopMaster/g-hub #只有安装包
scoop install okibcn_ScoopMaster/nvidia—geforce-experience #admin
scoop install okibcn_ScoopMaster/msi-afterburner
scoop install okibcn_ScoopMaster/baidu-netdisk
scoop install okibcn_ScoopMaster/adrive-portable_
gaming.ps1
Installation command
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://blog.mapleaf.link/cn/p/windows-bootstrap/gaming.ps1 | Invoke-Expression
Content
scoop bucket add games
scoop install games/steam
scoop bucket add okibcn_ScoopMaster https://github.com/okibcn/ScoopMaster
scoop install okibcn_ScoopMaster/dotnet-runtime
scoop install okibcn_ScoopMaster/maa-arknights
scoop install okibcn_ScoopMaster/mumuplayer-cn-np #只有安装包
scoop install okibcn_ScoopMaster/watt-toolkit #似乎不是很需要
#require admin rights
scoop install games/epic-games-launcher #也不是很需要
development.ps1
Installation command
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://blog.mapleaf.link/cn/p/windows-bootstrap/development.ps1 | Invoke-Expression
Content
scoop bucket add extras
scoop install extras/vcredist #会频繁要权限,管理员运行会好些?
scoop install extras/anaconda3
scoop install extras/jetbrains-toolbox
scoop install extras/droidcam
scoop bucket add main
scoop install main/chromedriver
scoop install main/adb
scoop install main/neovim
scoop install main/syncthing
scoop install main/rclone
scoop install main/restic
scoop install main/ffmpeg
scoop install main/winget
scoop install extras/vcredist2022
scoop install main/cuda
winget install --Id "Intel.IntelDriverAndSupportAssistant"
winget install --id Microsoft.WindowsTerminal
winget install --id Discord.Discord
winget install --id Tonec.InternetDownloadManager
winget install --id Tencent.QQ.NT
winget install --id Tencent.WeChat
winget install --id ElectronicArts.EADesktop
winget install --name Inkodo
winget install --name "HP Smart" --accept-source-agreements
winget install --name "DroidCam Client"
winget install --Id "Alibaba.QuarkCloudDrive"
winget install --Id Bilibili.Livehime
winget install --Id "Logitech.OptionsPlus"
scoop bucket add java
scoop install java/openjdk
wsl --install -d Ubuntu #管理员,require reboot, 下次开机运行wsl
winget uninstall --name "Skype"
winget uninstall --name "Cortana"
Start-Process "ms-windows-store://pdp/?ProductId=9NMZLZ57R3T7" #HEVC Extension
Start-Process "ms-windows-store://pdp/?ProductId=9nblggh52639" #Airserver Windows
Other
Below are some other software, some require manual installation due to cracking, and some have no installation method through Scoop.
Manual
Matlab
Vivado & Vitis
Riot Client (Valorant)
Thunderstore Mod Manager -> Outplayed
stm32CubeIDE, stm32CubeMX
Hacked
Office (Office tool plus is installed)
Bandizip
Wondershare PDF Element
MobaXterm
IDM - Internet Download Manager (Hacked)
Synergy
Other
Huion tablet driver
UGREEN Bluetooth driver
Optional
SmartPropPlus
Modelsim
Adobe PDF Viewer
Altium Designer
Davinci
Adobe GenP + Adobe Photoshop
Watt Toolkit
Epic Games
Abandoned - Previously used
Whatpulse - Keyboard and mouse input statistics
Windows Disk Repair
chkdsk D: /R # Repair bad sectors
chkdsk D: /f # Quick repair
Initial Settings
OneDrive - Disable backup, disable startup
Everything - Install Everything Service
Chrome - Log in, set as default
Jetbrains Toolbox - Log in, install relevant IDE
Mumu - Install emulator, install Arknights
maa - Set parameters, enable startup, beta edition update
Geforce Experience - Log in, install drivers, self-update, scan games, optimize games
Logitech G Hub - Install
Riot Client Indexing (from G drive) - Disable startup, set to close directly
Update Microsoft Store?
#Dvorak layout - Run as Administrator
Set-ItemProperty -Path “HKLM: \SYSTEM\CurrentControlSet\Control\Keyboard Layouts\00000804” -Name “Layout File” -Value “kbddv.dll”
#Needs reboot
# Set taskbar position to top
$bytes = (Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3").Settings
$bytes[12] = 0x01
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3" -Name Settings -Value $bytes
# Restart explorer to reflect unpinning
Stop-Process -Name explorer -Force
Start-Process explorer
Rename-Computer -NewName "xinyu-win" -Force -Restart
Adjust taskbar pinned items
Settings, Onecommander, Microsoft Terminal, Maa, Chrome, Discord
Matlab: mathworks.com/downloads
Crack IDM
cd ~/Downloads
git clone https://github.com/lstprjct/IDM-Activation-Script
./IDM-Activation-Script/IAS.ps1
Set onecommander as default (in onecommander settings)
Disable Discord startup
Manually copy mobaxterm (on desktop) (or download)
Download link: https://wwp.lanzoue.com/ijhRm23wv7bc Backup link: https://pan.168999.xyz/?dl=b76e6cbde165d35210e7ae199d4978b2
CH340 driver: https://www.wch.cn/download/CH341SER_EXE.html
CP2102 driver: https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads (Right-click .inf file, select Install)
Chinese language garbled text
Control Panel -> Clock and Region -> Region -> Administrative -> Change system locale… -> Chinese + Do not use UTF-8
Add dvorak English keyboard
Disable shift switch between Chinese and English in Microsoft Input Method
Set syncthing startup
$shortcut = "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup\Syncthing.lnk"
$target = "$env:USERPROFILE\scoop\shims\syncthing.exe"
$wshell = New-Object -ComObject WScript.Shell
$shortcut = $wshell.CreateShortcut($shortcut)
$shortcut.TargetPath = $target
$shortcut.Arguments = "-no-console -no-browser"
$shortcut.Save()
TODO
Set MPV as default media player
Export and sync maa configurations
Reconsider whether to scoop install mumu and ghub again