1 | ; Script generated by the Inno Setup Script Wizard.
|
---|
2 | ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
---|
3 |
|
---|
4 | #define MyAppName "CoolDisk"
|
---|
5 | #define MyAppNameShort "CoolDisk"
|
---|
6 | #define MyAppVersion "1.0.0"
|
---|
7 | #define MyAppPublisher "Chronosoft"
|
---|
8 | #define MyAppPublisherShort "Chronosoft"
|
---|
9 | #define MyAppURL "http://svn.zdechov.net/trac/CoolDisk/"
|
---|
10 | #define MyAppExeName "CoolDisk.exe"
|
---|
11 | #define MyAppDebugName "CoolDisk.dbg"
|
---|
12 | #define MyAppSubDir "../.."
|
---|
13 |
|
---|
14 | [Setup]
|
---|
15 | ; NOTE: The value of AppId uniquely identifies this application.
|
---|
16 | ; Do not use the same AppId value in installers for other applications.
|
---|
17 | ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
---|
18 | AppId={{07789379-49EC-4822-9605-423EDC1DD403}
|
---|
19 | AppName={#MyAppName}
|
---|
20 | AppVersion={#MyAppVersion}
|
---|
21 | AppVerName={#MyAppName} {#MyAppVersion}
|
---|
22 | AppPublisher={#MyAppPublisher}
|
---|
23 | AppPublisherURL={#MyAppURL}
|
---|
24 | AppSupportURL={#MyAppURL}
|
---|
25 | AppUpdatesURL={#MyAppURL}
|
---|
26 | UninstallDisplayName={#MyAppName}
|
---|
27 | UninstallDisplayIcon="{app}\{#MyAppExeName}"
|
---|
28 | VersionInfoVersion={#MyAppVersion}
|
---|
29 | VersionInfoCompany={#MyAppPublisher}
|
---|
30 | DefaultDirName={commonpf}\{#MyAppPublisherShort}\{#MyAppName}
|
---|
31 | DefaultGroupName={#MyAppPublisherShort}\{#MyAppName}
|
---|
32 | AllowNoIcons=yes
|
---|
33 | OutputDir=.
|
---|
34 | OutputBaseFilename=Install-{#MyAppNameShort}-{#MyAppVersion}
|
---|
35 | Compression=lzma
|
---|
36 | SolidCompression=yes
|
---|
37 | ChangesAssociations=yes
|
---|
38 | WizardStyle=modern
|
---|
39 | ; "ArchitecturesInstallIn64BitMode=x64" requests that the install be
|
---|
40 | ; done in "64-bit mode" on x64, meaning it should use the native
|
---|
41 | ; 64-bit Program Files directory and the 64-bit view of the registry.
|
---|
42 | ; On all other architectures it will install in "32-bit mode".
|
---|
43 | ArchitecturesInstallIn64BitMode=x64
|
---|
44 | ; Note: We don't set ProcessorsAllowed because we want this
|
---|
45 | ; installation to run on all architectures (including Itanium,
|
---|
46 | ; since it's capable of running 32-bit code too).
|
---|
47 |
|
---|
48 | [Languages]
|
---|
49 | Name: "english"; MessagesFile: "compiler:Default.isl"
|
---|
50 | Name: "czech"; MessagesFile: "compiler:Languages\Czech.isl"
|
---|
51 | ;Name: "slovak"; MessagesFile: "compiler:Languages\Slovak.isl"
|
---|
52 |
|
---|
53 | [Tasks]
|
---|
54 | Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags:
|
---|
55 |
|
---|
56 | [Registry]
|
---|
57 | Root: HKLM; Subkey: "Software\Chronosoft\CoolDisk"; Flags: uninsdeletekey
|
---|
58 |
|
---|
59 | #define FileTypeName "CoolDisk project"
|
---|
60 | Root: HKCR; Subkey: ".cdp"; ValueType: string; ValueName: ""; ValueData: "{#FileTypeName}"; Flags: uninsdeletevalue
|
---|
61 | Root: HKCR; Subkey: "{#FileTypeName}"; ValueType: string; ValueName: ""; ValueData: "{#FileTypeName}"; Flags: uninsdeletekey
|
---|
62 | Root: HKCR; Subkey: "{#FileTypeName}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"
|
---|
63 | Root: HKCR; Subkey: "{#FileTypeName}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
|
---|
64 |
|
---|
65 | [Files]
|
---|
66 | Source: "{#MyAppSubDir}\lib\x86_64-win64-Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Check: Is64BitInstallMode
|
---|
67 | Source: "{#MyAppSubDir}\lib\i386-win32-Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
---|
68 | ;Source: "{#MyAppSubDir}\Release notes.txt"; DestDir: "{app}"; Flags: ignoreversion
|
---|
69 | Source: "{#MyAppSubDir}\Languages\*.po"; DestDir: "{app}\Languages"; Flags: ignoreversion
|
---|
70 |
|
---|
71 |
|
---|
72 | [Icons]
|
---|
73 | Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
---|
74 | Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
|
---|
75 | Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
---|
76 |
|
---|
77 | [Run]
|
---|
78 | Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, "&", "&&")}}"; Flags: nowait postinstall skipifsilent
|
---|
79 |
|
---|