It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Hello all,

I have an error sometimes when my computer start, GoG Galaxy is already running on this computer... but it's not true.
So i decided to search and i found it was beause .lock files exists in XXX:\ProgramData\GOG.com\Galaxy\lock-files

I make a custom solution with bat file and vbs ( I know it's roots :) ) for no console at start session :

------------------------------
Bat file :

@echo off
tasklist /FI "IMAGENAME eq GalaxyClient.exe" | findstr "GalaxyClient.exe" >nul
if %ERRORLEVEL% == 1 goto go
goto nogo

:go
cd lock-files
del /s *.lock
cd "XXX:\YOUR FOLDER WHERE GALAXY CLIENT IS\GOG Galaxy\"
GalaxyClient.exe /launchViaAutoStart
exit

:nogo
exit

VBS file :

CreateObject("Wscript.Shell").Run "NAME OF YOUR BAT.bat", 0, True
------------------------------

Bat file and vbs should be placed in XXX:\ProgramData\GOG.com\Galaxy
Obviously, if you run the script and program already running, whe don't del the lock files.
And finaly, in the same folder the VBS linked to a scheluded task at session open for exemple.

Now, launch games with args !

I found a fact, you can link bat/cmd file (the return) when you manualy add the game to library, for exemple today, VALORANT, who is really embarassing to launch (other client to riot blablabla with specific args), so I linked bat file (where you want in your computer) who contains :
START "" XXX:\YOUR FOLDER\Riot Games\Riot Client\RiotClientServices.exe" --launch-product=valorant --launch-patchline=live

It works !
Hope it helps,
Good game !
Post edited April 18, 2020 by SuperWaper