Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Display Modes
  #1  
Old 14-02-2016, 05:12
RamiroCruzo's Avatar
RamiroCruzo RamiroCruzo is offline
Registered User
 
Join Date: Jul 2015
Location: India
Posts: 184
Thanks: 386
Thanked 169 Times in 75 Posts
RamiroCruzo is on a distinguished road
Arrow Inno Setup Help

Hola mi amigos....

I was making [basically trying] to make a new Inno Setup Script but am encountering the following problems:

1. HOw to add two slideshows on a same page...I've tried renaming the isslideshow dll into two dlls but the only problem is that only one runs while the other one is stagnant....

2. Also, where is tio Gozarck???
__________________
We are such stuff as dreams are made on, and our little life is rounded with a sleep.

Last edited by RamiroCruzo; 18-02-2016 at 01:13. Reason: New ques.
Reply With Quote
Sponsored Links
  #2  
Old 14-02-2016, 05:14
rinaldo's Avatar
rinaldo rinaldo is offline
Registered User
 
Join Date: Sep 2015
Location: Rome
Posts: 433
Thanks: 101
Thanked 694 Times in 190 Posts
rinaldo is on a distinguished road
ImgSetVisibility(YourImg, false);
ImgSetVisibility(YourImg, true);
__________________
if you understand read more
Reply With Quote
  #3  
Old 14-02-2016, 06:04
RamiroCruzo's Avatar
RamiroCruzo RamiroCruzo is offline
Registered User
 
Join Date: Jul 2015
Location: India
Posts: 184
Thanks: 386
Thanked 169 Times in 75 Posts
RamiroCruzo is on a distinguished road
Smile

Quote:
Originally Posted by rinaldo View Post
ImgSetVisibility(YourImg, false);
ImgSetVisibility(YourImg, true);
I need to replace that form image in every wizard page not hide of show...Also, I've already tried it & it say internal error for more than 2 of the images....
__________________
We are such stuff as dreams are made on, and our little life is rounded with a sleep.
Reply With Quote
  #4  
Old 14-02-2016, 07:07
rinaldo's Avatar
rinaldo rinaldo is offline
Registered User
 
Join Date: Sep 2015
Location: Rome
Posts: 433
Thanks: 101
Thanked 694 Times in 190 Posts
rinaldo is on a distinguished road
wizardform.caption:="";
__________________
if you understand read more
Reply With Quote
The Following User Says Thank You to rinaldo For This Useful Post:
RamiroCruzo (14-02-2016)
  #5  
Old 14-02-2016, 10:05
RamiroCruzo's Avatar
RamiroCruzo RamiroCruzo is offline
Registered User
 
Join Date: Jul 2015
Location: India
Posts: 184
Thanks: 386
Thanked 169 Times in 75 Posts
RamiroCruzo is on a distinguished road
Quote:
Originally Posted by rinaldo View Post
wizardform.caption:="";
Thanks mi hermano...But the rest questions
__________________
We are such stuff as dreams are made on, and our little life is rounded with a sleep.
Reply With Quote
  #6  
Old 15-02-2016, 10:32
RamiroCruzo's Avatar
RamiroCruzo RamiroCruzo is offline
Registered User
 
Join Date: Jul 2015
Location: India
Posts: 184
Thanks: 386
Thanked 169 Times in 75 Posts
RamiroCruzo is on a distinguished road
Amigos....Please take a look.....
__________________
We are such stuff as dreams are made on, and our little life is rounded with a sleep.
Reply With Quote
  #7  
Old 17-02-2016, 19:01
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,746
Thanks: 2,141
Thanked 11,095 Times in 2,295 Posts
Razor12911 is on a distinguished road
var
Img1, Img2: Longint;....

under initializewizard
Img1:=ImgLoad(WizardForm.Handle,ExpandConstant('{t mp}')+'\frame1.png',0,0,900,540,True,True);
Img2:=ImgLoad(WizardForm.Handle,ExpandConstant('{t mp}')+'\frame2.png',0,0,900,540,True,True);
....


