mercurial.iss
82 lines
| 2.4 KiB
| text/plain
|
TextLexer
|
r42012 | ; Script generated by the Inno Setup Script Wizard. | ||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! | ||||
#ifndef ARCH | ||||
#define ARCH = "x86" | ||||
#endif | ||||
[Setup] | ||||
|
r44631 | AppCopyright=Copyright 2005-2020 Matt Mackall and others | ||
|
r42012 | AppName=Mercurial | ||
AppVersion={#VERSION} | ||||
#if ARCH == "x64" | ||||
AppVerName=Mercurial {#VERSION} (64-bit) | ||||
OutputBaseFilename=Mercurial-{#VERSION}-x64 | ||||
ArchitecturesAllowed=x64 | ||||
ArchitecturesInstallIn64BitMode=x64 | ||||
#else | ||||
AppVerName=Mercurial {#VERSION} | ||||
OutputBaseFilename=Mercurial-{#VERSION} | ||||
#endif | ||||
|
r43916 | InfoAfterFile=../postinstall.txt | ||
LicenseFile=Copying.txt | ||||
|
r42012 | ShowLanguageDialog=yes | ||
AppPublisher=Matt Mackall and others | ||||
AppPublisherURL=https://mercurial-scm.org/ | ||||
AppSupportURL=https://mercurial-scm.org/ | ||||
AppUpdatesURL=https://mercurial-scm.org/ | ||||
|
r43915 | {{ 'AppID={{4B95A5F1-EF59-4B08-BED8-C891C46121B3}' }} | ||
|
r42012 | AppContact=mercurial@mercurial-scm.org | ||
DefaultDirName={pf}\Mercurial | ||||
|
r43916 | SourceDir=stage | ||
|
r42012 | VersionInfoDescription=Mercurial distributed SCM (version {#VERSION}) | ||
|
r44631 | VersionInfoCopyright=Copyright 2005-2020 Matt Mackall and others | ||
|
r42012 | VersionInfoCompany=Matt Mackall and others | ||
InternalCompressLevel=max | ||||
SolidCompression=true | ||||
|
r43916 | SetupIconFile=../mercurial.ico | ||
|
r42012 | AllowNoIcons=true | ||
DefaultGroupName=Mercurial | ||||
PrivilegesRequired=none | ||||
|
r42013 | ChangesEnvironment=true | ||
|
r42012 | |||
[Files] | ||||
|
r43916 | {% for entry in package_files -%} | ||
Source: {{ entry.source }}; DestDir: {{ entry.dest_dir }} | ||||
{%- if entry.metadata %}; {{ entry.metadata }}{% endif %} | ||||
{% endfor %} | ||||
|
r42012 | |||
[INI] | ||||
Filename: {app}\Mercurial.url; Section: InternetShortcut; Key: URL; String: https://mercurial-scm.org/ | ||||
[UninstallDelete] | ||||
Type: files; Name: {app}\Mercurial.url | ||||
|
r44614 | Type: filesandordirs; Name: {app}\defaultrc | ||
|
r42012 | |||
[Icons] | ||||
Name: {group}\Uninstall Mercurial; Filename: {uninstallexe} | ||||
Name: {group}\Mercurial Command Reference; Filename: {app}\Docs\hg.1.html | ||||
Name: {group}\Mercurial Configuration Files; Filename: {app}\Docs\hgrc.5.html | ||||
Name: {group}\Mercurial Ignore Files; Filename: {app}\Docs\hgignore.5.html | ||||
Name: {group}\Mercurial Web Site; Filename: {app}\Mercurial.url | ||||
|
r42013 | [Tasks] | ||
Name: modifypath; Description: Add the installation path to the search path; Flags: unchecked | ||||
|
r42012 | |||
[Code] | ||||
procedure Touch(fn: String); | ||||
begin | ||||
SaveStringToFile(ExpandConstant(fn), '', False); | ||||
end; | ||||
|
r42013 | |||
const | ||||
ModPathName = 'modifypath'; | ||||
ModPathType = 'user'; | ||||
function ModPathDir(): TArrayOfString; | ||||
begin | ||||
setArrayLength(Result, 1) | ||||
Result[0] := ExpandConstant('{app}'); | ||||
end; | ||||
|
r43915 | |||
{% include 'modpath.iss' %} | ||||