mirror of
https://github.com/ShareX/ShareX.git
synced 2024-08-19 12:11:52 +12:00
88 lines
No EOL
4.1 KiB
Text
88 lines
No EOL
4.1 KiB
Text
#define MyAppName "ShareX"
|
|
#define MyAppFile "ShareX.exe"
|
|
#define MyAppPath "ShareX\bin\Release\ShareX.exe"
|
|
#define MyAppVersion Copy(GetFileVersion(MyAppPath), 0, 5)
|
|
#define MyAppPublisher "ShareX Developers"
|
|
#define MyAppURL "http://getsharex.com"
|
|
#define MyAppId "82E6AC09-0FEF-4390-AD9F-0DD3F5561EFC"
|
|
|
|
[Setup]
|
|
AllowNoIcons=true
|
|
AppCopyright=Copyright (C) 2008-2014 {#MyAppPublisher}
|
|
AppId={#MyAppId}
|
|
AppMutex=Global\{#MyAppId}
|
|
AppName={#MyAppName}
|
|
AppPublisher={#MyAppPublisher}
|
|
AppPublisherURL={#MyAppURL}
|
|
AppSupportURL={#MyAppURL}/issues/list
|
|
AppUpdatesURL={#MyAppURL}/downloads/list
|
|
AppVerName={#MyAppName} {#MyAppVersion}
|
|
AppVersion={#MyAppVersion}
|
|
ArchitecturesAllowed=x86 x64 ia64
|
|
ArchitecturesInstallIn64BitMode=x64 ia64
|
|
Compression=lzma/ultra64
|
|
CreateAppDir=true
|
|
DefaultDirName={pf}\{#MyAppName}
|
|
DefaultGroupName={#MyAppName}
|
|
DirExistsWarning=no
|
|
InfoBeforeFile=Docs\VersionHistory.txt
|
|
InternalCompressLevel=ultra64
|
|
LanguageDetectionMethod=uilanguage
|
|
LicenseFile=LICENSE.txt
|
|
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}
|
|
|
|
[Languages]
|
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
|
|
|
[Tasks]
|
|
Name: "CreateDesktopIcon"; Description: "Create a desktop shortcut"; GroupDescription: "Additional shortcuts:"
|
|
Name: "CreateQuickLaunchIcon"; Description: "Create a quick launch shortcut"; GroupDescription: "Additional shortcuts:"; Flags: unchecked
|
|
Name: "CreateSendToIcon"; Description: "Create a send to shortcut"; GroupDescription: "Additional shortcuts:"; Flags: unchecked
|
|
Name: "CreateStartupIcon"; Description: "Launch {#MyAppName} automatically at Windows startup"; GroupDescription: "Other tasks:"; Flags: unchecked
|
|
|
|
[Files]
|
|
Source: "ShareX\bin\Release\*.exe"; Excludes: *.vshost.exe; DestDir: {app}; Flags: ignoreversion
|
|
Source: "ShareX\bin\Release\*.dll"; DestDir: {app}; Flags: ignoreversion
|
|
Source: "ShareX\bin\Release\*.css"; DestDir: {app}; Flags: ignoreversion
|
|
Source: "ShareX\bin\Release\*.txt"; DestDir: {app}; Flags: ignoreversion
|
|
Source: "Lib\screen-capture-recorder.dll"; DestDir: {app}; Flags: regserver 32bit; Check: IsAdminLoggedOn
|
|
Source: "Lib\screen-capture-recorder-x64.dll"; DestDir: {app}; Flags: regserver 64bit; Check: IsAdminLoggedOn and IsWin64
|
|
Source: "Lib\audio_sniffer.dll"; DestDir: {app}; Flags: regserver 32bit; Check: IsAdminLoggedOn
|
|
Source: "Lib\audio_sniffer-x64.dll"; DestDir: {app}; Flags: regserver 64bit; Check: IsAdminLoggedOn and IsWin64
|
|
|
|
[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
|
|
|
|
[Code]
|
|
function DesktopIconExists(): Boolean;
|
|
begin
|
|
Result := FileExists(ExpandConstant('{userdesktop}\{#MyAppName}.lnk'));
|
|
end; |