{"id":892,"date":"2022-12-21T11:07:24","date_gmt":"2022-12-21T11:07:24","guid":{"rendered":"https:\/\/byteboxmedia.support\/?p=892"},"modified":"2022-12-21T11:07:25","modified_gmt":"2022-12-21T11:07:25","slug":"event-action-launch-registry-file","status":"publish","type":"post","link":"https:\/\/byteboxmedia.support\/docs\/game-launcher-creator-v3\/event-action-launch-registry-file\/","title":{"rendered":"Event Action – Launch Registry File"},"content":{"rendered":"\n
\"\"<\/figure>\n\n\n\n

You can tell the launcher to locate a particular executable on the user’s computer through the registry. If you have setup your game with an installer and have written out where the game is installed to in the registry for example. Or using the registry to gather where another executable is installed to.<\/p>\n\n\n\n

First you specify the filename (or additional filename) for example:<\/p>\n\n\n\n

my_game.exe<\/strong> or sub_folder_name\\my_game.exe<\/strong><\/p>\n\n\n\n

The registry is used to get the original path. You simply need to specify<\/p>\n\n\n\n

Registry Root<\/strong>
This is the ROOT key of the registry where the reg key is located. You can use
HKEY_LOCAL_MACHINE
HKEY_CLASSES_ROOT
HKEY_CURRENT_USER
HKEY_USERS
HKEY_CURRENT_CONFIG<\/strong><\/p>\n\n\n\n

Registry Key<\/strong>
The registry path after the root to locate the reg key.<\/p>\n\n\n\n

Example:<\/p>\n\n\n\n

SOFTWARE\\My Company\\My Game\\<\/strong><\/p>\n\n\n\n

Registry String
This is the registry string inside the registry that holds the path information.<\/p>\n\n\n\n

Example:<\/p>\n\n\n\n

InstallPath<\/strong> or InstallDir<\/strong> or Path<\/strong><\/p>\n\n\n\n

A Registry Example<\/h3>\n\n\n\n
\"\"<\/figure>\n\n\n\n

If we wanted to find the location of where GameGuruMax is installed, we can simply check the registry for where this key is written to. We can then use these settings to get the path. So our setup in the action would be:<\/p>\n\n\n\n

Registry Root<\/strong> = HKEY_CURRENT_USER
Registry Key<\/strong> = SOFTWARE\\GameGuruMAX
Registry String<\/strong> = LatestInstallPath<\/p>\n\n\n\n

Then we know that the executable is called GameGuruMAX.exe so we specify this in the Filename box<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

So our setup for this in GLCV3 would look like this:<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

The launcher will first check the registry information supplied to return the path, then it will find the executable and run it.<\/p>\n\n\n\n

If the user doesn’t have the registry path installed or it’s not returned, this will not execute.<\/p>\n","protected":false},"excerpt":{"rendered":"

You can tell the launcher to locate a particular executable on the user’s computer through the registry. If you have setup your game with an installer and have written out where the game is installed to in the registry for example. Or using the registry to gather where another executable is installed to. First you […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-892","post","type-post","status-publish","format-standard","hentry","category-game-launcher-creator-v3"],"_links":{"self":[{"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/posts\/892","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/comments?post=892"}],"version-history":[{"count":1,"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/posts\/892\/revisions"}],"predecessor-version":[{"id":897,"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/posts\/892\/revisions\/897"}],"wp:attachment":[{"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/media?parent=892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/categories?post=892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/byteboxmedia.support\/wp-json\/wp\/v2\/tags?post=892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}