|
#6
|
||||
|
||||
|
Quote:
{code:getNVpath} in DefaultDirName (setup section) Quote:
Code:
RegQueryStringValue(HKEY_LOCAL_MACHINE, 'Software\Microsoft\Windows\CurrentVersion\Uninstall\{81FF29CE-2D23-45FC-8BDE-7491A15F2B02}',
'InstallLocation', path)
i used CurStepChanged event (postinstall) for retrieve installpath from registry and unpacking NV_arc.exe Code:
procedure CurStepChanged(CurStep: TSetupStep);
var
path: string; ResultCode: integer;
begin
if CurStep=ssPostInstall then
begin
// if necrovision is installed
if RegKeyExists(HKEY_LOCAL_MACHINE, 'Software\Microsoft\Windows\CurrentVersion\Uninstall\{81FF29CE-2D23-45FC-8BDE-7491A15F2B02}') then
begin
// retrieve installpath of necrovision
RegQueryStringValue(HKEY_LOCAL_MACHINE, 'Software\Microsoft\Windows\CurrentVersion\Uninstall\{81FF29CE-2D23-45FC-8BDE-7491A15F2B02}',
'InstallLocation', path)
// and execute NV_arc.exe to unpacking content to game's folder
Exec (ExpandConstant('{src}\NV_arc.exe'), '-x -d'+path+'\data'+' -y -s2', '', SW_SHOW,
ewWaitUntilTerminated, ResultCode)
end;
end;
end;
Last edited by peterf1999; 01-03-2009 at 04:12. |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Crysis Warhead & Wars Multi10 (DVD9 to 2xDVD5) | ravd | PC Games - CD/DVD Conversions | 14 | 29-09-2025 17:11 |
| INDEX - CD2DVD Conversion Index **UPDATED: 17-07-2024** | Grumpy | PC Games - CD/DVD Conversions | 252 | 16-07-2024 21:35 |
| Gears of War (Italian) DVD9 to 2xDVD5 | DJ Spike | PC Games - CD/DVD Conversions | 2 | 17-11-2008 15:23 |
| DVD9 to 2xDVD5 - How? | shxadom16 | CD/DVD Software & Utilities | 1 | 17-03-2007 05:27 |