View Single Post
  #2  
Old 07-12-2011, 18:06
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
nice job on the conversion, few things you missed changing noted below:

The file should be attached to your post here, rather then a 3rd party hosting site. So I'll upload it here for you.

Some changes NEEDED in BOTH ISS scripts.

ANNO 2070.ISS changes, so that the multilanguage works properly, you had it set to english:
Code:
[REGISTRY]

Root: HKLM; Subkey: "SOFTWARE\UBISOFT\ANNO 5\"; ValueName: "Language"; ValueType: String; ValueData: {code:GetLngID}; Flags: uninsdeletekey
Root: HKLM; Subkey: "SOFTWARE\UBISOFT\ANNO 5\GameUpdate\"; ValueType: string; ValueName: "Language"; ValueData: {code:GetLngID}; Flags: uninsdeletekey
Autorun.iss

'InstallFolder', appath)
AND
'InstallPath', appath)
BOTH need to be changed to installdir because of this line, or else the autorun wont run properly:

Root: HKLM; Subkey: "SOFTWARE\UBISOFT\ANNO 5\GameUpdate\"; ValueType: string; ValueName: "installdir"; ValueData: "{app}"; Flags: uninsdeletekey

Also MISSED changing a section in autorun.iss as well:

Code:
begin
 PlaySound(expandConstant('{tmp}\Click.wav'),0,SND_OPT);
 if TNewButton(sender).caption=ExpandConstant('{cm:AInstall}') then begin
 HForm.Close
 Install:=True;
 end else begin
 RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\UBISOFT\ANNO 5',
     'InstallPath', appath)
 if not Exec(appath+'\LANLauncher.exe', '', '', SW_SHOW,
     ewNoWait, ResultCode) then MsgBox(SysErrorMessage(ResultCode)+': Anno5.exe', mbCriticalError, MB_OK)
     else begin
 HForm.Close;
 Install:=False;
The LANLauncher.exe needs to be changed to Anno5.exe.

Another note IF you goto C:\xxx\ANNO 2070\maindata subfolder & DELETE all languages you dont want
you'll save 2.33GB in space & possibly result in 1xDVD5 !!
Attached Files
File Type: rar ANNO2070 by plipzide.rar (48.59 MB, 851 views)

Last edited by pakrat2k2; 13-01-2012 at 20:44. Reason: changes needed, missed an extra Valuetype: string; in 1st registry line
Reply With Quote