mercurial.iss
127 lines
| 4.9 KiB
| text/plain
|
TextLexer
Bryan O'Sullivan
|
r1290 | ; Script generated by the Inno Setup Script Wizard. | ||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! | ||||
Steve Borho
|
r9356 | |||
#ifndef VERSION | ||||
#define FileHandle | ||||
#define FileLine | ||||
#define VERSION = "unknown" | ||||
#if FileHandle = FileOpen(SourcePath + "\..\..\mercurial\__version__.py") | ||||
#expr FileLine = FileRead(FileHandle) | ||||
#expr FileLine = FileRead(FileHandle) | ||||
#define VERSION = Copy(FileLine, Pos('"', FileLine)+1, Len(FileLine)-Pos('"', FileLine)-1) | ||||
#endif | ||||
#if FileHandle | ||||
#expr FileClose(FileHandle) | ||||
#endif | ||||
#pragma message "Detected Version: " + VERSION | ||||
#endif | ||||
Bryan O'Sullivan
|
r1290 | [Setup] | ||
Pascal Quantin
|
r10209 | AppCopyright=Copyright 2005-2010 Matt Mackall and others | ||
Bryan O'Sullivan
|
r1290 | AppName=Mercurial | ||
Steve Borho
|
r9356 | AppVerName=Mercurial {#VERSION} | ||
Bryan O'Sullivan
|
r1290 | InfoAfterFile=contrib/win32/postinstall.txt | ||
LicenseFile=COPYING | ||||
ShowLanguageDialog=yes | ||||
AppPublisher=Matt Mackall and others | ||||
Dirkjan Ochtman
|
r8936 | AppPublisherURL=http://mercurial.selenic.com/ | ||
AppSupportURL=http://mercurial.selenic.com/ | ||||
AppUpdatesURL=http://mercurial.selenic.com/ | ||||
Bryan O'Sullivan
|
r1290 | AppID={{4B95A5F1-EF59-4B08-BED8-C891C46121B3} | ||
AppContact=mercurial@selenic.com | ||||
Steve Borho
|
r9356 | OutputBaseFilename=Mercurial-{#VERSION} | ||
Steve Borho
|
r5625 | DefaultDirName={pf}\Mercurial | ||
Steve Borho
|
r5626 | SourceDir=..\.. | ||
Steve Borho
|
r9356 | VersionInfoDescription=Mercurial distributed SCM (version {#VERSION}) | ||
Pascal Quantin
|
r10209 | VersionInfoCopyright=Copyright 2005-2010 Matt Mackall and others | ||
Bryan O'Sullivan
|
r1290 | VersionInfoCompany=Matt Mackall and others | ||
InternalCompressLevel=max | ||||
SolidCompression=true | ||||
Pascal Quantin
|
r7659 | SetupIconFile=contrib\win32\mercurial.ico | ||
Bryan O'Sullivan
|
r1290 | AllowNoIcons=true | ||
DefaultGroupName=Mercurial | ||||
Lee Cantey
|
r4629 | PrivilegesRequired=none | ||
Bryan O'Sullivan
|
r1290 | |||
[Files] | ||||
Source: contrib\mercurial.el; DestDir: {app}/Contrib | ||||
Steve Borho
|
r5627 | Source: contrib\vim\*.*; DestDir: {app}/Contrib/Vim | ||
Steve Borho
|
r5628 | Source: contrib\zsh_completion; DestDir: {app}/Contrib | ||
Martin Geisler
|
r10029 | Source: contrib\bash_completion; DestDir: {app}/Contrib | ||
Pascal Quantin
|
r10031 | Source: contrib\tcsh_completion; DestDir: {app}/Contrib | ||
Source: contrib\tcsh_completion_build.sh; DestDir: {app}/Contrib | ||||
Pascal Quantin
|
r7663 | Source: contrib\hgk; DestDir: {app}/Contrib; DestName: hgk.tcl | ||
Pascal Quantin
|
r10182 | Source: contrib\xml.rnc; DestDir: {app}/Contrib | ||
Pascal Quantin
|
r10235 | Source: contrib\shrink-revlog.py; DestDir: {app}/Contrib | ||
Lee Cantey
|
r1844 | Source: contrib\win32\ReadMe.html; DestDir: {app}; Flags: isreadme | ||
Pascal Quantin
|
r7662 | Source: contrib\mergetools.hgrc; DestDir: {tmp}; | ||
Source: contrib\win32\mercurial.ini; DestDir: {app}; DestName: Mercurial.ini; Check: CheckFile; AfterInstall: ConcatenateFiles; | ||||
Lee Cantey
|
r1844 | Source: contrib\win32\postinstall.txt; DestDir: {app}; DestName: ReleaseNotes.txt | ||
Lee Cantey
|
r4629 | Source: dist\hg.exe; DestDir: {app}; AfterInstall: Touch('{app}\hg.exe.local') | ||
Pascal Quantin
|
r8057 | Source: dist\python*.dll; Destdir: {app}; Flags: skipifsourcedoesntexist | ||
Lee Cantey
|
r1844 | Source: dist\library.zip; DestDir: {app} | ||
Steve Borho
|
r9357 | Source: dist\mfc*.dll; DestDir: {app}; Flags: skipifsourcedoesntexist | ||
Source: dist\msvc*.dll; DestDir: {app}; Flags: skipifsourcedoesntexist | ||||
Pascal Quantin
|
r8058 | Source: dist\Microsoft.VC*.CRT.manifest; DestDir: {app}; Flags: skipifsourcedoesntexist | ||
Source: dist\Microsoft.VC*.MFC.manifest; DestDir: {app}; Flags: skipifsourcedoesntexist | ||||
Lee Cantey
|
r1844 | Source: dist\w9xpopen.exe; DestDir: {app} | ||
Marco Barisione
|
r2384 | Source: dist\add_path.exe; DestDir: {app} | ||
Lee Cantey
|
r4822 | Source: doc\*.html; DestDir: {app}\Docs | ||
Pascal Quantin
|
r9633 | Source: doc\style.css; DestDir: {app}\Docs | ||
Pascal Quantin
|
r10002 | Source: mercurial\help\*.txt; DestDir: {app}\help | ||
Patrick Mezard
|
r10083 | Source: mercurial\locale\*.*; DestDir: {app}\locale; Flags: recursesubdirs createallsubdirs | ||
Pascal Quantin
|
r10002 | Source: mercurial\templates\*.*; DestDir: {app}\Templates; Flags: recursesubdirs createallsubdirs | ||
Lee Cantey
|
r1844 | Source: CONTRIBUTORS; DestDir: {app}; DestName: Contributors.txt | ||
Bryan O'Sullivan
|
r1290 | Source: COPYING; DestDir: {app}; DestName: Copying.txt | ||
[INI] | ||||
Dirkjan Ochtman
|
r8936 | Filename: {app}\Mercurial.url; Section: InternetShortcut; Key: URL; String: http://mercurial.selenic.com/ | ||
Bryan O'Sullivan
|
r1290 | |||
[UninstallDelete] | ||||
Type: files; Name: {app}\Mercurial.url | ||||
Pascal Quantin
|
r10235 | Type: files; Name: {app}\Contrib\shrink-revlog.pyc | ||
Bryan O'Sullivan
|
r1290 | |||
[Icons] | ||||
Name: {group}\Uninstall Mercurial; Filename: {uninstallexe} | ||||
Lee Cantey
|
r4822 | Name: {group}\Mercurial Command Reference; Filename: {app}\Docs\hg.1.html | ||
Pascal Quantin
|
r8056 | Name: {group}\Mercurial Configuration Files; Filename: {app}\Docs\hgrc.5.html | ||
Name: {group}\Mercurial Ignore Files; Filename: {app}\Docs\hgignore.5.html | ||||
Bryan O'Sullivan
|
r1290 | Name: {group}\Mercurial Web Site; Filename: {app}\Mercurial.url | ||
Marco Barisione
|
r2384 | |||
[Run] | ||||
Filename: "{app}\add_path.exe"; Parameters: "{app}"; Flags: postinstall; Description: "Add the installation path to the search path" | ||||
[UninstallRun] | ||||
Filename: "{app}\add_path.exe"; Parameters: "/del {app}" | ||||
Lee Cantey
|
r4629 | |||
[UninstallDelete] | ||||
Type: files; Name: "{app}\hg.exe.local" | ||||
Pascal Quantin
|
r7662 | [Code] | ||
var | ||||
WriteFile: Boolean; | ||||
CheckDone: Boolean; | ||||
Lee Cantey
|
r4629 | |||
Pascal Quantin
|
r7662 | function CheckFile(): Boolean; | ||
begin | ||||
if not CheckDone then begin | ||||
WriteFile := True; | ||||
if FileExists(ExpandConstant(CurrentFileName)) then begin | ||||
WriteFile := MsgBox('' + ExpandConstant(CurrentFileName) + '' #13#13 'The file already exists.' #13#13 'Would you like Setup to overwrite it?', mbConfirmation, MB_YESNO) = idYes; | ||||
end; | ||||
CheckDone := True; | ||||
end; | ||||
Result := WriteFile; | ||||
end; | ||||
procedure ConcatenateFiles(); | ||||
var | ||||
MergeConfigs: TArrayOfString; | ||||
begin | ||||
if LoadStringsFromFile(ExpandConstant('{tmp}\mergetools.hgrc'),MergeConfigs) then begin | ||||
SaveStringsToFile(ExpandConstant(CurrentFileName),MergeConfigs,True); | ||||
end; | ||||
end; | ||||
Lee Cantey
|
r4629 | procedure Touch(fn: String); | ||
begin | ||||
SaveStringToFile(ExpandConstant(fn), '', False); | ||||
end; | ||||