View Single Post
  #22  
Old 11-03-2009, 02:26
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 983 Times in 236 Posts
peterf1999 is on a distinguished road
Quote:
Originally Posted by mondragon View Post
then dxsetup will be loaded twice
once by inno and second by original installer on the end
one time

Code:
function InitializeSetup(): Boolean;

var
ResultCode: integer; InS: string; InL: string;

    begin

    // Directx setup

    Exec (ExpandConstant('{src}\DX.exe'),'', '', SW_SHOW,
    ewWaitUntilTerminated, ResultCode)
   //
    RegQueryStringValue(HKEY_LOCAL_MACHINE, 'Software\Microsoft\Windows\CurrentVersion\Uninstall\{81FF29CE-2D23-45FC-8BDE-7491A15F2B02}',
      'InstallSource', InS)
    RegQueryStringValue(HKEY_LOCAL_MACHINE, 'Software\Microsoft\Windows\CurrentVersion\Uninstall\{81FF29CE-2D23-45FC-8BDE-7491A15F2B02}',
      'InstallLocation', InL)

   //unpack freearc archive and exit

    Exec (InS+'NV_arc.exe', '-x -d'+'"'+InL+'\data'+'"'+' -y -s2', '', SW_SHOW,
      ewWaitUntilTerminated, ResultCode)
    Result:=FALSE
  //
    end;
the original setup calls inno loader (Dxsetup.exe) and it exits after unpacking & directx installation (Result:=FALSE) .

Last edited by peterf1999; 11-03-2009 at 02:33.
Reply With Quote