-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSetup.iss
92 lines (80 loc) · 4.54 KB
/
Setup.iss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "All New Comic Reader"
#define MyAppSafeName "AllNewComicReader"
#define MyAppVersion "1.0"
#define MyAppPublisher "All New Comic Reader"
#define MyAppExeName "AllNewComicReader.exe"
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{20AB8AC3-5EE0-4FCD-AD00-66FD635CE8C3}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
DefaultDirName={pf}\AllNewComicReader
DefaultGroupName=AllNewComicReader
DisableDirPage=no
DisableWelcomePage=no
DisableProgramGroupPage=yes
OutputDir=bin
OutputBaseFilename={#MyAppSafeName}Setup
Compression=lzma
SolidCompression=yes
ChangesAssociations = yes
WizardSmallImageFile=InnoSetup\WizardTop.bmp
WizardImageFile=InnoSetup\WizSide.bmp
SetupIconFile=InnoSetup\install.ico
UninstallDisplayIcon={app}\{#MyAppExeName}
UninstallIconFile=InnoSetup\uninstall.ico
#include "InnoSetup\redist.iss"
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: cbzAssociation; Description: "Associate "".cbz"" files with {#MyAppName}"; GroupDescription: File extensions:
Name: cbrAssociation; Description: "Associate "".cbr"" files with {#MyAppName}"; GroupDescription: File extensions:
Name: cbtAssociation; Description: "Associate "".cbt"" files with {#MyAppName}"; GroupDescription: File extensions:
Name: czAssociation; Description: "Associate "".cz"" files with {#MyAppName}"; GroupDescription: File extensions:
[Registry]
Root: HKCR; Subkey: ".cbz"; ValueType: string; ValueName: ""; ValueData: "ComicFile"; Flags: uninsdeletevalue; Tasks: cbzAssociation
Root: HKCR; Subkey: ".cbr"; ValueType: string; ValueName: ""; ValueData: "ComicFile"; Flags: uninsdeletevalue; Tasks: cbrAssociation
Root: HKCR; Subkey: ".cbt"; ValueType: string; ValueName: ""; ValueData: "ComicFile"; Flags: uninsdeletevalue; Tasks: cbtAssociation
Root: HKCR; Subkey: ".cz"; ValueType: string; ValueName: ""; ValueData: "ComicFile"; Flags: uninsdeletevalue; Tasks: czAssociation
Root: HKCR; Subkey: "ComicFile"; ValueType: string; ValueName: ""; ValueData: "Comic Archive"; Flags: uninsdeletekey;
Root: HKCR; Subkey: "ComicFile\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\AllNewComicReader.exe,1"
Root: HKCR; Subkey: "ComicFile\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\AllNewComicReader.exe"" ""%1"""
[Files]
Source: "AllNewComicReader\bin\Deploy\AllNewComicReader.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "AllNewComicReader\bin\Deploy\MyImageMagickXmlFiles\*"; DestDir: "{app}\MyImageMagickXmlFiles\"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "AllNewComicReader\bin\Deploy\7z.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "AllNewComicReader\bin\Deploy\7z64.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "AllNewComicReader\bin\Deploy\Magick.NET-Q8-AnyCPU.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "AllNewComicReader\bin\Deploy\SevenZipSharp.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "AllNewComicReader\bin\Deploy\TextDesignerCSLibrary.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "ComicThumbnailHandler\Win32\Release\ComicThumbnailHandler32.dll"; DestDir: "{app}"; Flags: regserver 32bit; Check: "not IsWin64"
Source: "ComicThumbnailHandler\x64\Release\ComicThumbnailHandler64.dll"; DestDir: "{app}"; Flags: regserver 64bit; Check: IsWin64
Source: "InnoSetup\Dependecies\vcredist_x86.exe"; Flags: dontcopy;
Source: "InnoSetup\Dependecies\vcredist_x64.exe"; Flags: dontcopy;
Source: "InnoSetup\Dependecies\dotNetFx40_Full_setup.exe"; Flags: dontcopy;
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
[Code]
procedure CurStepChanged(CurStep: TSetupStep);
begin
if(CurStep=ssInstall) then
begin
InstallRedist32();
InstallRedist64();
end
if(CurStep=ssPostInstall) then
begin
InstallFramework();
end;
end;