under curpagechange
ImgSetVisibility(Img1, false);
ImgSetVisibility(Img2, false);
case CurPageID of
wpWelcome:
begin
ImgSetVisibility(Img1, true);
....
end;
wpSelectDir:
begin
ImgSetVisibility(Img2, true);
....
end;
Reply With Quote
The Following 2 Users Say Thank You to Razor12911 For This Useful Post:
lolaya (17-02-2016), RamiroCruzo (18-02-2016)
  #8  
Old 18-02-2016, 01:12
RamiroCruzo's Avatar
RamiroCruzo RamiroCruzo is offline
Registered User
 
Join Date: Jul 2015
Location: India
Posts: 184
Thanks: 386
Thanked 169 Times in 75 Posts
RamiroCruzo is on a distinguished road
Talking

Quote:
Originally Posted by Razor12911 View Post
var
Img1, Img2: Longint;....

under initializewizard
Img1:=ImgLoad(WizardForm.Handle,ExpandConstant('{t mp}')+'\frame1.png',0,0,900,540,True,True);
Img2:=ImgLoad(WizardForm.Handle,ExpandConstant('{t mp}')+'\frame2.png',0,0,900,540,True,True);
....


under curpagechange
ImgSetVisibility(Img1, false);
ImgSetVisibility(Img2, false);
case CurPageID of
wpWelcome:
begin
ImgSetVisibility(Img1, true);
....
end;
wpSelectDir:
begin
ImgSetVisibility(Img2, true);
....
end;
Thanks mi hermano...Now, only one problem remains....Like I've told you too..... Those slideshows on wpWelcome Page....
__________________
We are such stuff as dreams are made on, and our little life is rounded with a sleep.
Reply With Quote
  #9  
Old 18-02-2016, 01:22
rinaldo's Avatar
rinaldo rinaldo is offline
Registered User
 
Join Date: Sep 2015
Location: Rome
Posts: 433
Thanks: 101
Thanked 694 Times in 190 Posts
rinaldo is on a distinguished road
Code:
#Define SlideShow
#Define Time = "3000"

#define GameName "Slides"
#define Publisher "Publisher"
#define GameExe "GameExe.exe"

