Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Files]
- Source: "Bass.dll"; Flags: dontcopy
- Source: "coon.mp3"; Flags: dontcopy
- [Icons]
- Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
- Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
- Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
- Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon
- Name: {group}\Uninstall =ISSkin; Filename: {app}\unins000.exe
- [Run]
- Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
- [Messages]
- WelcomeLabel2 = Ceci va installer Prison Architect en Français ou en Anglais et des sauvegardes de prison(si vous le souhaité) sur votre ordinateur. Si vous aimez le jeu, achetez-le !
- [Code]
- const
- BASS_SAMPLE_LOOP = 4;
- BASS_UNICODE = $80000000;
- BASS_CONFIG_GVOL_STREAM = 5;
- #ifndef UNICODE
- EncodingFlag = 0;
- #else
- EncodingFlag = BASS_UNICODE;
- #endif
- type
- HSTREAM = DWORD;
- function BASS_Init(device: LongInt; freq, flags: DWORD;
- win: HWND; clsid: Cardinal): BOOL;
- external 'BASS_Init@files:bass.dll stdcall';
- function BASS_StreamCreateFile(mem: BOOL; f: string; offset1: DWORD;
- offset2: DWORD; length1: DWORD; length2: DWORD; flags: DWORD): HSTREAM;
- external 'BASS_StreamCreateFile@files:bass.dll stdcall';
- function BASS_ChannelPlay(handle: DWORD; restart: BOOL): BOOL;
- external 'BASS_ChannelPlay@files:bass.dll stdcall';
- function BASS_SetConfig(option: DWORD; value: DWORD ): BOOL;
- external 'BASS_SetConfig@files:bass.dll stdcall';
- function BASS_Free: BOOL;
- external 'BASS_Free@files:bass.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';
- function InitializeSetup: Boolean;
- begin
- Result := True;
- ExtractTemporaryFile('Office2007.cjstyles');
- LoadSkin(ExpandConstant('{tmp}\Office2007.cjstyles'), 'NormalBlack.ini');
- end;
- procedure InitializeWizard;
- var
- StreamHandle: HSTREAM;
- begin
- ExtractTemporaryFile('AudioFile.mp3');
- if BASS_Init(-1, 44100, 0, 0, 0) then
- begin
- StreamHandle := BASS_StreamCreateFile(False,
- ExpandConstant('{tmp}\coon.mp3'), 0, 0, 0, 0,
- EncodingFlag or BASS_SAMPLE_LOOP);
- BASS_SetConfig(BASS_CONFIG_GVOL_STREAM, 2500);
- BASS_ChannelPlay(StreamHandle, False);
- end;
- end;
- procedure DeinitializeSetup;
- begin
- BASS_Free;
- ShowWindow(StrToInt(ExpandConstant('{wizardhwnd}')), 0);
- UnloadSkin;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement