mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
64 lines
2.2 KiB
Plaintext
64 lines
2.2 KiB
Plaintext
[Setup]
|
|
AppName=DIY Layout Creator
|
|
AppVersion={#diylcver}
|
|
DefaultDirName={pf}\DIYLC
|
|
DefaultGroupName=DIY Layout Creator
|
|
UninstallDisplayIcon={app}\diylc.exe
|
|
Compression=lzma2
|
|
SolidCompression=yes
|
|
OutputDir=build
|
|
OutputBaseFilename=diylc
|
|
ChangesAssociations=yes
|
|
AlwaysShowDirOnReadyPage=yes
|
|
|
|
[Files]
|
|
Source: "diylc.exe"; DestDir: "{app}"
|
|
Source: "icons\diylc_file.ico"; DestDir: "{app}"
|
|
Source: "build\jar\diylc.jar"; DestDir: "{app}"
|
|
Source: "build\jar\lib\*"; DestDir: "{app}\lib"
|
|
Source: "build\jar\library\*"; DestDir: "{app}\library"
|
|
Source: "themes\*"; DestDir: "{app}\themes"
|
|
Source: "lang\*"; DestDir: "{app}\lang"
|
|
Source: "fonts\*"; DestDir: "{app}\fonts"
|
|
Source: "jre\win\jre1.8.0_211\*"; DestDir: "{app}\jre"; Flags: ignoreversion recursesubdirs
|
|
Source: "tools\innosetup\donate.bmp"; DestDir: "{tmp}"; Flags: dontcopy nocompression
|
|
|
|
[Registry]
|
|
Root: HKCR; Subkey: ".diy"; ValueData: "DIYLC"; Flags: uninsdeletevalue; ValueType: string; ValueName: ""
|
|
Root: HKCR; Subkey: "DIYLC"; ValueData: "Program DIYLC"; Flags: uninsdeletekey; ValueType: string; ValueName: ""
|
|
Root: HKCR; Subkey: "DIYLC\DefaultIcon"; ValueData: "{app}\diylc_file.ico"; ValueType: string; ValueName: ""
|
|
Root: HKCR; Subkey: "DIYLC\shell\open\command"; ValueData: """{app}\diylc.exe"" ""%1"""; ValueType: string; ValueName: ""
|
|
|
|
[Icons]
|
|
Name: "{group}\DIY Layout Creator"; Filename: "{app}\diylc.exe"
|
|
|
|
[Run]
|
|
Filename: "{app}\diylc.exe"; Description: "Launch DIYLC on exit"; Flags: postinstall skipifsilent
|
|
|
|
[Code]
|
|
|
|
procedure LicenseLinkClick(Sender: TObject);
|
|
var
|
|
ErrorCode: Integer;
|
|
begin
|
|
ShellExec('', 'http://www.diy-fever.com/donate', '', '', SW_SHOW, ewNoWait,
|
|
ErrorCode);
|
|
end;
|
|
|
|
procedure InitializeWizard;
|
|
var donateImage: TBitmapImage;
|
|
begin
|
|
ExtractTemporaryFile('donate.bmp');
|
|
|
|
donateImage := TBitmapImage.Create(WizardForm);
|
|
donateImage.Parent:= WizardForm;
|
|
donateImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}\donate.bmp'));
|
|
donateImage.Stretch := True;
|
|
donateImage.Width := 142;
|
|
donateImage.Height := 27;
|
|
donateImage.Left := 8;
|
|
donateImage.Top := WizardForm.InnerPage.Height + 10;
|
|
donateImage.Cursor := crHand;
|
|
donateImage.OnClick := @LicenseLinkClick;
|
|
end;
|