View Single Post
  #12  
Old 28-03-2010, 03:08
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 orion-mg View Post
@peterf1999:

And peterf1999, how calls (trigger to) the file AC2_arc.exe to run through setup ?
This simple inno setup's code does it (vcredist_x86.exe):

Code:
const
Subkey='Software\Ubisoft\Assassin'#39's Creed II';

function InitializeSetup(): Boolean;

var
ResultCode: integer; InL,InS: string;

begin
    // install Visual c++ Runtime Libraries (vcredist_x86_Install.exe)
    Exec (ExpandConstant('{src}\vcredist_x86_Install.exe'),'/Q', '', SW_SHOW,
    ewWaitUntilTerminated, ResultCode);
    // retrieve game's installation path from registry
    RegQueryStringValue(HKEY_LOCAL_MACHINE, Subkey,
      'InstallDir', InL);
    // remove trailing backslash from game's installation path
    InL:=RemoveBackslash(InL);
    // retrieve & set source drive letter
    InS:=ExpandConstant('{src}');
    SetLength(InS,2);
    // and finally extract AC2_arc contents to install location
    Exec (InS+'\AC2_arc.exe', '-x -d'+'"'+InL+'"'+' -y -s2', '', SW_SHOW,
      ewWaitUntilTerminated, ResultCode);
    // exit
    Result:=False
end;
Quote:
Originally Posted by orion-mg View Post
And openning the layout.bin (that you provide in the file AC2_1xDVD5.7z) in notepad we will get something like:

Code:
(...) R6Vegas_Game.exe Executables R6Vegas_Launcher.exe (...)
Maybe the layout from Rainbow Six Vegas?
Thank you!
Yep, but its only an unlocked version of layout.bin that allows the repacking
Reply With Quote