Debian Codegraph @

contrib/packaging/inno/mercurial.iss

raw
1 ; Script generated by the Inno Setup Script Wizard.
2 ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
3
4 #ifndef ARCH
5 #define ARCH = "x86"
6 #endif
7
8 [Setup]
9 AppCopyright=Copyright 2005-2026 Olivia Mackall and others
10 AppName=Mercurial
11 AppVersion={#VERSION}
12 OutputBaseFilename=Mercurial-{#VERSION}{#SUFFIX}
13 #if ARCH == "x64"
14 AppVerName=Mercurial {#VERSION} (64-bit)
15 ArchitecturesAllowed=x64
16 ArchitecturesInstallIn64BitMode=x64
17 #else
18 AppVerName=Mercurial {#VERSION}
19 #endif
20 InfoAfterFile=../postinstall.txt
21 LicenseFile=Copying.txt
22 ShowLanguageDialog=yes
23 AppPublisher=Olivia Mackall and others
24 AppPublisherURL=https://mercurial-scm.org/
25 AppSupportURL=https://mercurial-scm.org/
26 AppUpdatesURL=https://mercurial-scm.org/
27 {{ 'AppID={{4B95A5F1-EF59-4B08-BED8-C891C46121B3}' }}
28 [email protected]
29 DefaultDirName={pf}\Mercurial
30 SourceDir=stage
31 VersionInfoDescription=Mercurial distributed SCM (version {#VERSION})
32 VersionInfoCopyright=Copyright 2005-2026 Olivia Mackall and others
33 VersionInfoCompany=Olivia Mackall and others
34 VersionInfoVersion={#QUAD_VERSION}
35 InternalCompressLevel=max
36 SolidCompression=true
37 SetupIconFile=../mercurial.ico
38 AllowNoIcons=true
39 DefaultGroupName=Mercurial
40 PrivilegesRequired=none
41 ChangesEnvironment=true
42
43 [Files]
44 {% for entry in package_files -%}
45 Source: {{ entry.source }}; DestDir: {{ entry.dest_dir }}
46 {%- if entry.metadata %}; {{ entry.metadata }}{% endif %}
47 {% endfor %}
48
49 [INI]
50 Filename: {app}\Mercurial.url; Section: InternetShortcut; Key: URL; String: https://mercurial-scm.org/
51
52 [UninstallDelete]
53 Type: files; Name: {app}\Mercurial.url
54 Type: filesandordirs; Name: {app}\defaultrc
55
56 [Icons]
57 Name: {group}\Uninstall Mercurial; Filename: {uninstallexe}
58 Name: {group}\Mercurial Command Reference; Filename: {app}\Docs\hg.1.html
59 Name: {group}\Mercurial Configuration Files; Filename: {app}\Docs\hgrc.5.html
60 Name: {group}\Mercurial Ignore Files; Filename: {app}\Docs\hgignore.5.html
61 Name: {group}\Mercurial Web Site; Filename: {app}\Mercurial.url
62
63 [Tasks]
64 Name: modifypath; Description: Add the installation path to the search path; Flags: unchecked
65
66 [Code]
67 procedure Touch(fn: String);
68 begin
69 SaveStringToFile(ExpandConstant(fn), '', False);
70 end;
71
72 const
73 ModPathName = 'modifypath';
74 ModPathType = 'user';
75
76 function ModPathDir(): TArrayOfString;
77 begin
78 setArrayLength(Result, 1)
79 Result[0] := ExpandConstant('{app}');
80 end;
81
82 {% include 'modpath.iss' %}