Перейти из форума на сайт.

НовостиФайловые архивы
ПоискАктивные темыТоп лист
ПравилаКто в on-line?
Вход Забыли пароль? Первый раз на этом сайте? Регистрация
Компьютерный форум Ru.Board » Компьютеры » Программы » Inno Setup (создание инсталяционных пакетов)

Модерирует : gyra, Maz

Widok (23-11-2010 10:55): лимит страниц. продолжаем здесь  Версия для печати • ПодписатьсяДобавить в закладки
На первую страницук этому сообщениюк последнему сообщению

   

citygold

Newbie
Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору


Код:
 
;      Скрипт создан с помощью
; IS GameScript Generator by South
;   специально для www.csmania.ru
 
[Setup]
SourceDir=.
OutputDir=Setup
AppName=Counter-Strike Source v5X
AppVerName=Counter-Strike Source v5X
AppVersion=Counter-Strike Source v5X
AppPublisherURL=wellcome.moy.su
AppSupportURL=wellcome.moy.su
AppUpdatesURL=wellcome.moy.su
DefaultDirName={pf}\Counter-Strike Source v5X
DefaultGroupName=Counter-Strike Source v5X
AllowNoIcons=yes
InfoBeforeFile=D:\TEMP\!CODING\CS\readme.txt
OutputBaseFilename=cs_source52
WizardImageFile=D:\TEMP\!CODING\CS\WizModernImage.bmp
WizardSmallImageFile=D:\TEMP\!CODING\CS\WizModernSmallImage.bmp
SetupIconFile=D:\TEMP\!CODING\CS\Counter-Strike.ico
WindowVisible=no
WindowShowCaption=no
WindowResizable=no
Compression=lzma/ultra64
DiskSpanning=yes
DiskSliceSize=2100000000
SlicesPerDisk=1
 
[Languages]
Name: russian; MessagesFile: compiler:Languages\Russian.isl
 
[Tasks]
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}
Name: LangEng; Description: Английский; GroupDescription: Язык интерфейса; Flags: exclusive
Name: LangRus; Description: Русский; GroupDescription: Язык интерфейса; Flags: exclusive
 
[Files]
Source: ISSkin.dll; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: steam.cjstyles; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\010.jpg; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\0803232350471454_f13_1.jpg; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\1113.jpg; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\11606.jpg; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\1233594151861.jpg; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\1271589079_2.jpg; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\15943.jpg; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\aa.jpg; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\bfbc_screen1.jpg; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\dtop-games-062.jpg; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\h1115.jpg; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\hl.jpg; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\ii.jpg; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\killzone.jpg; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\max_wallpaper_jpg.jpg; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\re-actor.97.jpg; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\Stalker.jpg; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\technobuzz10.jpg; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\xh.jpg; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: isgsg.dll; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: bass.dll; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: innocallback.dll; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
Source: D:\TEMP\!CODING\CS\neutralCS2.mp3; DestDir: {tmp}; Flags: ignoreversion dontcopy nocompression
 
Source: D:\Counter-Strike Source v51\*; DestDir: {app}; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension
 
[Icons]
Name: {group}\Counter-Strike Source v5X; Filename: {app}\CS-Source5X.exe; WorkingDir: {app}
Name: {userdesktop}\Counter-Strike Source v5X; Filename: {app}\CS-Source5X.exe; WorkingDir: {app}; Tasks: desktopicon
Name: {group}\{cm:UninstallProgram,Counter-Strike Source v5X}; Filename: {uninstallexe}
 
[Run]
Description: {cm:LaunchProgram, Counter-Strike Source v5X}; Filename: {app}\CS-Source5X.exe; WorkingDir: {app}; Flags: nowait postinstall skipifsilent unchecked
 
[Registry]
Root: HKCU; Subkey: Software\Valve\Steam; ValueType: string; ValueName: Language; ValueData: english; Tasks: LangEng
Root: HKCU; Subkey: Software\Valve\Steam; ValueType: string; ValueName: Language; ValueData: russian; Tasks: LangRus
 
 
[UninstallDelete]
Name: {app}; Type: filesandordirs
 
[Code]
type
  HSTREAM=DWORD;
  TTimerProc=procedure(uTimerID,uMessage:UINT;dwUser,dw1,dw2:DWORD);
const
  Indent=25;
  dURL=2;
 
var
  URLLabel,URLLabelShadow:TLabel;
  MP3List:TStringList;
  CurrentMP3:integer;
  hMP3:HWND;
  TimerID:LongWord;
 
