Last active
July 12, 2023 12:16
-
-
Save Alistair1231/0497e1af171a5eeeaf22da4ac5b7c0dc to your computer and use it in GitHub Desktop.
run all gog setups in current folder
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
# ! main game must be first when sorting by name, otherwise dlcs try to install first! | |
# ! INSTALL GREP: this uses "grep" install via "choco install grep" or download from https://github.com/mbuilov/grep-windows directly and place somewhere on path | |
# ! You can use Z_changeSaveLocation.reg to manually change the save location without using the installer | |
# tip: copy somewhere on your path: see all current paths (powershell): ($env:path -replace ";","`r`n") | |
Get-ChildItem -Filter "*.exe" | ForEach-Object { | |
Write-Output "Installing: $($_.Name)" | |
Start-Process -FilePath "$_" -WorkingDirectory "$(Get-Location)" -Argumentlist "/verysilent /log=`"log.txt`"" -Wait | |
$success = (grep -Io "Installation process.*" .\log.txt) | |
if ($success -match "Installation process succeeded.*") { | |
Write-Output "Installation Success" | |
} else { | |
Write-Output "Installation Failure" | |
exit | |
} | |
Remove-Item "./log.txt" | |
} |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GOG.com] | |
"DefaultPackPath"="D:\\Games\\" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment