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 "vCard Studio"
|
---|
5 | #define MyAppNameShort "vCardStudio"
|
---|
6 | #define MyAppVersion "1.6.0"
|
---|
7 | #define MyAppVersionSuffix "alfa"
|
---|
8 | #define MyAppPublisher "Chronosoft"
|
---|
9 | #define MyAppPublisherShort "Chronosoft"
|
---|
10 | #define MyAppURL "https://app.zdechov.net/vcard-studio"
|
---|
11 | #define MyAppExeName "vCardStudio.exe"
|
---|
12 | #define MyAppDebugName "vCardStudio.dbg"
|
---|
13 | #define MyAppSubDir "../.."
|
---|
14 |
|
---|
15 | [Setup]
|
---|
16 | ; NOTE: The value of AppId uniquely identifies this application.
|
---|
17 | ; Do not use the same AppId value in installers for other applications.
|
---|
18 | ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
---|
19 | AppId={{20E1F71F-1511-425C-BE67-1825A215647D}
|
---|
20 | AppName={#MyAppName}
|
---|
21 | #ifdef MyAppVersionSuffix
|
---|
22 | AppVersion={#MyAppVersion}-{#MyAppVersionSuffix}
|
---|
23 | AppVerName={#MyAppName} {#MyAppVersion}-{#MyAppVersionSuffix}
|
---|
24 | OutputBaseFilename=Install-{#MyAppNameShort}-{#MyAppVersion}-{#MyAppVersionSuffix}
|
---|
25 | #else
|
---|
26 | AppVersion={#MyAppVersion}
|
---|
27 | AppVerName={#MyAppName} {#MyAppVersion}
|
---|
28 | OutputBaseFilename=Install-{#MyAppNameShort}-{#MyAppVersion}
|
---|
29 | #endif
|
---|
30 | UninstallDisplayName={#MyAppName}
|
---|
31 | UninstallDisplayIcon="{app}\{#MyAppExeName}"
|
---|
32 | VersionInfoVersion={#MyAppVersion}
|
---|
33 | VersionInfoCompany={#MyAppPublisher}
|
---|
34 | AppPublisher={#MyAppPublisher}
|
---|
35 | AppPublisherURL={#MyAppURL}
|
---|
36 | AppSupportURL={#MyAppURL}
|
---|
37 | AppUpdatesURL={#MyAppURL}
|
---|
38 | DefaultDirName={commonpf}\{#MyAppPublisherShort}\{#MyAppName}
|
---|
39 | DefaultGroupName={#MyAppPublisherShort}\{#MyAppName}
|
---|
40 | AllowNoIcons=yes
|
---|
41 | OutputDir=.
|
---|
42 | Compression=lzma
|
---|
43 | SolidCompression=yes
|
---|
44 | ChangesAssociations=yes
|
---|
45 | ; "ArchitecturesInstallIn64BitMode=x64" requests that the install be
|
---|
46 | ; done in "64-bit mode" on x64, meaning it should use the native
|
---|
47 | ; 64-bit Program Files directory and the 64-bit view of the registry.
|
---|
48 | ; On all other architectures it will install in "32-bit mode".
|
---|
49 | ArchitecturesInstallIn64BitMode=x64
|
---|
50 | ; Note: We don't set ProcessorsAllowed because we want this
|
---|
51 | ; installation to run on all architectures (including Itanium,
|
---|
52 | ; since it's capable of running 32-bit code too).
|
---|
53 | WizardStyle=modern
|
---|
54 |
|
---|
55 | [Languages]
|
---|
56 | Name: "english"; MessagesFile: "compiler:Default.isl"
|
---|
57 | Name: "czech"; MessagesFile: "compiler:Languages\Czech.isl"
|
---|
58 | ;Name: "slovak"; MessagesFile: "compiler:Languages\Slovak.isl"
|
---|
59 |
|
---|
60 | [Tasks]
|
---|
61 | Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags:
|
---|
62 |
|
---|
63 | [Registry]
|
---|
64 | Root: HKLM; Subkey: "Software\Author\Application"; Flags: uninsdeletekey
|
---|
65 |
|
---|
66 | #define FileTypeName "vCard file"
|
---|
67 | Root: HKCR; Subkey: ".vcf"; ValueType: string; ValueName: ""; ValueData: "{#FileTypeName}"; Flags: uninsdeletevalue
|
---|
68 | Root: HKCR; Subkey: "{#FileTypeName}"; ValueType: string; ValueName: ""; ValueData: "{#FileTypeName}"; Flags: uninsdeletekey
|
---|
69 | Root: HKCR; Subkey: "{#FileTypeName}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"
|
---|
70 | Root: HKCR; Subkey: "{#FileTypeName}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
|
---|
71 |
|
---|
72 | #define FileTypeName "vCard file"
|
---|
73 | Root: HKCR; Subkey: ".vcard"; ValueType: string; ValueName: ""; ValueData: "{#FileTypeName}"; Flags: uninsdeletevalue
|
---|
74 | Root: HKCR; Subkey: "{#FileTypeName}"; ValueType: string; ValueName: ""; ValueData: "{#FileTypeName}"; Flags: uninsdeletekey
|
---|
75 | Root: HKCR; Subkey: "{#FileTypeName}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"
|
---|
76 | Root: HKCR; Subkey: "{#FileTypeName}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
|
---|
77 |
|
---|
78 | [Files]
|
---|
79 | Source: "{#MyAppSubDir}\lib\x86_64-win64-Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Check: Is64BitInstallMode
|
---|
80 | Source: "{#MyAppSubDir}\lib\i386-win32-Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
---|
81 | Source: "{#MyAppSubDir}\Languages\*.pot"; DestDir: "{app}\Languages"; Flags: ignoreversion
|
---|
82 | Source: "{#MyAppSubDir}\Languages\*.po"; DestDir: "{app}\Languages"; Flags: ignoreversion
|
---|
83 | Source: "{#MyAppSubDir}\Packages\Common\Languages\*.pot"; DestDir: "{app}\Languages"; Flags: ignoreversion
|
---|
84 | Source: "{#MyAppSubDir}\Packages\Common\Languages\*.po"; DestDir: "{app}\Languages"; Flags: ignoreversion
|
---|
85 | Source: "{#MyAppSubDir}\Packages\VCard\Languages\*.pot"; DestDir: "{app}\Languages"; Flags: ignoreversion
|
---|
86 | Source: "{#MyAppSubDir}\Packages\VCard\Languages\*.po"; DestDir: "{app}\Languages"; Flags: ignoreversion
|
---|
87 | Source: "{#MyAppSubDir}\Images\Profile.png"; DestDir: "{app}\Images"; Flags: ignoreversion
|
---|
88 |
|
---|
89 | [Icons]
|
---|
90 | Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
---|
91 | Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
|
---|
92 | Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
---|
93 |
|
---|
94 | [Run]
|
---|
95 | Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, "&", "&&")}}"; Flags: nowait postinstall skipifsilent
|
---|
96 |
|
---|