Thread: BlackBox v2
View Single Post
  #18  
Old 23-04-2019, 23:26
ROKA1969's Avatar
ROKA1969 ROKA1969 is offline
Registered User
 
Join Date: May 2017
Location: Poland
Posts: 27
Thanks: 6
Thanked 1 Time in 1 Post
ROKA1969 is on a distinguished road
Let someone explain how to add an entry in the registry so that the game would work normally even if the user changes the path to the game.
The example installs the game on the C: \ Games \ Prince of Persia Warrior Within disk. Then I export the registry file and add it to the installer.

The registry looks like this:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE \ SOFTWARE \ WOW6432Node \ UBISOFT]

[HKEY_LOCAL_MACHINE \ SOFTWARE \ WOW6432Node \ UBISOFT \ Prince of Persia Warrior Within]

[HKEY_LOCAL_MACHINE \ SOFTWARE \ WOW6432Node \ UBISOFT \ Prince of Persia Warrior Within \ 1.00.999]
"Product_Path" = "C: \\ Games \\ Prince of Persia Warrior Within"
"Product_Executable" = "PrinceOfPersia.exe"
"Product_Language" = "9"
"Product_Release" = "Retail EMEA"
"Profiles_Path" = "C: \\ Games \\ Prince of Persia Warrior Within"

If the user changes the access path, for example to the D drive Launcher stops working. How do you save it to work on every disk?
Reply With Quote