function GetWindowLong(hWnd: HWND; nIndex: Integer): Longint; external 'GetWindowLongA@user32.dll stdcall delayload';
function ssInitialize(hParent:HWND;ssTimeShow:integer;FadeOut:boolean;StretchMode:integer;BkgColor:DWORD):boolean; external 'ssInitialize@files:isgsg.dll stdcall delayload';
procedure ssDeInitialize; external 'ssDeInitialize@files:isgsg.dll stdcall delayload';
procedure ssAddImage(FileName:PChar); external 'ssAddImage@files:isgsg.dll stdcall delayload';
procedure ssStartShow; external 'ssStartShow@files:isgsg.dll stdcall delayload';
procedure ssStopShow; external 'ssStopShow@files:isgsg.dll stdcall delayload';
function GetSystemMetrics(nIndex:Integer):integer; external 'GetSystemMetrics@user32.dll stdcall delayload';
function SetTimer(hWnd:HWND;nIDEvent,uElapse:UINT;lpTimerFunc:LongWord{TFNTimerProc}):UINT;  external 'SetTimer@user32.dll stdcall delayload';
function KillTimer(hWnd:HWND;uIDEvent:UINT):BOOL; external 'KillTimer@user32.dll stdcall delayload';
function BASS_ChannelIsActive(Handle:HWND):DWORD; external 'BASS_ChannelIsActive@files:bass.dll stdcall';
function BASS_SetConfig(Option,Value:DWORD):DWORD; external 'BASS_SetConfig@files:bass.dll stdcall';
function BASS_Init(Device:integer;Freq,Flags:DWORD;Win:HWND;CLSID:integer):boolean; external 'BASS_Init@files:bass.dll stdcall delayload';
function BASS_StreamCreateFile(Mem:BOOL;f:PChar;Offset:DWORD;Length:DWORD;Flags:DWORD):HSTREAM; external 'BASS_StreamCreateFile@files:bass.dll stdcall';
function BASS_StreamFree(Handle:HWND):boolean; external 'BASS_StreamFree@files:bass.dll stdcall';
function BASS_ChannelPlay(Handle:HWND;Restart:boolean):boolean; external 'BASS_ChannelPlay@files:bass.dll stdcall';
function BASS_Start: Boolean; external 'BASS_Start@files:bass.dll stdcall';
function BASS_Stop: Boolean; external 'BASS_Stop@files:bass.dll stdcall';
function BASS_Free: Boolean; external 'BASS_Free@files:bass.dll stdcall delayload';
function WrapTimerProc(CallBack:TTimerProc;ParamCount:integer):LongWord; external 'wrapcallback@files:innocallback.dll stdcall';
procedure LoadSkin(lpszPath: String; lpszIniFileName: String); external 'LoadSkin@files:isskin.dll stdcall';
procedure UnloadSkin(); external 'UnloadSkin@files:isskin.dll stdcall';
function ShowWindow(hWnd: Integer; uType: Integer): Integer; external 'ShowWindow@user32.dll stdcall';
 
procedure TimerTick(uTimerID,uMessage:UINT;dwUser,dw1,dw2:DWORD);
begin
  if BASS_ChannelIsActive(hMP3)=0 then begin
    BASS_Stop;
    BASS_StreamFree(hMP3);
    hMP3:=BASS_StreamCreateFile(False,PChar(MP3List.Strings[CurrentMP3]),0,0,0);
    BASS_Start;
    if hMP3<>0 then
      if BASS_ChannelPlay(hMP3,True) then begin
        CurrentMP3:=CurrentMP3+1;
        if CurrentMP3>MP3List.Count-1 then CurrentMP3:=0;
      end;
  end;
end;
 
procedure URLLabelClick(Sender: TObject);
var
  ErrorCode:integer;
begin
  ShellExec('open','wellcome.moy.su','','',SW_SHOWNORMAL,ewNoWait,ErrorCode);
end;
 
procedure URLLabelMouseDown(Sender:TObject;Button:TMouseButton;Shift:TShiftState;X,Y:Integer);
begin
  URLLabel.Top:=URLLabel.Top+dURL;
  URLLabel.Left:=URLLabel.Left+dURL;
  URLLabel.Font.Style:=URLLabel.Font.Style+[fsUnderline];
  URLLabel.Font.Color:=$50B5C4;
  URLLabelShadow.Visible:=False;
