2013-11-03 23:53:49 +13:00
|
|
|
|
#define MyAppName "ShareX"
|
|
|
|
|
#define MyAppFile "ShareX.exe"
|
2014-11-22 02:34:50 +13:00
|
|
|
|
#define MyAppParentDir "..\ShareX\bin\Release"
|
2014-11-14 11:19:56 +13:00
|
|
|
|
#define MyAppPath MyAppParentDir + "\ShareX.exe"
|
2014-05-24 17:40:26 +12:00
|
|
|
|
#dim Version[4]
|
|
|
|
|
#expr ParseVersion(MyAppPath, Version[0], Version[1], Version[2], Version[3])
|
|
|
|
|
#define MyAppVersion Str(Version[0]) + "." + Str(Version[1]) + "." + Str(Version[2])
|
2013-11-03 23:53:49 +13:00
|
|
|
|
#define MyAppPublisher "ShareX Developers"
|
2014-09-14 01:50:44 +12:00
|
|
|
|
#define MyAppId "82E6AC09-0FEF-4390-AD9F-0DD3F5561EFC"
|
2013-11-03 23:53:49 +13:00
|
|
|
|
|
|
|
|
|
[Setup]
|
2015-06-21 21:17:02 +12:00
|
|
|
|
AllowNoIcons=yes
|
2014-12-31 23:07:19 +13:00
|
|
|
|
AppCopyright=Copyright <20> 2007-2015 {#MyAppPublisher}
|
2013-11-03 23:53:49 +13:00
|
|
|
|
AppId={#MyAppId}
|
2014-09-14 01:50:44 +12:00
|
|
|
|
AppMutex={#MyAppId}
|
2013-11-03 23:53:49 +13:00
|
|
|
|
AppName={#MyAppName}
|
|
|
|
|
AppPublisher={#MyAppPublisher}
|
2014-05-24 17:40:26 +12:00
|
|
|
|
AppPublisherURL=http://getsharex.com
|
|
|
|
|
AppSupportURL=https://github.com/ShareX/ShareX/issues
|
|
|
|
|
AppUpdatesURL=https://github.com/ShareX/ShareX/releases
|
2013-11-03 23:53:49 +13:00
|
|
|
|
AppVerName={#MyAppName} {#MyAppVersion}
|
|
|
|
|
AppVersion={#MyAppVersion}
|
|
|
|
|
ArchitecturesAllowed=x86 x64 ia64
|
|
|
|
|
ArchitecturesInstallIn64BitMode=x64 ia64
|
2015-06-21 21:17:02 +12:00
|
|
|
|
Compression=lzma2/ultra64
|
2013-11-03 23:53:49 +13:00
|
|
|
|
DefaultDirName={pf}\{#MyAppName}
|
|
|
|
|
DefaultGroupName={#MyAppName}
|
|
|
|
|
DirExistsWarning=no
|
2014-05-27 19:04:39 +12:00
|
|
|
|
LicenseFile=..\LICENSE.txt
|
2013-11-03 23:53:49 +13:00
|
|
|
|
MinVersion=0,5.01.2600
|
|
|
|
|
OutputBaseFilename={#MyAppName}-{#MyAppVersion}-setup
|
|
|
|
|
OutputDir=Output\
|
|
|
|
|
PrivilegesRequired=none
|
|
|
|
|
ShowLanguageDialog=auto
|
2015-06-21 21:17:02 +12:00
|
|
|
|
SolidCompression=yes
|
2013-11-03 23:53:49 +13:00
|
|
|
|
UninstallDisplayIcon={app}\{#MyAppFile}
|
2015-06-21 21:17:02 +12:00
|
|
|
|
UninstallDisplayName={#MyAppName} uninstall
|
2013-11-03 23:53:49 +13:00
|
|
|
|
VersionInfoCompany={#MyAppPublisher}
|
|
|
|
|
VersionInfoTextVersion={#MyAppVersion}
|
|
|
|
|
VersionInfoVersion={#MyAppVersion}
|
2014-10-13 11:53:44 +13:00
|
|
|
|
WizardImageFile=WizardImageFile.bmp
|
|
|
|
|
WizardSmallImageFile=WizardSmallImageFile.bmp
|
|
|
|
|
WizardImageBackColor=clWhite
|
2015-06-21 21:17:02 +12:00
|
|
|
|
WizardImageStretch=no
|
2013-11-03 23:53:49 +13:00
|
|
|
|
|
|
|
|
|
[Languages]
|
2014-05-27 19:04:39 +12:00
|
|
|
|
Name: "en"; MessagesFile: "compiler:Default.isl"
|
|
|
|
|
Name: "de"; MessagesFile: "compiler:Languages\German.isl"
|
2013-11-03 23:53:49 +13:00
|
|
|
|
|
|
|
|
|
[Tasks]
|
|
|
|
|
Name: "CreateDesktopIcon"; Description: "Create a desktop shortcut"; GroupDescription: "Additional shortcuts:"
|
2014-07-07 12:50:05 +12:00
|
|
|
|
Name: "CreateSendToIcon"; Description: "Create a send to shortcut"; GroupDescription: "Additional shortcuts:"
|
2015-02-22 05:59:27 +13:00
|
|
|
|
Name: "CreateQuickLaunchIcon"; Description: "Create a quick launch shortcut"; GroupDescription: "Additional shortcuts:"; OnlyBelowVersion: 0,6.1
|
2014-07-07 12:50:05 +12:00
|
|
|
|
Name: "CreateStartupIcon"; Description: "Launch {#MyAppName} automatically at Windows startup"; GroupDescription: "Other tasks:"
|
2013-11-03 23:53:49 +13:00
|
|
|
|
|
|
|
|
|
[Files]
|
2014-11-14 11:19:56 +13:00
|
|
|
|
Source: "{#MyAppParentDir}\ShareX.exe"; DestDir: {app}; Flags: ignoreversion
|
|
|
|
|
Source: "{#MyAppParentDir}\ShareX.exe.config"; DestDir: {app}; Flags: ignoreversion
|
|
|
|
|
Source: "{#MyAppParentDir}\*.dll"; DestDir: {app}; Flags: ignoreversion
|
|
|
|
|
Source: "{#MyAppParentDir}\*.css"; DestDir: {app}; Flags: ignoreversion
|
|
|
|
|
Source: "{#MyAppParentDir}\*.txt"; DestDir: {app}; Flags: ignoreversion
|
2014-10-05 01:55:18 +13:00
|
|
|
|
|
|
|
|
|
; Language resources
|
2014-11-14 11:19:56 +13:00
|
|
|
|
Source: "{#MyAppParentDir}\tr\*.resources.dll"; DestDir: {app}\Languages\tr; Flags: ignoreversion
|
2015-01-05 05:53:04 +13:00
|
|
|
|
Source: "{#MyAppParentDir}\de\*.resources.dll"; DestDir: {app}\Languages\de; Flags: ignoreversion
|
|
|
|
|
Source: "{#MyAppParentDir}\fr\*.resources.dll"; DestDir: {app}\Languages\fr; Flags: ignoreversion
|
2015-01-16 03:56:11 +13:00
|
|
|
|
Source: "{#MyAppParentDir}\zh-CN\*.resources.dll"; DestDir: {app}\Languages\zh-CN; Flags: ignoreversion
|
2015-01-18 10:03:44 +13:00
|
|
|
|
Source: "{#MyAppParentDir}\hu\*.resources.dll"; DestDir: {app}\Languages\hu; Flags: ignoreversion
|
2015-04-12 13:12:37 +12:00
|
|
|
|
Source: "{#MyAppParentDir}\ko-KR\*.resources.dll"; DestDir: {app}\Languages\ko-KR; Flags: ignoreversion
|
|
|
|
|
Source: "{#MyAppParentDir}\es\*.resources.dll"; DestDir: {app}\Languages\es; Flags: ignoreversion
|
2015-05-04 04:32:49 +12:00
|
|
|
|
Source: "{#MyAppParentDir}\nl-NL\*.resources.dll"; DestDir: {app}\Languages\nl-NL; Flags: ignoreversion
|
2014-10-05 01:55:18 +13:00
|
|
|
|
|
2013-11-03 23:53:49 +13:00
|
|
|
|
[Icons]
|
|
|
|
|
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppFile}"; WorkingDir: "{app}"
|
|
|
|
|
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"; WorkingDir: "{app}"
|
|
|
|
|
Name: "{userdesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppFile}"; WorkingDir: "{app}"; Tasks: CreateDesktopIcon; Check: not DesktopIconExists
|
|
|
|
|
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppFile}"; WorkingDir: "{app}"; Tasks: CreateQuickLaunchIcon
|
|
|
|
|
Name: "{sendto}\{#MyAppName}"; Filename: "{app}\{#MyAppFile}"; WorkingDir: "{app}"; Tasks: CreateSendToIcon
|
|
|
|
|
Name: "{userstartup}\{#MyAppName}"; Filename: "{app}\{#MyAppFile}"; WorkingDir: "{app}"; Parameters: "-silent"; Tasks: CreateStartupIcon
|
|
|
|
|
|
|
|
|
|
[Run]
|
|
|
|
|
Filename: "{app}\{#MyAppFile}"; Description: "{cm:LaunchProgram,{#MyAppName}}"; Flags: nowait postinstall
|
|
|
|
|
|
|
|
|
|
[Registry]
|
|
|
|
|
;Root: "HKCU"; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueName: "{#MyAppName}"; Flags: uninsdeletevalue
|
|
|
|
|
Root: "HKCU"; Subkey: "Software\Classes\*\shell\{#MyAppName}"; Flags: dontcreatekey uninsdeletekey
|
|
|
|
|
Root: "HKCU"; Subkey: "Software\Classes\Directory\shell\{#MyAppName}"; Flags: dontcreatekey uninsdeletekey
|
|
|
|
|
Root: "HKCU"; Subkey: "Software\Classes\Folder\shell\{#MyAppName}"; Flags: dontcreatekey uninsdeletekey
|
|
|
|
|
|
2014-05-27 19:04:39 +12:00
|
|
|
|
#include "Scripts\products.iss"
|
|
|
|
|
#include "Scripts\products\stringversion.iss"
|
|
|
|
|
#include "Scripts\products\winversion.iss"
|
|
|
|
|
#include "Scripts\products\fileversion.iss"
|
|
|
|
|
#include "Scripts\products\dotnetfxversion.iss"
|
|
|
|
|
#include "Scripts\products\msi31.iss"
|
|
|
|
|
#include "Scripts\products\dotnetfx40full.iss"
|
|
|
|
|
|
2013-11-03 23:53:49 +13:00
|
|
|
|
[Code]
|
2014-06-24 13:05:23 +12:00
|
|
|
|
procedure InitializeWizard;
|
|
|
|
|
begin
|
|
|
|
|
WizardForm.LicenseAcceptedRadio.Checked := true;
|
|
|
|
|
end;
|
|
|
|
|
|
2014-05-27 19:04:39 +12:00
|
|
|
|
function InitializeSetup(): Boolean;
|
|
|
|
|
begin
|
2014-11-14 11:19:56 +13:00
|
|
|
|
initwinversion();
|
2014-05-27 19:04:39 +12:00
|
|
|
|
msi31('3.1');
|
|
|
|
|
dotnetfx40full();
|
2014-11-14 11:19:56 +13:00
|
|
|
|
Result := true;
|
2014-05-27 19:04:39 +12:00
|
|
|
|
end;
|
|
|
|
|
|
2013-11-03 23:53:49 +13:00
|
|
|
|
function DesktopIconExists(): Boolean;
|
|
|
|
|
begin
|
|
|
|
|
Result := FileExists(ExpandConstant('{userdesktop}\{#MyAppName}.lnk'));
|
|
|
|
|
end;
|