Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26-10-2015, 00:52
ShadowEagle's Avatar
ShadowEagle ShadowEagle is offline
Registered User
 
Join Date: Dec 2014
Location: Wonderland
Posts: 138
Thanks: 18
Thanked 21 Times in 18 Posts
ShadowEagle is on a distinguished road
Lightbulb Add button in CIU2

Hi,

how to add a button for switching between fullscreen (small installer + background images + video) and normal installer (no small installer + no background images + no video).

I know if there are no images or videos in background folder there will be no small installer, but a feature, where the user can choose on option using a checkbox before starting installation would be very nice.

Hope someone with good skills, can help me.

Greetz
Reply With Quote
Sponsored Links
  #2  
Old 26-10-2015, 01:16
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
Hi,

how to add a button for switching between fullscreen (small installer + background images + video) and normal installer (no small installer + no background images + no video).

I know if there are no images or videos in background folder there will be no small installer, but a feature, where the user can choose on option using a checkbox before starting installation would be very nice.

Hope someone with good skills, can help me.

Greetz
Replace True to False = no Video no Slideshow

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 //to False
else
Result := False;
end;

Last edited by rinaldo; 26-10-2015 at 02:06.
Reply With Quote
  #3  
Old 26-10-2015, 01:35
ShadowEagle's Avatar
ShadowEagle ShadowEagle is offline
Registered User
 
Join Date: Dec 2014
Location: Wonderland
Posts: 138
Thanks: 18
Thanked 21 Times in 18 Posts
ShadowEagle is on a distinguished road
Quote:
Originally Posted by rinaldo View Post
Replace True to False = no Video no Slideshow

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 := False
else
Result := False;
end;
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?
Reply With Quote
  #4  
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
  #5  
Old 02-11-2015, 02:59
ShadowEagle's Avatar
ShadowEagle ShadowEagle is offline
Registered User
 
Join Date: Dec 2014
Location: Wonderland
Posts: 138
Thanks: 18
Thanked 21 Times in 18 Posts
ShadowEagle is on a distinguished road
Ok, but how to add it into the installer, i mean the user should be able to activate/deactivate a checkbox "Show Trailer and Slideshow".

Thanks in advance.
Reply With Quote
  #6  
Old 02-11-2015, 13:10
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
It's possible but you have to work your a$$ off.
Reply With Quote
  #7  
Old 02-11-2015, 13:18
ShadowEagle's Avatar
ShadowEagle ShadowEagle is offline
Registered User
 
Join Date: Dec 2014
Location: Wonderland
Posts: 138
Thanks: 18
Thanked 21 Times in 18 Posts
ShadowEagle is on a distinguished road
I would love to to that, but i can`t speak "pascal" So i need help
Reply With Quote
  #8  
Old 02-11-2015, 13:28
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
I did this feature in asc. Just look at this script.
http://fileforums.com/showpost.php?p...postcount=1401
You can interchange between video, slideshow, music or none of them in one go.
Reply With Quote
  #9  
Old 03-11-2015, 13:11
ShadowEagle's Avatar
ShadowEagle ShadowEagle is offline
Registered User
 
Join Date: Dec 2014
Location: Wonderland
Posts: 138
Thanks: 18
Thanked 21 Times in 18 Posts
ShadowEagle is on a distinguished road
Possible to give me a hint where to search?
Reply With Quote
  #10  
Old 04-11-2015, 08:39
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
Infostate function. Line 5871. This allows you to see interchange between music and slideshow, and video or none.
First condition is if you have video, slides and music. Video will play, thereafter after clicking video off, slideshow will commance along with video play back, clicking the same button disables music, then another click plays video again.
Second condition if you have video and no slides or the other way round, full screen video will play on loop, then once you click video off button, full screen is disabled, you will only have small installer.
Meaning with this function, you don't have to add another button because the same button performs all these functions.
Reply With Quote
  #11  
Old 04-11-2015, 08:46
ShadowEagle's Avatar
ShadowEagle ShadowEagle is offline
Registered User
 
Join Date: Dec 2014
Location: Wonderland
Posts: 138
Thanks: 18
Thanked 21 Times in 18 Posts
ShadowEagle is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
Infostate function. Line 5871. This allows you to see interchange between music and slideshow, and video or none.
First condition is if you have video, slides and music. Video will play, thereafter after clicking video off, slideshow will commance along with video play back, clicking the same button disables music, then another click plays video again.
Second condition if you have video and no slides or the other way round, full screen video will play on loop, then once you click video off button, full screen is disabled, you will only have small installer.
Meaning with this function, you don't have to add another button because the same button performs all these functions.
So there is no condition to switch between "video on", "music on", "music off", "video+slideshow" off?
Reply With Quote
  #12  
Old 04-11-2015, 08:56
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
There is, the two conditions explain what will happen if you have video, slides, music or whatever. Condition two has slide off/video off. You must not have both else you will still have full screen. If you have slide and music, full screen will disappear.
Reply With Quote
  #13  
Old 05-11-2015, 01:25
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
to use these functions, you must modify some of this script that, in a lot of code that uses expressions to control functions, you need the checkbox or buttons etc..to control functions such as boolean expressions
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup REV0 Conversion Tutorials 129 21-05-2021 05:51
Tutorial using CI 8.0.0 yener90 Conversion Tutorials 424 21-10-2014 09:49
Stranglehold (2x DVD9 to 3x DVD5) poseden PC Games - CD/DVD Conversions 4 31-03-2011 15:21



All times are GMT -7. The time now is 16:43.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com