[Setup]
AppName={#GameName}
AppVerName={#GameName}
AppPublisher={#Publisher}
DefaultDirName={pf}\{#GameName}
DefaultGroupName={#GameName}


[Languages]
Name: "default"; MessagesFile: "compiler:Default.isl"

[Icons]
Name: "{commondesktop}\{#GameName}"; Filename: "{app}\{#GameExe}";

[UninstallDelete]
Type: filesandordirs; Name: {app}

[Files]
#ifdef SlideShow
Source: Slides\isSlideShow.dll; DestDir: {tmp}; Flags: dontcopy
Source: Slides\*.jpg; DestDir: {tmp}; Flags: dontcopy
#endif

[ Code]
#ifdef SlideShow
var
TimerID: LongWord;
CurrentPicture:integer;
PicList: TStringlist;
#endif

#ifdef SlideShow
Type
TProc=procedure(HandleW, msg, idEvent, TimeSys: LongWord);
#endif

#ifdef SlideShow
function WrapTimeCallback(Callback:TProc; NumParam:integer): longword; external 'WrapCallback@files:isslideshow.dll stdcall';
function GetSystemMetrics(nIndex:Integer):Integer; external '[email protected] stdcall';
procedure InitializeSlideShow(Hwnd:Thandle; l,t,w,h:integer;Animate:boolean; Stretch:integer); external 'InitializeSlideShow@files:isslideshow.dll stdcall';
procedure DeinitializeSlideShow; external 'DeinitializeSlideShow@files:isslideshow.dll stdcall';
procedure ShowImage(ipath:PAnsiChar; Effect:integer; SpeedTransition: integer); external 'ShowImage@files:isslideshow.dll stdcall';
function SetTimer(hWnd, nIDEvent, uElapse, lpTimerFunc: LongWord): longword; external '[email protected] stdcall';
function KillTimer(hWnd, nIDEvent: LongWord): LongWord; external '[email protected] stdcall';
#endif

#ifdef SlideShow
procedure OnTimer(HandleW, msg, idEvent, TimeSys: LongWord);
begin
CurrentPicture:=CurrentPicture+1;
if CurrentPicture=piclist.count+1 then CurrentPicture:=1;
ShowImage(piclist.strings[CurrentPicture - 1], 2, 1000);
end;
#endif

procedure InitializeWizard();
begin
  #ifdef SlideShow
    PicList:=tstringlist.Create;
    ExtractTemporaryFile('1.jpg');
    ExtractTemporaryFile('2.jpg');
    ExtractTemporaryFile('3.jpg');
    ExtractTemporaryFile('4.jpg');
    ExtractTemporaryFile('5.jpg');
    piclist.add(ExpandConstant('{tmp}') + '\1.jpg');
    piclist.add(ExpandConstant('{tmp}') + '\2.jpg');
    piclist.add(ExpandConstant('{tmp}') + '\3.jpg');
    piclist.add(ExpandConstant('{tmp}') + '\4.jpg');
    piclist.add(ExpandConstant('{tmp}') + '\5.jpg');
  #endif
end;


procedure CurPageChanged(CurPageID: Integer);
begin
case CurPageID of
wpWelcome:
begin
#ifdef SlideShow
InitializeSlideShow(WizardForm.Handle, 0, 0, WizardForm.ClientWidth, WizardForm.ClientHeight, true, 2);
CurrentPicture:=1;
ShowImage(piclist.strings[CurrentPicture-1], 1, 1000);
TimerID:=SetTimer(0, 0, {#Time}, WrapTimeCallback(@OnTimer, 4));
#endif
end;
wpFinished:
begin
#ifdef SlideShow
KillTimer(0, TimerID);
DeinitializeSlideShow;
#endif
end;
end;
end;

procedure DeinitializeSetup();
begin
#ifdef SlideShow
DeinitializeSlideShow;
KillTimer(0, TimerID);
#endif
end;

procedure CancelButtonClick(CurPageID: Integer;
var Cancel, Confirm: Boolean);
begin
Confirm:=False;
#ifdef SlideShow
DeinitializeSlideShow;
KillTimer(0, TimerID);
#endif
end;
__________________
if you understand read more

Last edited by rinaldo; 18-02-2016 at 01:29.
Reply With Quote
The Following User Says Thank You to rinaldo For This Useful Post:
RamiroCruzo (18-02-2016)
  #10  
Old 18-02-2016, 02:19
RamiroCruzo's Avatar
RamiroCruzo RamiroCruzo is offline
Registered User
 
Join Date: Jul 2015
Location: India
Posts: 184
Thanks: 386
Thanked 169 Times in 75 Posts
RamiroCruzo is on a distinguished road
Wink

Thanks Rinaldo hermano....But the ode you gave me is for a single slideshow...I'm trying to add two on the same page....
__________________
We are such stuff as dreams are made on, and our little life is rounded with a sleep.
Reply With Quote
  #11  
Old 18-02-2016, 02:50
rinaldo's Avatar
rinaldo rinaldo is offline
Registered User
 
Join Date: Sep 2015
Location: Rome
Posts: 433
Thanks: 101
Thanked 694 Times in 190 Posts
rinaldo is on a distinguished road
use double panel
__________________
if you understand read more
Reply With Quote
  #12  
Old 18-02-2016, 03:42
RamiroCruzo's Avatar
RamiroCruzo RamiroCruzo is offline
Registered User
 
Join Date: Jul 2015
Location: India
Posts: 184
Thanks: 386
Thanked 169 Times in 75 Posts
RamiroCruzo is on a distinguished road
Talking

Quote:
Originally Posted by rinaldo View Post
use double panel
You talking about adding two of

Code:
InitializeSlideShow(WizardForm.Handle, 0, 356, scaleX(200), ScaleY(112), true, 2);
I did that....But one goes on while other just sits idle....
__________________
We are such stuff as dreams are made on, and our little life is rounded with a sleep.
Reply With Quote
Reply

Tags
inno, inno script

Thread Tools
Display Modes

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
BlackBox v2 y_thelastknight Conversion Tutorials 566 13-10-2023 18:04
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup REV0 Conversion Tutorials 129 21-05-2021 06:51
Inno Setup: Additional Libraries altef_4 Conversion Tutorials 50 21-10-2020 10:59
Useful Dll for Inno Setup users peterf1999 Conversion Tutorials 88 01-12-2017 17:00
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup REV0 Conversion Tutorials 51 26-03-2015 07:57



All times are GMT -7. The time now is 08:06.


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