hello \o.
someone help me to change the size of the installation image and text background color
Common
here's how I want to make
this imagens is edited
Mod
Source Code
Quote:
#define MyAppName "State of Decay Year-One"
#define MyAppVersion "15.11.3.5751"
#define MyAppPublisher "Microsoft Studios"
#define MyAppExeName "StateOfDecay.exe"
#define SourceFiles "E:\ProgramData\State of Decay Year-One"
#define MyAppExePatch ""
[Setup]
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
DefaultDirName={pf}\{#MyAppPublisher}\{#MyAppName}
DefaultGroupName={#MyAppPublisher}\{#MyAppName}
AllowNoIcons=true
;InfoBeforeFile=Wizard\information.txt
;LicenseFile=eula.txt
OutputDir=.\
OutputBaseFilename=Setup
Compression=none
WizardImageFile=Wizard\WizModernImage.bmp
WizardSmallImageFile=Wizard\WizModernSmallImage.bm p
AppVerName={#MyAppName}
DiskSpanning=true
DiskSliceSize=1566000000
SlicesPerDisk=3
SolidCompression=true
UninstallDisplayName={#MyAppName}
VersionInfoVersion={#MyAppVersion}
VersionInfoCompany={#MyAppPublisher}
VersionInfoDescription={#MyAppName}
VersionInfoTextVersion={#MyAppVersion}
PrivilegesRequired=admin
UninstallDisplayIcon="{app}\{#MyAppExePatch}\{#MyA ppExeName}"
SetupIconFile=Wizard\Setup.ico
[Languages]
Name: "english"; MessagesFile: "compiler efault.isl";
Name: "brazilian"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl";
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: {#SourceFiles}\*; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
; Add the ISSkin DLL used for skinning Inno Setup installations.
Source: Wizard\ISSkinEx.dll; DestDir: {app}; Flags: dontcopy
; Add the Visual Style resource contains resources used for skinning,
; you can also use Microsoft Visual Styles (*.msstyles) resources.
Source: Wizard\Tiger.cjstyles; DestDir: {tmp}; Flags: dontcopy
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExePatch}\{#MyAppExeName}"; WorkingDir: {app}\{#MyAppExePatch};
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExePatch}\{#MyAppExeName}"; WorkingDir: {app}\{#MyAppExePatch}; Tasks: desktopicon
[Run]
Filename: {app}\_CommonRedist\vcredist\2012\vcredist_x86.exe ; Description: "{cm:LaunchProgram,{#StringChange("MicrosoftVi sual C++ 2012 x86", '&', '&&')}}"; Flags: postinstall skipifsilent runascurrentuser; WorkingDir: {app}\_CommonRedist\vcredist\2012\; Parameters: "/quiet /norestart";
Filename: {app}\_CommonRedist\vcredist\2012\vcredist_x64.exe ; Description: "{cm:LaunchProgram,{#StringChange("MicrosoftVi sual C++ 2012 x64", '&', '&&')}}"; Flags: postinstall skipifsilent runascurrentuser; WorkingDir: {app}\_CommonRedist\vcredist\2012\; Parameters: "/quiet /norestart";
Filename: {app}\_CommonRedist\DirectX\Jun2010\DXSETUP.exe; Description: "{cm:LaunchProgram,{#StringChange("Microsoft DirectX Redist", '&', '&&')}}"; Flags: postinstall skipifsilent runascurrentuser; WorkingDir: {app}\_CommonRedist\DirectX\Jun2010\; Parameters: /silent;
[UninstallDelete]
Type: filesandordirs; Name: {app}
[Code]
// Importing LoadSkin API from ISSkin.DLL
procedure LoadSkin(lpszPath: AnsiString; lpszIniFileName: AnsiString);
external 'LoadSkin@files:isskinex.dll stdcall';
// Importing UnloadSkin API from ISSkin.DLL
procedure UnloadSkin();
external 'UnloadSkin@files:isskinex.dll stdcall';
// Importing ShowWindow Windows API from User32.DLL
function ShowWindow(hWnd: Integer; uType: Integer): Integer;
external '[email protected] stdcall';
function InitializeSetup(): Boolean;
begin
ExtractTemporaryFile('Tiger.cjstyles');
LoadSkin(ExpandConstant('{tmp}\Tiger.cjstyles'), '');
Result := True;
end;
procedure DeinitializeSetup();
begin
// Hide Window before unloading skin so user does not get
// a glimse of an unskinned window before it is closed.
ShowWindow(StrToInt(ExpandConstant('{wizardhwnd}') ), 0);
UnloadSkin();
end;
|