-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Get all installed games
From file system
C:\\Program Files (x86)\\Ubisoft\\Ubisoft Game Launcher\\data
Every directory in there is an installed game with its GameId.
From registry
Alternatively (and propably a better solution) it to read the registry
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Ubisoft\Launcher\Installs\
Every entry in there is a game with its GameId and ExecutablePath.
Here is a Python example on how to read the games.
Here are some GameIds with the corresponding game names.
Launch game
We have to open an url in this format:
uplay://launch/4932/0
4932 is the GameId
Maybe there are some additional flags like ?silent=true like for Epic?
Get game image
In the file system open:
C:\Program Files (x86)\Ubisoft\Ubisoft Game Launcher\cache\configuration\configurations
It lists all installed games besides other configuration stuff.
In there search for the registry key of the game. Like:
HKEY_LOCAL_MACHINE\SOFTWARE\Ubisoft\Launcher\Installs\4932\InstallDir
From this JSON-Object get the icon_image property. It's the filename of the game image.
Search this file in C:\Program Files (x86)\Ubisoft\Ubisoft Game Launcher\data\games.
It's an .ico image.