| 1 |
; 1. Open this file with Inno Setup with Unicode support and preprocessor. |
| 2 |
; 2. Change "#defines" below (or see below how to use COPYQ_INNO_SETUP environment variable). |
| 3 |
; 3. Compile "setup.exe". |
| 4 |
|
| 5 |
; Path for output installation file |
| 6 |
#define Output "." |
| 7 |
#define MyAppName "CopyQ" |
| 8 |
#define MyAppNameMin "copyq" |
| 9 |
#define MyAppCopyright "Lukas Holecek" |
| 10 |
#define MyAppCopyrightStartYear "2009" |
| 11 |
#define MyAppCopyrightEndYear GetDateTimeString('yyyy','','') |
| 12 |
|
| 13 |
; Default AppVersionNumeric to AppVersion for standalone builds. |
| 14 |
#ifndef AppVersionNumeric |
| 15 |
#define AppVersionNumeric AppVersion |
| 16 |
#endif |
| 17 |
|
| 18 |
[Setup] |
| 19 |
AppId={{9DF1F443-EA0B-4C75-A4D3-767A7783228E} |
| 20 |
AppName={#MyAppName} |
| 21 |
AppVersion={#AppVersion} |
| 22 |
AppVerName={#MyAppName} {#AppVersion} |
| 23 |
|
| 24 |
AppCopyright={#MyAppCopyright} {#MyAppCopyrightStartYear}-{#MyAppCopyrightEndYear} |
| 25 |
AppPublisher={#MyAppCopyright} |
| 26 |
|
| 27 |
AppPublisherURL=http://hluk.github.io/CopyQ/ |
| 28 |
AppSupportURL=http://hluk.github.io/CopyQ/ |
| 29 |
AppUpdatesURL=http://hluk.github.io/CopyQ/ |
| 30 |
|
| 31 |
VersionInfoDescription={#MyAppName} installer |
| 32 |
VersionInfoProductName={#MyAppName} {#AppVersion} |
| 33 |
VersionInfoVersion={#AppVersionNumeric} |
| 34 |
|
| 35 |
UninstallDisplayName={#MyAppName} {#AppVersion} |
| 36 |
UninstallDisplayIcon={app}\copyq.exe |
| 37 |
|
| 38 |
WizardStyle=Modern |
| 39 |
UsePreviousLanguage=no |
| 40 |
|
| 41 |
DefaultDirName={autopf}\{#MyAppName} |
| 42 |
DefaultGroupName={#MyAppName} |
| 43 |
|
| 44 |
ArchitecturesAllowed=x64 |
| 45 |
ArchitecturesInstallIn64BitMode=x64 |
| 46 |
|
| 47 |
AllowNoIcons=yes |
| 48 |
LicenseFile={#Source}\shared\gpl-3.0.rtf |
| 49 |
OutputDir={#Output} |
| 50 |
PrivilegesRequiredOverridesAllowed=dialog |
| 51 |
OutputBaseFilename={#MyAppNameMin}-{#AppVersion}-setup |
| 52 |
Compression=lzma |
| 53 |
SolidCompression=yes |
| 54 |
SetupIconFile={#Source}\src\images\icon.ico |
| 55 |
WizardImageFile=logo.bmp |
| 56 |
WizardSmallImageFile=logo-small.bmp |
| 57 |
CloseApplications=force |
| 58 |
|
| 59 |
[Languages] |
| 60 |
Name: en; MessagesFile: "compiler:Default.isl" |
| 61 |
Name: cz; MessagesFile: "compiler:Languages\Czech.isl" |
| 62 |
Name: de; MessagesFile: "compiler:Languages\German.isl" |
| 63 |
Name: es; MessagesFile: "compiler:Languages\Spanish.isl" |
| 64 |
Name: it; MessagesFile: "compiler:Languages\Italian.isl" |
| 65 |
Name: ko; MessagesFile: "compiler:Languages\Korean.isl" |
| 66 |
|
| 67 |
[CustomMessages] |
| 68 |
en.ProgramFiles=Program Files |
| 69 |
en.Translations=Translations |
| 70 |
en.Plugins=Plugins |
| 71 |
en.PluginText=Text with Highlighting |
| 72 |
en.PluginImages=Images |
| 73 |
en.PluginWeb=Web Pages |
| 74 |
en.PluginNotes=Notes |
| 75 |
en.PluginEncrypted=Encryption |
| 76 |
en.PluginFakeVim=FakeVim Editor |
| 77 |
en.PluginSynchronize=Synchronize Items to Disk |
| 78 |
en.PluginTags=Item Tags |
| 79 |
en.PluginPinned=Pinned Items |
| 80 |
|
| 81 |
cz.ProgramFiles=Soubory programu |
| 82 |
cz.Translations=Překlady |
| 83 |
cz.Plugins=Zásuvné moduly |
| 84 |
cz.PluginText=Text se zvýrazňováním |
| 85 |
cz.PluginImages=Obrázky |
| 86 |
cz.PluginWeb=Webové stránky |
| 87 |
cz.PluginNotes=Poznámky |
| 88 |
cz.PluginEncrypted=Šifrování |
| 89 |
cz.PluginFakeVim=FakeVim editor |
| 90 |
cz.PluginSynchronize=Synchronizace prvků na disk |
| 91 |
cz.PluginTags=Štítky u prvků |
| 92 |
cz.PluginPinned=Připnuté prvky |
| 93 |
|
| 94 |
de.AutoStartProgram=Starte %1 automatisch |
| 95 |
|
| 96 |
es.ProgramFiles=Archivos de programa |
| 97 |
es.Plugins=Complementos |
| 98 |
es.PluginText=Texto resaltado |
| 99 |
es.PluginImages=Imágenes |
| 100 |
es.PluginWeb=Páginas web |
| 101 |
|
| 102 |
it.ProgramFiles=File programma |
| 103 |
it.Translations=Traduzioni |
| 104 |
it.Plugins=Plugin |
| 105 |
it.PluginText=Testo evidenziato |
| 106 |
it.PluginImages=Immagini |
| 107 |
it.PluginWeb=Pagine web |
| 108 |
it.PluginNotes=Note |
| 109 |
it.PluginEncrypted=Criptazione |
| 110 |
it.PluginFakeVim=Editor FakeVim |
| 111 |
it.PluginSynchronize=Sincronizza elementi disco |
| 112 |
it.PluginTags=Etichette elementi |
| 113 |
it.PluginPinned=Elementi bloccati |
| 114 |
|
| 115 |
ko.ProgramFiles=Program Files |
| 116 |
ko.Translations=번역 |
| 117 |
ko.Plugins=플러그인 |
| 118 |
ko.PluginText=강조 표시가 있는 텍스트 |
| 119 |
ko.PluginImages=이미지 |
| 120 |
ko.PluginWeb=웹 페이지 |
| 121 |
ko.PluginNotes=노트 |
| 122 |
ko.PluginEncrypted=암호화 |
| 123 |
ko.PluginFakeVim=FakeVim 편집기 |
| 124 |
ko.PluginSynchronize=항목을 디스크에 동기화 |
| 125 |
ko.PluginTags=항목 태그 |
| 126 |
ko.PluginPinned=고정된 항목 |
| 127 |
|
| 128 |
[Types] |
| 129 |
Name: "full"; Description: "{code:GetFullInstallation}" |
| 130 |
Name: "compact"; Description: "{code:GetCompactInstallation}" |
| 131 |
Name: "custom"; Description: "{code:GetCustomInstallation}"; Flags: iscustom |
| 132 |
|
| 133 |
[Components] |
| 134 |
Name: "program"; Description: "{cm:ProgramFiles}"; Types: full compact custom; Flags: fixed |
| 135 |
Name: "translations"; Description: "{cm:Translations}"; Types: full compact custom |
| 136 |
Name: "plugins"; Description: "{cm:Plugins}"; Types: full |
| 137 |
Name: "plugins/text"; Description: "{cm:PluginText}"; Types: full |
| 138 |
Name: "plugins/images"; Description: "{cm:PluginImages}"; Types: full |
| 139 |
Name: "plugins/notes"; Description: "{cm:PluginNotes}"; Types: full |
| 140 |
Name: "plugins/encrypted"; Description: "{cm:PluginEncrypted}"; Types: full |
| 141 |
Name: "plugins/fakevim"; Description: "{cm:PluginFakeVim}"; Types: full |
| 142 |
Name: "plugins/synchronize"; Description: "{cm:PluginSynchronize}"; Types: full |
| 143 |
Name: "plugins/tags"; Description: "{cm:PluginTags}"; Types: full |
| 144 |
Name: "plugins/pinned"; Description: "{cm:PluginPinned}"; Types: full |
| 145 |
|
| 146 |
[Tasks] |
| 147 |
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; Flags: unchecked |
| 148 |
Name: "startup"; Description: {cm:AutoStartProgram,CopyQ}; Flags: unchecked |
| 149 |
|
| 150 |
[Files] |
| 151 |
Source: "{#Root}\copyq.exe"; DestDir: "{app}"; Components: program; Flags: ignoreversion |
| 152 |
Source: "{#Root}\snoretoast.exe"; DestDir: "{app}"; Components: program; Flags: ignoreversion skipifsourcedoesntexist |
| 153 |
Source: "{#Root}\AUTHORS"; DestDir: "{app}"; Components: program; Flags: ignoreversion |
| 154 |
Source: "{#Root}\LICENSE"; DestDir: "{app}"; Components: program; Flags: ignoreversion |
| 155 |
Source: "{#Root}\README.md"; DestDir: "{app}"; Components: program; Flags: ignoreversion |
| 156 |
Source: "{#Root}\themes\*"; DestDir: "{app}\themes"; Components: program; Flags: ignoreversion |
| 157 |
Source: "{#Root}\translations\*.qm"; DestDir: "{app}\translations"; Components: translations; Flags: ignoreversion |
| 158 |
Source: "{#Root}\plugins\*itemtext.dll"; DestDir: "{app}\plugins"; Components: plugins/text; Flags: ignoreversion |
| 159 |
Source: "{#Root}\plugins\*itemimage.dll"; DestDir: "{app}\plugins"; Components: plugins/images; Flags: ignoreversion |
| 160 |
Source: "{#Root}\plugins\*itemnotes.dll"; DestDir: "{app}\plugins"; Components: plugins/notes; Flags: ignoreversion |
| 161 |
Source: "{#Root}\plugins\*itemencrypted.dll"; DestDir: "{app}\plugins"; Components: plugins/encrypted; Flags: ignoreversion |
| 162 |
Source: "{#Root}\plugins\*itemfakevim.dll"; DestDir: "{app}\plugins"; Components: plugins/fakevim; Flags: ignoreversion |
| 163 |
Source: "{#Root}\plugins\*itemsync.dll"; DestDir: "{app}\plugins"; Components: plugins/synchronize; Flags: ignoreversion |
| 164 |
Source: "{#Root}\plugins\*itemtags.dll"; DestDir: "{app}\plugins"; Components: plugins/tags; Flags: ignoreversion |
| 165 |
Source: "{#Root}\plugins\*itempinned.dll"; DestDir: "{app}\plugins"; Components: plugins/pinned; Flags: ignoreversion |
| 166 |
|
| 167 |
; Qt and toolchain |
| 168 |
Source: "{#Root}\bearer\*.dll"; DestDir: "{app}\bearer"; Components: program; Flags: ignoreversion recursesubdirs createallsubdirs skipifsourcedoesntexist |
| 169 |
Source: "{#Root}\imageformats\*.dll"; DestDir: "{app}\imageformats"; Components: program; Flags: ignoreversion recursesubdirs createallsubdirs |
| 170 |
Source: "{#Root}\platforms\*.dll"; DestDir: "{app}\platforms"; Components: program; Flags: ignoreversion recursesubdirs createallsubdirs |
| 171 |
Source: "{#Root}\styles\*.dll"; DestDir: "{app}\styles"; Components: program; Flags: ignoreversion recursesubdirs createallsubdirs |
| 172 |
Source: "{#Root}\tls\*.dll"; DestDir: "{app}\tls"; Components: program; Flags: ignoreversion recursesubdirs createallsubdirs |
| 173 |
Source: "{#Root}\crypto\*.dll"; DestDir: "{app}\crypto"; Components: program; Flags: ignoreversion recursesubdirs createallsubdirs |
| 174 |
Source: "{#Root}\*.dll"; DestDir: "{app}"; Components: program; Flags: ignoreversion |
| 175 |
|
| 176 |
[Icons] |
| 177 |
Name: "{group}\CopyQ"; Filename: "{app}\copyq.exe"; Parameters: "--start-server show" |
| 178 |
Name: "{commondesktop}\CopyQ"; Filename: "{app}\copyq.exe"; Tasks: desktopicon |
| 179 |
Name: "{userstartup}\CopyQ"; Filename: "{app}\copyq.exe"; Tasks: startup |
| 180 |
|
| 181 |
[Run] |
| 182 |
Filename: "{app}\copyq.exe"; Description: "{cm:LaunchProgram,CopyQ}"; Flags: nowait postinstall skipifsilent |
| 183 |
|
| 184 |
[Code] |
| 185 |
function GetFullInstallation(Param: string): string; |
| 186 |
begin |
| 187 |
Result := SetupMessage(msgFullInstallation); |
| 188 |
end; |
| 189 |
|
| 190 |
function GetCustomInstallation(Param: string): string; |
| 191 |
begin |
| 192 |
Result := SetupMessage(msgCustomInstallation); |
| 193 |
end; |
| 194 |
|
| 195 |
function GetCompactInstallation(Param: string): string; |
| 196 |
begin |
| 197 |
Result := SetupMessage(msgCompactInstallation); |
| 198 |
end; |