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]
|
|
|
|
AllowNoIcons=true
|
2014-05-16 21:53:40 +12:00
|
|
|
AppCopyright=Copyright (C) 2007-2014 {#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
|
|
|
|
Compression=lzma/ultra64
|
|
|
|
CreateAppDir=true
|
|
|
|
DefaultDirName={pf}\{#MyAppName}
|
|
|
|
DefaultGroupName={#MyAppName}
|
|
|
|
DirExistsWarning=no
|
|
|
|
InternalCompressLevel=ultra64
|
|
|
|
LanguageDetectionMethod=uilanguage
|
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
|
|
|
|
ShowUndisplayableLanguages=false
|
|
|
|
SignedUninstaller=false
|
|
|
|
SolidCompression=true
|
|
|
|
Uninstallable=true
|
|
|
|
UninstallDisplayIcon={app}\{#MyAppFile}
|
|
|
|
UsePreviousAppDir=yes
|
|
|
|
UsePreviousGroup=yes
|
|
|
|
VersionInfoCompany={#MyAppPublisher}
|
|
|
|
VersionInfoTextVersion={#MyAppVersion}
|
|
|
|
VersionInfoVersion={#MyAppVersion}
|
2014-10-13 11:53:44 +13:00
|
|
|
WizardImageFile=WizardImageFile.bmp
|
|
|
|
WizardSmallImageFile=WizardSmallImageFile.bmp
|
|
|
|
WizardImageBackColor=clWhite
|
|
|
|
WizardImageStretch=False
|
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: "CreateQuickLaunchIcon"; Description: "Create a quick launch shortcut"; GroupDescription: "Additional shortcuts:"
|
|
|
|
Name: "CreateSendToIcon"; Description: "Create a send to shortcut"; GroupDescription: "Additional shortcuts:"
|
|
|
|
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
|
2014-10-05 01:55:18 +13:00
|
|
|
|
|
|
|
; Required for screen/audio recording
|
2014-05-27 21:33:28 +12:00
|
|
|
Source: "..\Lib\screen-capture-recorder.dll"; DestDir: {app}; Flags: regserver 32bit; Check: IsAdminLoggedOn and not IsWin64
|
2014-05-27 19:04:39 +12:00
|
|
|
Source: "..\Lib\screen-capture-recorder-x64.dll"; DestDir: {app}; Flags: regserver 64bit; Check: IsAdminLoggedOn and IsWin64
|
2014-05-27 21:33:28 +12:00
|
|
|
Source: "..\Lib\audio_sniffer.dll"; DestDir: {app}; Flags: regserver 32bit; Check: IsAdminLoggedOn and not IsWin64
|
2014-05-27 19:04:39 +12:00
|
|
|
Source: "..\Lib\audio_sniffer-x64.dll"; DestDir: {app}; Flags: regserver 64bit; Check: IsAdminLoggedOn and IsWin64
|
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"
|
|
|
|
#include "Scripts\products\vcredist2010.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();
|
|
|
|
vcredist2010();
|
|
|
|
|
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;
|