PDA

View Full Version : Reg File Problem


1234567890123
05-08-2017, 06:09
you know sometimes games need a reg files to work and these reg file saves where is game path in example:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\ Microsoft Games\Age of Empires 3\1.0]
"PID"="77380-142-4072341-40275"
"DigitalProductID"=hex:a4,00,00,00,03,00,00,00,37,37,30,37,36,2d,31, 34,32,2d,\
34,30,37,32,33,34,31,2d,34,30,35,30,31,00,50,00,00 ,00,47,31,30,2d,30,30,30,\
32,35,00,00,00,00,00,00,00,1c,61,6e,6b,56,31,93,a3 ,4d,da,40,d8,f5,ad,00,00,\
00,00,00,00,88,15,fc,57,e7,0c,51,06,00,00,00,00,00 ,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,33,34,35,30,30,00 ,00,00,00,00,00,00,27,09,\
00,00,ec,78,c8,66,00,08,00,00,00,00,00,00,00,00,00 ,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00 ,b2,1f,f6,91
"LangID"=dword:00000407
"CDPath"="D:\"
"Version"="1.12"
"SetupPath"="PATH"
"CheckAccess"="1"


i want to make setup change "PATH" to where game installed with inno and setup have to run edited reg. how can i add this to wpi ?

shazzla
05-08-2017, 06:15
Is it works or not,i dont know,but what if you change "PATH" to {app} ?

1234567890123
05-08-2017, 07:05
Is it works or not,i dont know,but what if you change "PATH" to {app} ?

if i wouldn't change it game isn't working so i must change what is the path of game automatically

KaktoR
05-08-2017, 07:23
{app} is where game folder is.

If your game folder is D:\Game, then {app} = D:\Game.

In INNO it looks like this:
Root: HKLM; SubKey: SOFTWARE\Microsoft\Microsoft Games\Age of Empires 3\1.0; ValueType: string; ValueName: SetupPath; ValueData: {app}; Flags: uninsdeletevalue uninsdeletekeyifempty