Chudoe
Newbie | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору [more] Помогите пожалуйста, кнопка вкл\выкл для музыки не отображается при том что музыка играет #include "botva2.iss" #include "BASS_Module.iss" [Setup] AppName=Tera patches etc AppVerName=Tera патчи и тд. AppendDefaultDirName = no DefaultDirName={\} WizardImageFile=E:\meh\ymB53alpha.bmp OutputDir=. Uninstallable=false DiskSpanning=yes DiskSliceSize=2100000000 SlicesPerDisk=1 Compression=none [Languages] Name: rus; MessagesFile: compiler:Languages\Russian.isl [Messages] WelcomeLabel1=Здрасте мальчишки и девчонки, вас приветствует установщик патчей для Tera SelectDirDesc=ВНИМАНИЕ нужно указать папку игры(TERA) WizardSelectDir=ВНИМАНИЕ нужно указать папку игры(TERA) SelectDirLabel3=ВНИМАНИЕ нужно указать папку игры(TERA) SelectDirBrowseLabel=Установка должна производиться внутрь папки Тера, поэтому жмите «Обзор» укажите папку игры и только потом жмите «Далее» [Types] Name: "full"; Description: "Анти-цензура"; Flags: iscustom Name: "bikini1"; Description: "Бикини мод(когда на вас нет одежки)" Name: "truc"; Description: "Трусилянский мод[на мужиках]" Name: "bikini2"; Description: "Бикини мод(когда на вас одежка из [Equipment Templates Shop])" Name: "Jap"; Description: "Сюжетка и звуки на Японском" Name: "Kor"; Description: "Сюжетка и звуки на Корейском" [Components] Name: g4; Description: Анти-цензура(можно поставить срузу всю); Types: full; Flags: dontinheritcheck Name: g4\c1; Description: Для Elin 1.6; Types: full; Flags: dontinheritcheck Name: g4\c2; Description: Для Castanic v1.2; Types: full; Flags: dontinheritcheck Name: g4\c7; Description: Для High Elf v1.1; Types: full; Flags: dontinheritcheck Name: g4\c8; Description: Для Human; Types: full; Flags: dontinheritcheck Name: g1; Description: Splashs\Заставки(можно поставить только одну); Types: ; Flags: dontinheritcheck Name: g1\c3; Description: Splash\Заставка - Castanics девушка; Types: ; Flags: dontinheritcheck Name: g1\c4; Description: Splash\Заставка - Castanics девушки; Types: ; Flags: dontinheritcheck Name: g1\c5; Description: Splash\Заставка - Elin(По-умолчанию в торренте уже стоит); Types: ; Flags: dontinheritcheck Name: g1\c6; Description: Splash\Заставка - Корейская; Types: ; Flags: dontinheritcheck Name: g2; Description:Бикини мод(когда на вас нет одежки); Types: bikini1; Flags: dontinheritcheck Name: g2\c9; Description: Aman; Types: bikini1; Flags: dontinheritcheck Name: g2\c10; Description: Elin; Types: bikini1; Flags: dontinheritcheck Name: g2\c11; Description: Human; Types: bikini1; Flags: dontinheritcheck Name: g2\c12; Description: High Elf; Types: bikini1; Flags: dontinheritcheck Name: g2\c13; Description: Castanic; Types: bikini1; Flags: dontinheritcheck Name: g3; Description:Бикини мод(когда на вас одежка из [Equipment Templates Shop]) ; Types: bikini2; Flags: dontinheritcheck Name: g3\c14; Description: Elin; Types: bikini2; Flags: dontinheritcheck Name: g3\c15; Description: Human; Types: bikini2; Flags: dontinheritcheck Name: g3\c16; Description: High Elg; Types: bikini2; Flags: dontinheritcheck Name: g3\c17; Description: Castanic; Types: bikini2; Flags: dontinheritcheck Name: g5; Description: Трусилянский мод[на мужиках]; Types: truc; Flags: dontinheritcheck Name: g5\c18; Description: Castanic; Types: truc; Flags: dontinheritcheck Name: g5\c19; Description: High Elf; Types: truc; Flags: dontinheritcheck Name: g6; Description: Сюжетка и звуки на Японском; Types: Jap; Flags: dontinheritcheck Name: g6\c20; Description: Сюжетка; Types: Jap; Flags: dontinheritcheck Name: g6\c21; Description: Голоса; Types: Jap; Flags: dontinheritcheck Name: g7; Description: Сюжетка и звуки на Корейском; Types: Kor; Flags: dontinheritcheck Name: g7\c22; Description: Сюжетка; Types: Kor; Flags: dontinheritcheck Name: g7\c23; Description: Голоса; Types: Kor; Flags: dontinheritcheck Name: g8; Description: Мод и анти-цензура для костюма Bunny; Types: ; Flags: dontinheritcheck [Files] Source: "E:\Patch\Bikini Mod - Aman v1.0\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g2\c9 Source: "E:\Patch\Bikini Mod - Human v1.0\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g2\c11 Source: "E:\Patch\Bikini Mod - Human [Equipment Template] v1.0\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g3\c15 Source: "E:\Patch\Bikini Mod - High Elf v1.0\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g2\c12 Source: "E:\Patch\Bikini Mod - High Elf [Equipment Template] v1.0\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g3\c16 Source: "E:\Patch\Bikini Mod - Elin v1.1\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g2\c10 Source: "E:\Patch\Bikini Mod - Elin [Equipment Template] v1.0\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g3\c14 Source: "E:\Patch\Bikini Mod - Castanic v1.0\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g2\c13 Source: "E:\Patch\Bikini Mod - Castanic [Equipment Template] v1.0\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g3\c17 Source: "E:\Patch\Underwear Mod - High Elf\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g5\c19 Source: "E:\Patch\Underwear Mod - Castanic\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g5\c18 Source: "E:\Patch\Japanese Cinematic and Cutscenes\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g6\c20 Source: "E:\Patch\Japan Voices v1.2\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g6\c21 Source: "E:\Patch\Korean Cinematic and Cutscenes\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g7\c22 Source: "E:\Patch\Korean Voices v1.2\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g7\c23 Source: "E:\Patch\De-Censor High Elf v1.1\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g4\c7 Source: "E:\Patch\De-Censor Human\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g4\c8 Source: "E:\Patch\De-Censor Castanic v1.2\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g4\c2 Source: "E:\Patch\De-Censor Elin v1.6\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g4\c1 Source: "E:\Patch\Splash - Elin\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g1\c5 Source: "E:\Patch\Splash - Castanics Girl\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g1\c3 Source: "E:\Patch\Splash - Castanics Girls\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components: g1\c4 Source: "E:\Patch\Default Splash - Korean\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components : g1\c6 Source: "E:\Patch\mod\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension; Components : g8 Source: "C:\Users\Admin\Desktop\e2046-Gathering-Elin-Mystic-6.bmp"; DestDir: "{tmp}"; Flags: dontcopy nocompression Source: BASS_Files\*; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression Source: music.mp3; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression Source: "E:\6Hm\7e6a56252d66.mp3"; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression [Run] Filename: {app}\TERA-Launcher.exe; Description: Запустить Tera?; Flags: postinstall nowait skipifsilent [Code] var pnl: TPanel; ///////////////////////WelcomePage////////////////////////////////////// procedure WelcomePage; begin with TLabel.Create(pnl) do begin AutoSize:= WizardForm.WelcomeLabel1.AutoSize; SetBounds(WizardForm.WelcomeLabel1.Left,WizardForm.WelcomeLabel1.Top, WizardForm.WelcomeLabel1.Width,WizardForm.WelcomeLabel1.Height); WordWrap:= WizardForm.WelcomeLabel1.WordWrap; Caption:= WizardForm.WelcomeLabel1.Caption; with Font do begin Color:= WizardForm.WelcomeLabel1.Font.Color; Style:= WizardForm.WelcomeLabel1.Font.Style; Name:= WizardForm.WelcomeLabel1.Font.Name; Size:= WizardForm.WelcomeLabel1.Font.Size; end; Transparent:= True; Parent:= pnl; end; with TLabel.Create(pnl) do begin AutoSize:= WizardForm.WelcomeLabel2.AutoSize; SetBounds(WizardForm.WelcomeLabel2.Left,WizardForm.WelcomeLabel2.Top, WizardForm.WelcomeLabel2.Width,WizardForm.WelcomeLabel2.Height); WordWrap:= WizardForm.WelcomeLabel2.WordWrap; Caption:= WizardForm.WelcomeLabel2.Caption; with Font do begin Color:= WizardForm.WelcomeLabel2.Font.Color; Style:= WizardForm.WelcomeLabel2.Font.Style; Name:= WizardForm.WelcomeLabel2.Font.Name; Size:= WizardForm.WelcomeLabel2.Font.Size; end; Transparent:= True; Parent:= pnl; end; pnl.Repaint; end; ///////////////////////////////////////////////////////////////// ///////////////////////SelectDirPage////////////////////////////////////// procedure SelectDirPage; begin with WizardForm do begin with DirEdit do begin Left:= 40; Top:= 137; Parent:= pnl; end; with DirBrowseButton do begin Left:= WizardForm.DirEdit.Left + WizardForm.DirEdit.Width + 10; Top:= WizardForm.DirEdit.Top - 1; Parent:= pnl; end; with SelectDirBitmapImage do begin Left:= WizardForm.DirEdit.Left; Top:= WizardForm.DirEdit.Top - 62; Stretch:= True; Parent:= pnl; end; end; with TLabel.Create(pnl) do begin AutoSize:= WizardForm.SelectDirBrowseLabel.AutoSize; SetBounds(WizardForm.DirEdit.Left,WizardForm.DirEdit.Top - 30, WizardForm.SelectDirBrowseLabel.Width, WizardForm.SelectDirBrowseLabel.Height); WordWrap:= WizardForm.SelectDirBrowseLabel.WordWrap; Caption:= WizardForm.SelectDirBrowseLabel.Caption; with Font do begin Color:= WizardForm.SelectDirBrowseLabel.Font.Color; Style:= WizardForm.SelectDirBrowseLabel.Font.Style; Name:= WizardForm.SelectDirBrowseLabel.Font.Name; Size:= WizardForm.SelectDirBrowseLabel.Font.Size; end; Transparent:= True; Parent:= pnl; end; with TLabel.Create(pnl) do begin AutoSize:= WizardForm.SelectDirLabel.AutoSize; SetBounds(WizardForm.SelectDirBitmapImage.Left + 50,WizardForm.SelectDirBitmapImage.Top + 10, WizardForm.SelectDirLabel.Width,WizardForm.SelectDirLabel.Height); WordWrap:= WizardForm.SelectDirLabel.WordWrap; Caption:= WizardForm.SelectDirLabel.Caption; with Font do begin Color:= WizardForm.SelectDirLabel.Font.Color; Style:= WizardForm.SelectDirLabel.Font.Style; Name:= WizardForm.SelectDirLabel.Font.Name; Size:= WizardForm.SelectDirLabel.Font.Size; end; Transparent:= True; Parent:= pnl; end; with TLabel.Create(pnl) do begin AutoSize:= WizardForm.DiskSpaceLabel.AutoSize; SetBounds(WizardForm.DirEdit.Left,WizardForm.Bevel.Top - 25, WizardForm.DiskSpaceLabel.Width,WizardForm.DiskSpaceLabel.Height); WordWrap:= WizardForm.DiskSpaceLabel.WordWrap; Caption:= WizardForm.DiskSpaceLabel.Caption; with Font do begin Color:= WizardForm.DiskSpaceLabel.Font.Color; Style:= WizardForm.DiskSpaceLabel.Font.Style; Name:= WizardForm.DiskSpaceLabel.Font.Name; Size:= WizardForm.DiskSpaceLabel.Font.Size; end; Transparent:= True; Parent:= pnl; end; pnl.Repaint; end; ///////////////////////////////////////////////////////////////// ///////////////////////////Select Comp//////////////////////// procedure SlComp; begin with WizardForm do begin with ComponentsList do begin Left:= 40; Top:= 100; Parent:= pnl; end; with TypesCombo do begin Left:= 40; Top:= 70; Parent:= pnl end; end; end; ///////////////////////////Select Comp////////////////////////////////// ///////////////////////ReadyPage////////////////////////////////////// procedure ReadyPage; var ready_str: string; begin ready_str:= WizardForm.ReadyMemo.Text; with TLabel.Create(pnl) do begin SetBounds(45,115,WizardForm.ReadyMemo.Width, WizardForm.ReadyMemo.Height); Caption:= ready_str; with Font do begin Color:= WizardForm.ReadyLabel.Font.Color; Style:= WizardForm.ReadyLabel.Font.Style; Name:= WizardForm.ReadyLabel.Font.Name; Size:= WizardForm.ReadyLabel.Font.Size; end; Transparent:= True; Parent:= pnl; end; with TBevel.Create(WizardForm) do begin SetBounds(40,110, WizardForm.ReadyMemo.Width, WizardForm.ReadyMemo.Height); Parent:= pnl; end; with TLabel.Create(pnl) do begin AutoSize:= WizardForm.ReadyLabel.AutoSize; SetBounds(40,70, WizardForm.ReadyLabel.Width, WizardForm.ReadyLabel.Height); WordWrap:= WizardForm.ReadyLabel.WordWrap; Caption:= WizardForm.ReadyLabel.Caption; with Font do begin Color:= WizardForm.ReadyLabel.Font.Color; Style:= WizardForm.ReadyLabel.Font.Style; Name:= WizardForm.ReadyLabel.Font.Name; Size:= WizardForm.ReadyLabel.Font.Size; end; Transparent:= True; Parent:= pnl; end; pnl.Repaint; end; ///////////////////////////////////////////////////////////////// ///////////////////////InstallingPage////////////////////////////////////// procedure InstallingPage; begin with WizardForm.ProgressGauge do begin Left:= 40; Top:= 115; Parent:= pnl; end; with TLabel.Create(pnl) do begin AutoSize:= WizardForm.FilenameLabel.AutoSize; SetBounds(WizardForm.ProgressGauge.Left,WizardForm.ProgressGauge.Top-20, WizardForm.FilenameLabel.Width,WizardForm.FilenameLabel.Height); WordWrap:= WizardForm.FilenameLabel.WordWrap; Caption:= WizardForm.FilenameLabel.Caption; with Font do begin Color:= WizardForm.FilenameLabel.Font.Color; Style:= WizardForm.FilenameLabel.Font.Style; Name:= WizardForm.FilenameLabel.Font.Name; Size:= WizardForm.FilenameLabel.Font.Size; end; Transparent:= True; Parent:= pnl; end; with TLabel.Create(pnl) do begin AutoSize:= WizardForm.StatusLabel.AutoSize; SetBounds(WizardForm.StatusLabel.Left,WizardForm.StatusLabel.Top, WizardForm.StatusLabel.Width,WizardForm.StatusLabel.Height); WordWrap:= WizardForm.StatusLabel.WordWrap; Caption:= WizardForm.StatusLabel.Caption; with Font do begin Color:= WizardForm.StatusLabel.Font.Color; Style:= WizardForm.StatusLabel.Font.Style; Name:= WizardForm.StatusLabel.Font.Name; Size:= WizardForm.StatusLabel.Font.Size; end; Transparent:= True; Parent:= pnl; end; pnl.Repaint; end; ///////////////////////////////////////////////////////////////// ///////////////////////FinishedPage////////////////////////////////////// var CheckBox: array of TNewCheckBox; procedure CheckBoxClick(Sender: TObject); begin if TNewCheckBox(Sender).Checked then WizardForm.RunList.Checked[TNewCheckBox(Sender).Tag]:= True else WizardForm.RunList.Checked[TNewCheckBox(Sender).Tag]:= False; end; procedure LabelClick(Sender: TObject); begin if CheckBox[TLabel(Sender).Tag].Checked then begin WizardForm.RunList.Checked[TLabel(Sender).Tag]:= False; CheckBox[TLabel(Sender).Tag].Checked:= False; end else begin WizardForm.RunList.Checked[TLabel(Sender).Tag]:= True; CheckBox[TLabel(Sender).Tag].Checked:= True; end; end; procedure HideRunList(Control: TWinControl); var i, t: Integer; str: string; begin if WizardForm.RunList.Items.Count > 0 then begin WizardForm.RunList.Hide; SetArrayLength(CheckBox, SizeOf(WizardForm.RunList.Items.Count)); for i:= 0 to WizardForm.RunList.Items.Count-1 do begin CheckBox[i]:= TNewCheckBox.Create(Control); with CheckBox[i] do begin SetBounds(ScaleX(WizardForm.RunList.Left+2),ScaleY(WizardForm.RunList.Top+2+t),14,14); Tag:= i; Checked:= WizardForm.RunList.Checked[i]; Caption:= WizardForm.RunList.Items.Strings[i]; OnClick:= @CheckBoxClick; Color:= clWhite; Parent:= Control; end; str:= WizardForm.RunList.Items.Strings[i]; with TLabel.Create(WizardForm) do begin SetBounds(ScaleX(WizardForm.RunList.Left+20),ScaleY(WizardForm.RunList.Top+2+t), WizardForm.RunList.Width,14); Caption:= str; Tag:= i; OnClick:= @LabelClick; Transparent:= True; Parent:= Control; end; t:= t + 20; end; end; end; procedure FinishedPage; begin HideRunList(pnl); with TLabel.Create(pnl) do begin AutoSize:= WizardForm.FinishedHeadingLabel.AutoSize; SetBounds(WizardForm.FinishedHeadingLabel.Left,WizardForm.FinishedHeadingLabel.Top, WizardForm.FinishedHeadingLabel.Width,WizardForm.FinishedHeadingLabel.Height); WordWrap:= WizardForm.FinishedHeadingLabel.WordWrap; Caption:= WizardForm.FinishedHeadingLabel.Caption; with Font do begin Color:= WizardForm.FinishedHeadingLabel.Font.Color; Style:= WizardForm.FinishedHeadingLabel.Font.Style; Name:= WizardForm.FinishedHeadingLabel.Font.Name; Size:= WizardForm.FinishedHeadingLabel.Font.Size; end; Transparent:= True; Parent:= pnl; end; with TLabel.Create(pnl) do begin AutoSize:= WizardForm.FinishedLabel.AutoSize; SetBounds(WizardForm.FinishedLabel.Left,WizardForm.FinishedLabel.Top, WizardForm.FinishedLabel.Width,WizardForm.FinishedLabel.Height); WordWrap:= WizardForm.FinishedLabel.WordWrap; Caption:= WizardForm.FinishedLabel.Caption; with Font do begin Color:= WizardForm.FinishedLabel.Font.Color; Style:= WizardForm.FinishedLabel.Font.Style; Name:= WizardForm.FinishedLabel.Font.Name; Size:= WizardForm.FinishedLabel.Font.Size; end; Transparent:= True; Parent:= pnl; end; pnl.Repaint; end; ///////////////////////////////////////////////////////////////// procedure CurPageChanged(CurPageID: Integer); begin pnl:= TPanel.Create(WizardForm); with pnl do begin Align:= alClient; Parent:= WizardForm; end; with WizardForm do begin with WizardBitmapImage do begin Align:= alClient; Stretch:= True; Parent:= pnl; end; NextButton.Parent:= pnl; CancelButton.Parent:= pnl; BackButton.Parent:= pnl; Bevel.Parent:= pnl; pnl.Repaint; end; if (CurPageID > wpWelcome) and (CurPageID < wpFinished) then begin WizardForm.Bevel1.Parent:= pnl; with TLabel.Create(pnl) do begin AutoSize:= WizardForm.PageNameLabel.AutoSize; SetBounds(WizardForm.PageNameLabel.Left,WizardForm.PageNameLabel.Top, WizardForm.PageNameLabel.Width,WizardForm.PageNameLabel.Height); Caption:= WizardForm.PageNameLabel.Caption; with Font do begin Color:= WizardForm.PageNameLabel.Font.Color; Style:= WizardForm.PageNameLabel.Font.Style; Name:= WizardForm.PageNameLabel.Font.Name; Size:= WizardForm.PageNameLabel.Font.Size; end; Transparent:= True; Parent:= pnl; end; with TLabel.Create(pnl) do begin AutoSize:= WizardForm.PageDescriptionLabel.AutoSize; SetBounds(WizardForm.PageDescriptionLabel.Left,WizardForm.PageDescriptionLabel.Top, WizardForm.PageDescriptionLabel.Width,WizardForm.PageDescriptionLabel.Height); Caption:= WizardForm.PageDescriptionLabel.Caption; with Font do begin Color:= WizardForm.PageDescriptionLabel.Font.Color; Style:= WizardForm.PageDescriptionLabel.Font.Style; Name:= WizardForm.PageDescriptionLabel.Font.Name; Size:= WizardForm.PageDescriptionLabel.Font.Size; end; Transparent:= True; Parent:= pnl; end; pnl.Repaint; end; if CurPageID = wpWelcome then WelcomePage; if CurPageID = wpSelectDir then SelectDirPage; if CurPageID = wpSelectComponents then SlComp; if CurPageID = wpReady then ReadyPage; if CurPageID = wpInstalling then InstallingPage; if CurPageID = wpFinished then FinishedPage; end; function GetSystemMetrics(nIndex:Integer):Integer; external 'GetSystemMetrics@user32.dll stdcall'; procedure InitializeWizard(); var width,height: Integer; BackgroundBitmapImage: TBitmapImage; s: string; begin ExtractTemporaryFile('e2046-Gathering-Elin-Mystic-6.bmp'); s:=ExpandConstant('{tmp}')+'\e2046-Gathering-Elin-Mystic-6.bmp'; WizardForm.Position:=poScreenCenter; MainForm.BORDERSTYLE:=bsNone; width:=GetSystemMetrics(0); height:=GetSystemMetrics(1); MainForm.Width:=width; MainForm.Height:=height; width:=MainForm.ClientWidth; height:=MainForm.ClientHeight; MainForm.Left := 0; MainForm.Top := 0; BackgroundBitmapImage := TBitmapImage.Create(MainForm); BackgroundBitmapImage.Bitmap.LoadFromFile(s); BackgroundBitmapImage.Align := alClient; BackgroundBitmapImage.Parent := MainForm; BackgroundBitmapImage.Stretch:=True; MainForm.Visible:=True; ExtractTemporaryFile('BASS.dll'); ExtractTemporaryFile('CallbackCtrl.dll'); ExtractTemporaryFile('botva2.dll'); ExtractTemporaryFile('MusicButton.png'); ExtractTemporaryFile('Music.mp3'); BASS_Init('{tmp}\Music.mp3') //Запускаем музыку //Можно добавить в инсталл несколько песен //BASS_Init(ExpandConstant('{tmp}\*')) //Поиск по маске BASS_CreateOnOffButton(WizardForm, '{tmp}\MusicButton.png', 20, 320, 36, 36, 4) //Создаем кнопку вкл/выкл end; procedure DeinitializeSetup(); begin BASS_DeInit; //Освобождаем процесс gdipShutdown end; | Всего записей: 2 | Зарегистр. 20-10-2013 | Отправлено: 01:09 20-10-2013 | Исправлено: Chudoe, 14:34 20-10-2013 |
|