PDA

View Full Version : How to know which registry files to extract/use and how to do it?


Chrushev
20-12-2018, 04:18
So please correct me if I am wrong. But what I understand it is sufficient to simply pack (archive) the installation directory of a game for it to run no matter where its installed. But in addition to that we also need registry entries that get created on install.

Whats the easiest way to find which entries are needed and how to export/use them in my installer?

Thanks

KaktoR
20-12-2018, 04:28
Not all games need registry entires nor create them (because they don't have any).

Some games require registry entries (most common for EA games).

You have to know firstly where to look. Most games store information in "HKLM\Software\Wow6432Node\xyz". Simply watch out for publisher keys (it's most common).

Example for GOG games: "Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\G OG.com\[GameID]"

Right-click on the key folder and export it to somewhere, then you can use a .reg to .iss converter (it is somewhere in this forum).

Or you could also use InnoIDE to do this job.

Grumpy
20-12-2018, 05:00
@Chrushev

Useful Programs (https://fileforums.com/showthread.php?t=92995)

Lots of helpful little programs available in that thread I have linked you too .... you will find a Reg to Inno program in the 2nd post in that thread ;)

yasitha
27-12-2018, 09:14
So please correct me if I am wrong. But what I understand it is sufficient to simply pack (archive) the installation directory of a game for it to run no matter where its installed. But in addition to that we also need registry entries that get created on install.

Whats the easiest way to find which entries are needed and how to export/use them in my installer?

Thanks

Use Regshot its Perfect

READ this Articles it will help!

https://www.howtogeek.com/198679/how-to-use-regshot-to-monitor-your-registry/

https://www.maketecheasier.com/regshot-monitor-windows-registry-changes/

https://www.maketecheasier.com/monitor-registry-windows-regshot/


and use this tool to convert .reg file to inno setup registry
Reg to INNO Converter ENG it's Perfect Tool
https://fileforums.com/showpost.php?p=410165&postcount=2

SPECIAL THANKS TO pakrat2k2 For Making this Tool :)

pakrat2k2
27-12-2018, 09:25
you really dont have to have external program to get the reg entries you want. Use regedit
( comes with every version of windows ), navigate to section you want, then right-click export to conversion folder your working on. After that use reg to inno converter.

IE:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Ubisoft\Mi ght and Magic: Heroes VII

IF you dont have X64 system then it would just be SOFTWARE\Ubisoft\...
You would just goto the GOG.com listing, then export that like I mention above.

Much easier then how you currently do it, but thanks for posting that info, as others can use it for reference.

Here is an example from exported Registry Entry for game.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Ubisoft\Uplay\GameStart er\1176]
"StartResult"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Ubisoft\La uncher\Installs\1176]
"Language"="pl-PL"
"InstallDir"="{D:\Ubisoft\Might and Magic: Heroes VII}"

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Ubisoft\Mi ght and Magic: Heroes VII]
"Language"="POL"
"installdir"="{D:\Ubisoft\Might and Magic: Heroes VII}"


After using Reg to Inno Converter, and changing the installed folder, so everyone can install it where they want.

Root: HKCU; SubKey: Software\Ubisoft\Uplay\GameStarter\1176; ValueType: dword; ValueName: StartResult; ValueData: $00000000; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\WOW6432Node\Ubisoft\Launcher\Installs\117 6; ValueType: string; ValueName: Language; ValueData: pl-PL; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\WOW6432Node\Ubisoft\Launcher\Installs\117 6; ValueType: string; ValueName: InstallDir; ValueData: {{app}; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\WOW6432Node\Ubisoft\Might and Magic: Heroes VII; ValueType: string; ValueName: Language; ValueData: POL; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\WOW6432Node\Ubisoft\Might and Magic: Heroes VII; ValueType: string; ValueName: installdir; ValueData: {{app}; Flags: uninsdeletevalue uninsdeletekeyifempty


You can see how its been changed. You can also add additional languages, copy / paste the pl-PL & POL for as how many languages you would need.

Root: HKLM; SubKey: SOFTWARE\WOW6432Node\Ubisoft\Launcher\Installs\117 6; ValueType: string; ValueName: Language; ValueData: en-US; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\WOW6432Node\Ubisoft\Might and Magic: Heroes VII; ValueType: string; ValueName: Language; ValueData: ENG; Flags: uninsdeletevalue uninsdeletekeyifempty

yasitha
27-12-2018, 09:40
you really dont have to have external program to get the reg entries you want. Use regedit
( comes with every version of windows ), navigate to section you want, then right-click export to conversion folder your working on. After that use reg to inno converter.

IE:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GOG.com\Ga mes\1118073204

IF you dont have X64 system then it would just be SOFTWARE\GOG.com\...
You would just goto the GOG.com listing, then export that like I mention above.

Much easier then how you currently do it, but thanks for posting that info, as others can use it for reference.

i don't use regshot,
like you said,
it will be easier to track down with regedit.exe
we just need to know the game publisher or developers

for example Ubisoft games use here

32 Bit Registry Here:
HKEY_CURRENT_USER\Software\Ubisoft
HKEY_LOCAL_MACHINE\SOFTWARE\Ubisoft

64 Bit Registry Here:
HKEY_CURRENT_USER\Software\Wow6432Node
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Ubisoft

but some others need simple way out
that's why i suggest the regshot :D