end;
 
procedure URLLabelMouseUp(Sender:TObject;Button:TMouseButton;Shift:TShiftState;X,Y:Integer);
begin
  URLLabel.Top:=URLLabel.Top-dURL;
  URLLabel.Left:=URLLabel.Left-dURL;
  URLLabel.Font.Style:=URLLabel.Font.Style-[fsUnderline];
  URLLabel.Font.Color:=$708A7A;
  URLLabelShadow.Visible:=True;
end;
 
function InitializeSetup:boolean;
begin
  ExtractTemporaryFile('neutralCS2.mp3');
  MP3List:=TStringList.Create;
  MP3List.Add(ExpandConstant('{tmp}')+'\neutralCS2.mp3');
  CurrentMP3:=0;
  ExtractTemporaryFile('steam.cjstyles');
  LoadSkin(ExpandConstant('{tmp}')+'\steam.cjstyles', '');
  Result:=True;
end;
 
procedure InitializeWizard;
begin
  URLLabelShadow:=TLabel.Create(WizardForm);
  with URLLabelShadow do begin
    Top:=ScaleY(331);
    Left:=ScaleX(25);
    Caption:='wellcome.moy.su';
    AutoSize:=True;
    Parent:=WizardForm;
    Transparent:=True;
    Font.Color:=$041207;
    Font.Size:=9;
    Font.Style:=Font.Style+[fsBold];
  end;
  URLLabel:=TLabel.Create(WizardForm);
  with URLLabel do begin
    Top:=ScaleY(331)-dURL;
    Left:=ScaleX(25)-dURL;
    Caption:='wellcome.moy.su';
    AutoSize:=True;
    Parent:=WizardForm;
    Cursor:=crHand;
    Transparent:=True;
    Font.Color:=$708A7A;
    Font.Size:=9;
    Font.Style:=Font.Style+[fsBold];
    BringToFront;
    OnClick:=@URLLabelClick;
    OnMouseDown:=@URLLabelMouseDown;
    OnMouseUp:=@URLLabelMouseUp;
  end;
  TimerID:=SetTimer(0,0,500,WrapTimerProc(@TimerTick,5));
  BASS_Init(-1,44100,0,0,0);
  BASS_SetConfig(5,100);
  BASS_SetConfig(6,100);
  ssInitialize(GetWindowLong(MainForm.Handle,-8),10,False,1,$FF000000);
  WizardForm.BeveledLabel.Enabled:=True;
end;
 
procedure CurStepChanged(CurStep: TSetupStep);
begin
  if CurStep=ssInstall then begin
    ExtractTemporaryFile('010.jpg');
    ssAddImage(ExpandConstant('{tmp}')+'\010.jpg');
    ExtractTemporaryFile('1113.jpg');
    ssAddImage(ExpandConstant('{tmp}')+'\1113.jpg');
    ExtractTemporaryFile('11606.jpg');
    ssAddImage(ExpandConstant('{tmp}')+'\11606.jpg');
    ExtractTemporaryFile('15943.jpg');
    ssAddImage(ExpandConstant('{tmp}')+'\15943.jpg');
    ExtractTemporaryFile('1271589079_2.jpg');
    ssAddImage(ExpandConstant('{tmp}')+'\1271589079_2.jpg');
    ExtractTemporaryFile('1233594151861.jpg');
    ssAddImage(ExpandConstant('{tmp}')+'\1233594151861.jpg');
    ExtractTemporaryFile('0803232350471454_f13_1.jpg');
    ssAddImage(ExpandConstant('{tmp}')+'\0803232350471454_f13_1.jpg');
    ExtractTemporaryFile('aa.jpg');
    ssAddImage(ExpandConstant('{tmp}')+'\aa.jpg');
    ExtractTemporaryFile('bfbc_screen1.jpg');
    ssAddImage(ExpandConstant('{tmp}')+'\bfbc_screen1.jpg');
    ExtractTemporaryFile('dtop-games-062.jpg');
    ssAddImage(ExpandConstant('{tmp}')+'\dtop-games-062.jpg');
    ExtractTemporaryFile('h1115.jpg');
    ssAddImage(ExpandConstant('{tmp}')+'\h1115.jpg');
    ExtractTemporaryFile('hl.jpg');
    ssAddImage(ExpandConstant('{tmp}')+'\hl.jpg');
    ExtractTemporaryFile('ii.jpg');
    ssAddImage(ExpandConstant('{tmp}')+'\ii.jpg');
    ExtractTemporaryFile('killzone.jpg');
    ssAddImage(ExpandConstant('{tmp}')+'\killzone.jpg');
    ExtractTemporaryFile('max_wallpaper_jpg.jpg');
    ssAddImage(ExpandConstant('{tmp}')+'\max_wallpaper_jpg.jpg');
    ExtractTemporaryFile('re-actor.97.jpg');
    ssAddImage(ExpandConstant('{tmp}')+'\re-actor.97.jpg');
    ExtractTemporaryFile('Stalker.jpg');
    ssAddImage(ExpandConstant('{tmp}')+'\Stalker.jpg');
    ExtractTemporaryFile('technobuzz10.jpg');
    ssAddImage(ExpandConstant('{tmp}')+'\technobuzz10.jpg');
    ExtractTemporaryFile('xh.jpg');
    ssAddImage(ExpandConstant('{tmp}')+'\xh.jpg');
    ssStartShow;
  end;
  if CurStep=ssPostInstall then ssStopShow;
