This PowerShell script automates the installation of several game launchers and creates symbolic links to redirect their installation directories to a specified games folder.
- Windows PowerShell: Ensure that PowerShell is available on your system.
- Administrator Privileges: The script requires elevated permissions to create symbolic links and modify system folders.
-
Download and Save the Script
Save the script as a
.ps1file on your computer. For example, you can name itinstall_games.ps1. -
Open PowerShell as Administrator
- Press
Windows + Xand select Windows PowerShell (Admin) from the menu. - Alternatively, search for "PowerShell" in the Start menu, right-click it, and choose Run as administrator.
- Press
-
Navigate to the Script Location
In PowerShell, use the
cdcommand to change to the directory where the script is saved. For example:cd "C:\path\to\your\script" -
Run the Script
Once you are in the correct directory, run the script by typing:
.\install_games.ps1
-
Follow the Prompts
- The script will prompt you to enter the complete path to your games folder. Enter the path where you want all the game launchers to be installed, e.g.,
D:\Games. - If any directories already exist where symbolic links will be created, the script will ask for your confirmation before proceeding.
- The script will prompt you to enter the complete path to your games folder. Enter the path where you want all the game launchers to be installed, e.g.,
-
Wait for the Script to Complete
The script will automatically install the specified game launchers, create the necessary symbolic links, and manage the installation paths as needed.
-
Save the script as
install_games.ps1in your desired folder. -
Open PowerShell as Administrator:
- Press
Windows + Xand select Windows PowerShell (Admin) from the menu. - Alternatively, search for "PowerShell" in the Start menu, right-click it, and choose Run as administrator.
- Press
-
Navigate to the script location:
cd "C:\path\to\your\script" -
Run the script:
.\install_games.ps1
-
When prompted, enter your games folder path, such as
D:\Games, and follow any additional prompts.
This script is provided "as is" without any warranty. Use it at your own risk.