|
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?
|