end;
 
procedure CurPageChanged(CurPageID: Integer);
begin
  if CurPageID=wpInstalling then begin
    WizardForm.MainPanel.Visible:=False;
    WizardForm.Bevel1.Visible:=False;
    WizardForm.Width:=ScaleX(395);
    WizardForm.Height:=ScaleY(142);
    WizardForm.Left:=ScaleX(GetSystemMetrics(0)-WizardForm.Width-Indent);
    WizardForm.Top:=ScaleY(GetSystemMetrics(1)-WizardForm.Height-Indent);
    WizardForm.InnerNotebook.Left:=ScaleX(10);
    WizardForm.InnerNotebook.Top:=ScaleY(10);
    WizardForm.InnerNotebook.Width:=ScaleX(370);
    WizardForm.StatusLabel.Left:=ScaleX(0);
    WizardForm.StatusLabel.Top:=ScaleY(0);
    WizardForm.StatusLabel.Width:=WizardForm.InnerNotebook.Width;
    WizardForm.FileNameLabel.Left:=ScaleX(0);
    WizardForm.FileNameLabel.Top:=ScaleY(20);
    WizardForm.FileNameLabel.Width:=WizardForm.InnerNotebook.Width;
    WizardForm.ProgressGauge.Top:=ScaleY(40);
    WizardForm.ProgressGauge.Width:=WizardForm.InnerNotebook.Width;
    WizardForm.CancelButton.Left:=ScaleX(154);
    WizardForm.CancelButton.Top:=ScaleY(80);
  end;
  if (CurPageID=wpFinished) or (CurPageID=wpInfoAfter) then begin
    if WizardForm.Width<>502 then begin
      WizardForm.Visible:=False;
      WizardForm.Width:=ScaleX(502);
      WizardForm.Height:=ScaleY(392);
      WizardForm.Left:=(GetSystemMetrics(0)-WizardForm.Width) div 2;
      WizardForm.Top:=(GetSystemMetrics(1)-WizardForm.Height) div 2;
      WizardForm.MainPanel.Visible:=True;
      WizardForm.Bevel1.Visible:=True;
      WizardForm.InnerNotebook.Left:=ScaleX(40);
      WizardForm.InnerNotebook.Top:=ScaleY(72);
      WizardForm.InnerNotebook.Width:=ScaleX(417);
      WizardForm.Visible:=True;
    end;
  end;
end;
 
procedure DeinitializeSetup;
begin
  KillTimer(0,TimerID);
  BASS_Stop;
  BASS_Free;
  MP3List.Free;
  ShowWindow(WizardForm.Handle,0);
  UnloadSkin();
  ssDeInitialize;
end;
 


Всего записей: 16 | Зарегистр. 03-10-2010 | Отправлено: 08:42 04-10-2010
   

На первую страницук этому сообщениюк последнему сообщению

Компьютерный форум Ru.Board » Компьютеры » Программы » Inno Setup (создание инсталяционных пакетов)
Widok (23-11-2010 10:55): лимит страниц. продолжаем здесь


Реклама на форуме Ru.Board.

Powered by Ikonboard "v2.1.7b" © 2000 Ikonboard.com
Modified by Ru.B0ard
© Ru.B0ard 2000-2024

BitCoin: 1NGG1chHtUvrtEqjeerQCKDMUi6S6CG4iC

Рейтинг.ru