View Single Post
  #2  
Old 26-10-2015, 16:51
rinaldo's Avatar
rinaldo rinaldo is offline
Registered User
 
Join Date: Sep 2015
Location: Rome
Posts: 433
Thanks: 101
Thanked 696 Times in 191 Posts
rinaldo is on a distinguished road
Quote:
Originally Posted by ShadowEagle View Post
Thanks for your fast answer. So if i`m right, the feature is already there, but we need a checkbox for the user to change it for himself, right?
o no mod all language

use ini.. example:


InstallerScript.iss
Code:
function BGEnabled:Boolean;
begin
if (FileExistsI(ExpandConstant('{tmp}\SmallInstaller.png'))) and (FileExistsI(ExpandConstant('{tmp}\1.jpg')) or (FileExists(ExpandConstant('{tmp}\FlashBG.swf'))) and IsFlashInstalled) then
//Result := True
Result:=(GetValBool('InstallOptions', 'BGE', True))
else
Result := False;
end;
Setup.ini
Code:
[InstallOptions]
ApplicationName=The LEGO Movie - Videogame
Publisher=Warner Bros. Interactive Entertainment
GameSize=8570
//ProductCode={3FEA6CD1-EA13-4CE7-A74E-A74A4A0A7B5C}
PrecompVer=inside
Lang=en,es,fr,it,da,nl,pl,prbr,ru
SetupVersion=1.0
GameVersion=1.0
BGE=False
BGE=False > Disable BGE
BGE= > Default
Reply With Quote