View Single Post
  #39  
Old 28-10-2011, 20:35
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 BAMsE View Post
winzip too and probably everything that uses deflate algorithm Simply zip all setup files and change an extension to cab. You can do it even by WinRAR
you can use winrar but the converter doesnt like winrar cab files ( Yener told me to use 7-zip not winrar for making cab files )

Quote:
Originally Posted by BAMsE View Post
@yener90 can you explain how to achieve lang sensitive reg values? Setting different values for each lang is rather troubling. I guess you're using some variable (defined in custom mesages?) to get proper lang entry
in Registry Section of ISS script:

Code:
Root: HKLM; Subkey: SOFTWARE\ABCDEF\GAMENAME; ValueName: Language; ValueType: String; ValueData: {code:GetLngID}; Flags: uninsdeletekey
Then in the code section of the ISS script

Code:
function GetLngID(Param: string): string;
begin
 
 case GetUILanguage of
    
  1040: Result:='IT';
  1033: Result:='EN';
  1034: Result:='ES';
  1031: Result:='DE';
  1036: Result:='FR';
  1029: Result:='CS';
  1045: Result:='PL';
  1049: Result:='RU';
  else  Result:='EN'; 

 end;
The installer looks to your Windows OS for languageID, so that will autofill in the proper registry value. The bold value above can be set to whatever default you choose.

Last edited by pakrat2k2; 28-10-2011 at 20:43.