View Single Post
  #2  
Old 13-08-2015, 18:41
pakrat2k2's Avatar
pakrat2k2 pakrat2k2 is offline
Moderator
 
Join Date: Apr 2005
Location: Canada
Posts: 7,209
Thanks: 3,040
Thanked 9,043 Times in 3,086 Posts
pakrat2k2 is on a distinguished road
Quote:
Originally Posted by babak1 View Post
Help. What needs to change in reg file that would be the installation path changed automatically when you manually change in setup.exe. What needs to be replaced (D:\) and (Silent Hill 3).
Look under useful programs topic for Reg to INNO Converter.
The program will change reg files into ISS script so you can easily add them to your [Registry] section of ISS scripts.

To answer your question you change ALL D:\Silent Hill 3 to {app}
which will allow installation to ANY HD & folder. I also removed the \Wow6432Node, as this will make it ONLY for 64 bit systems, Windows 64 bit systems will auto correct it to right section if running 64 bit OS, otherwise it will work as is for 86bit OS. See Below:

Code:
[Registry]

Root: HKLM; SubKey: SOFTWARE\Konami; Flags: uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Konami\SILENT HILL 3; ValueType: string; ValueName: movie; ValueData: {app}; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Konami\SILENT HILL 3; ValueType: string; ValueName: sound; ValueData: {app}; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Konami\SILENT HILL 3; ValueType: string; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Konami\SILENT HILL 3; ValueType: string; ValueName: data; ValueData: {app}; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Konami\SILENT HILL 3; ValueType: string; ValueName: save; ValueData: {app}\savedata; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; SubKey: SOFTWARE\Konami\SILENT HILL 3; ValueType: string; ValueName: installdir; ValueData: {app}; Flags: uninsdeletevalue uninsdeletekeyifempty
Reply With Quote
The Following User Says Thank You to pakrat2k2 For This Useful Post:
babak1 (14-08-2015)