Thread: RG Catalyst
View Single Post
  #2  
Old 20-04-2015, 07:16
Bilawal's Avatar
Bilawal Bilawal is offline
Registered User
 
Join Date: Apr 2014
Location: Pakistan
Posts: 127
Thanks: 176
Thanked 175 Times in 51 Posts
Bilawal is on a distinguished road
Quote:
Originally Posted by Stor31 View Post
after testing
Logo ok (Thx)
Splash does not launch
Change

Code:
;#define Splash
to
Code:
#define Splash
EDIT: If music don't work.

Do this

Code:
procedure InitializeWizard();
begin
#ifdef Splash
  ExtractTemporaryFile('isgsg.dll');
  ExtractTemporaryFile('splash.png');
  ShowSplashScreen(0,ExpandConstant('{tmp}\splash.png'),1000,1000,1000,0,255,False,$FFFFFF,10);
#endif
  RedesignWizardForm;
  ExtractTemporaryFile('Click.wav');
  ExtractTemporaryFile('music.mp3');
  if BASS_Init(-1, 44100, 0, 0, 0) then
  begin
    SoundStream := BASS_StreamCreateFile(False,
    ExpandConstant('{tmp}\music.mp3'), 0, 0, 0, 0,
    EncodingFlag or BASS_SAMPLE_LOOP);
    BASS_SetConfig(BASS_CONFIG_GVOL_STREAM, 2500);
    BASS_ChannelPlay(SoundStream, False);
    SoundCtrlButton.Caption :=ExpandConstant('{cm:SoundCtrlButtonCaptionSoundOff}');
    SoundCtrlButton.OnClick := @SoundCtrlButtonClick;
    end;
end;
to

Code:
procedure InitializeWizard();
begin
  RedesignWizardForm;
  ExtractTemporaryFile('Click.wav');
  ExtractTemporaryFile('music.mp3');
#ifdef Splash
  ExtractTemporaryFile('isgsg.dll');
  ExtractTemporaryFile('splash.png');
  ShowSplashScreen(0,ExpandConstant('{tmp}\splash.png'),1000,1000,1000,0,255,False,$FFFFFF,10);
#endif
  if BASS_Init(-1, 44100, 0, 0, 0) then
  begin
    SoundStream := BASS_StreamCreateFile(False,
    ExpandConstant('{tmp}\music.mp3'), 0, 0, 0, 0,
    EncodingFlag or BASS_SAMPLE_LOOP);
    BASS_SetConfig(BASS_CONFIG_GVOL_STREAM, 2500);
    BASS_ChannelPlay(SoundStream, False);
    SoundCtrlButton.Caption :=ExpandConstant('{cm:SoundCtrlButtonCaptionSoundOff}');
    SoundCtrlButton.OnClick := @SoundCtrlButtonClick;
    end;
end;

Last edited by Bilawal; 20-04-2015 at 07:19.
Reply With Quote
The Following 2 Users Say Thank You to Bilawal For This Useful Post:
Simorq (20-04-2015), Stor31 (20-04-2015)