##// END OF EJS Templates
win32: update Inno Setup installer script and extensions list
Pascal Quantin -
r19512:f84036df stable
parent child Browse files
Show More
@@ -1,97 +1,98 b''
1 1 ; System-wide Mercurial config file.
2 2 ;
3 3 ; !!! Do Not Edit This File !!!
4 4 ;
5 5 ; This file will be replaced by the installer on every upgrade.
6 6 ; Editing this file can cause strange side effects on Vista.
7 7 ;
8 8 ; http://bitbucket.org/tortoisehg/stable/issue/135
9 9 ;
10 10 ; To change settings you see in this file, override (or enable) them in
11 11 ; your user Mercurial.ini file, where USERNAME is your Windows user name:
12 12 ;
13 13 ; XP or older - C:\Documents and Settings\USERNAME\Mercurial.ini
14 14 ; Vista or later - C:\Users\USERNAME\Mercurial.ini
15 15
16 16
17 17 [ui]
18 18 ; editor used to enter commit logs, etc. Most text editors will work.
19 19 editor = notepad
20 20 ; show changed files and be a bit more verbose if True
21 21 ; verbose = True
22 22
23 23 ; username data to appear in commits
24 24 ; it usually takes the form: Joe User <joe.user@host.com>
25 25 ; username = Joe User <j.user@example.com>
26 26
27 27 ; In order to push/pull over ssh you must specify an ssh tool
28 28 ;ssh = "C:\Progra~1\TortoiseSVN\bin\TortoisePlink.exe" -ssh -2
29 29 ;ssh = C:\cygwin\bin\ssh
30 30
31 31 ;
32 32 ; For more information about mercurial extensions, start here
33 33 ; http://www.selenic.com/mercurial/wiki/index.cgi/UsingExtensions
34 34 ;
35 35 ; Extensions shipped with Mercurial
36 36 ;
37 37 [extensions]
38 38 ;acl =
39 ;blackbox =
39 40 ;bugzilla =
40 41 ;children =
41 42 ;churn =
42 43 ;color =
43 44 ;convert =
44 45 ;eol =
45 46 ;extdiff =
46 47 ;fetch =
47 48 ;gpg =
48 49 ;graphlog =
49 50 ;hgcia =
50 51 ;hgk =
51 52 ;highlight =
52 53 ;histedit =
53 54 ;interhg =
54 55 ;largefiles =
55 56 ;keyword =
56 57 ;mq =
57 58 ;notify =
58 59 ;pager =
59 60 ;patchbomb =
60 61 ;progress =
61 62 ;purge =
62 63 ;rebase =
63 64 ;record =
64 65 ;relink =
65 66 ;schemes =
66 67 ;share =
67 68 ;transplant =
68 69 ;win32mbcs =
69 70 ;zeroconf =
70 71
71 72 ;
72 73 ; Define external diff commands
73 74 ;
74 75 [extdiff]
75 76 ;cmd.bc3diff = C:\Program Files\Beyond Compare 3\BCompare.exe
76 77 ;cmd.vdiff = C:\Progra~1\TortoiseSVN\bin\TortoiseMerge.exe
77 78 ;cmd.vimdiff = gvim.exe
78 79 ;opts.vimdiff = -f "+next" "+execute 'DirDiff' fnameescape(argv(0)) fnameescape(argv(1))"
79 80
80 81
81 82 [hgk]
82 83 ; Replace the following with your path to hgk, uncomment it and
83 84 ; install ActiveTcl (or another win32 port like tclkit)
84 85 ; path="C:\Program Files\Mercurial\Contrib\hgk.tcl"
85 86 ; vdiff=vdiff
86 87
87 88
88 89 ;
89 90 ; The git extended diff format can represent binary files, file
90 91 ; permission changes, and rename information that the normal patch format
91 92 ; cannot describe. However it is also not compatible with tools which
92 93 ; expect normal patches. so enable git patches at your own risk.
93 94 ;
94 95 [diff]
95 96 ;git = false
96 97 ;nodates = false
97 98
@@ -1,148 +1,146 b''
1 1 ; Script generated by the Inno Setup Script Wizard.
2 2 ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
3 3
4 4 #ifndef VERSION
5 5 #define FileHandle
6 6 #define FileLine
7 7 #define VERSION = "unknown"
8 8 #if FileHandle = FileOpen(SourcePath + "\..\..\mercurial\__version__.py")
9 9 #expr FileLine = FileRead(FileHandle)
10 10 #expr FileLine = FileRead(FileHandle)
11 11 #define VERSION = Copy(FileLine, Pos('"', FileLine)+1, Len(FileLine)-Pos('"', FileLine)-1)
12 12 #endif
13 13 #if FileHandle
14 14 #expr FileClose(FileHandle)
15 15 #endif
16 16 #pragma message "Detected Version: " + VERSION
17 17 #endif
18 18
19 19 #ifndef ARCH
20 20 #define ARCH = "x86"
21 21 #endif
22 22
23 23 [Setup]
24 24 AppCopyright=Copyright 2005-2010 Matt Mackall and others
25 25 AppName=Mercurial
26 26 #if ARCH == "x64"
27 27 AppVerName=Mercurial {#VERSION} (64-bit)
28 28 OutputBaseFilename=Mercurial-{#VERSION}-x64
29 29 ArchitecturesAllowed=x64
30 30 ArchitecturesInstallIn64BitMode=x64
31 31 #else
32 32 AppVerName=Mercurial {#VERSION}
33 33 OutputBaseFilename=Mercurial-{#VERSION}
34 34 #endif
35 35 InfoAfterFile=contrib/win32/postinstall.txt
36 36 LicenseFile=COPYING
37 37 ShowLanguageDialog=yes
38 38 AppPublisher=Matt Mackall and others
39 39 AppPublisherURL=http://mercurial.selenic.com/
40 40 AppSupportURL=http://mercurial.selenic.com/
41 41 AppUpdatesURL=http://mercurial.selenic.com/
42 42 AppID={{4B95A5F1-EF59-4B08-BED8-C891C46121B3}
43 43 AppContact=mercurial@selenic.com
44 44 DefaultDirName={pf}\Mercurial
45 45 SourceDir=..\..
46 46 VersionInfoDescription=Mercurial distributed SCM (version {#VERSION})
47 47 VersionInfoCopyright=Copyright 2005-2010 Matt Mackall and others
48 48 VersionInfoCompany=Matt Mackall and others
49 49 InternalCompressLevel=max
50 50 SolidCompression=true
51 51 SetupIconFile=contrib\win32\mercurial.ico
52 52 AllowNoIcons=true
53 53 DefaultGroupName=Mercurial
54 54 PrivilegesRequired=none
55 55
56 56 [Files]
57 57 Source: contrib\mercurial.el; DestDir: {app}/Contrib
58 58 Source: contrib\vim\*.*; DestDir: {app}/Contrib/Vim
59 59 Source: contrib\zsh_completion; DestDir: {app}/Contrib
60 60 Source: contrib\bash_completion; DestDir: {app}/Contrib
61 61 Source: contrib\tcsh_completion; DestDir: {app}/Contrib
62 62 Source: contrib\tcsh_completion_build.sh; DestDir: {app}/Contrib
63 63 Source: contrib\hgk; DestDir: {app}/Contrib; DestName: hgk.tcl
64 64 Source: contrib\xml.rnc; DestDir: {app}/Contrib
65 Source: contrib\shrink-revlog.py; DestDir: {app}/Contrib
66 65 Source: contrib\mercurial.el; DestDir: {app}/Contrib
67 66 Source: contrib\mq.el; DestDir: {app}/Contrib
68 67 Source: contrib\hgweb.fcgi; DestDir: {app}/Contrib
69 68 Source: contrib\hgweb.wsgi; DestDir: {app}/Contrib
70 69 Source: contrib\win32\ReadMe.html; DestDir: {app}; Flags: isreadme
71 70 Source: contrib\mergetools.hgrc; DestDir: {tmp};
72 71 Source: contrib\win32\mercurial.ini; DestDir: {app}; DestName: Mercurial.ini; Check: CheckFile; AfterInstall: ConcatenateFiles;
73 72 Source: contrib\win32\postinstall.txt; DestDir: {app}; DestName: ReleaseNotes.txt
74 73 Source: dist\hg.exe; DestDir: {app}; AfterInstall: Touch('{app}\hg.exe.local')
75 74 #if ARCH == "x64"
76 75 Source: dist\*.dll; Destdir: {app}
77 76 Source: dist\*.pyd; Destdir: {app}
78 77 #else
79 78 Source: dist\python*.dll; Destdir: {app}; Flags: skipifsourcedoesntexist
80 79 Source: dist\msvc*.dll; DestDir: {app}; Flags: skipifsourcedoesntexist
81 80 Source: dist\w9xpopen.exe; DestDir: {app}
82 81 #endif
83 82 Source: dist\Microsoft.VC*.CRT.manifest; DestDir: {app}; Flags: skipifsourcedoesntexist
84 83 Source: dist\library.zip; DestDir: {app}
85 84 Source: dist\add_path.exe; DestDir: {app}
86 85 Source: dist\cacert.pem; Destdir: {app}
87 86 Source: doc\*.html; DestDir: {app}\Docs
88 87 Source: doc\style.css; DestDir: {app}\Docs
89 88 Source: mercurial\help\*.txt; DestDir: {app}\help
90 89 Source: mercurial\locale\*.*; DestDir: {app}\locale; Flags: recursesubdirs createallsubdirs skipifsourcedoesntexist
91 90 Source: mercurial\templates\*.*; DestDir: {app}\Templates; Flags: recursesubdirs createallsubdirs
92 91 Source: CONTRIBUTORS; DestDir: {app}; DestName: Contributors.txt
93 92 Source: COPYING; DestDir: {app}; DestName: Copying.txt
94 93
95 94 [INI]
96 95 Filename: {app}\Mercurial.url; Section: InternetShortcut; Key: URL; String: http://mercurial.selenic.com/
97 96 Filename: {app}\Mercurial.ini; Section: web; Key: cacerts; String: {app}\cacert.pem
98 97
99 98 [UninstallDelete]
100 99 Type: files; Name: {app}\Mercurial.url
101 Type: files; Name: {app}\Contrib\shrink-revlog.pyc
102 100
103 101 [Icons]
104 102 Name: {group}\Uninstall Mercurial; Filename: {uninstallexe}
105 103 Name: {group}\Mercurial Command Reference; Filename: {app}\Docs\hg.1.html
106 104 Name: {group}\Mercurial Configuration Files; Filename: {app}\Docs\hgrc.5.html
107 105 Name: {group}\Mercurial Ignore Files; Filename: {app}\Docs\hgignore.5.html
108 106 Name: {group}\Mercurial Web Site; Filename: {app}\Mercurial.url
109 107
110 108 [Run]
111 109 Filename: "{app}\add_path.exe"; Parameters: "{app}"; Flags: postinstall; Description: "Add the installation path to the search path"
112 110
113 111 [UninstallRun]
114 112 Filename: "{app}\add_path.exe"; Parameters: "/del {app}"
115 113
116 114 [UninstallDelete]
117 115 Type: files; Name: "{app}\hg.exe.local"
118 116
119 117 [Code]
120 118 var
121 119 WriteFile: Boolean;
122 120 CheckDone: Boolean;
123 121
124 122 function CheckFile(): Boolean;
125 123 begin
126 124 if not CheckDone then begin
127 125 WriteFile := True;
128 126 if FileExists(ExpandConstant(CurrentFileName)) then begin
129 127 WriteFile := MsgBox('' + ExpandConstant(CurrentFileName) + '' #13#13 'The file already exists.' #13#13 'Would you like Setup to overwrite it?', mbConfirmation, MB_YESNO) = idYes;
130 128 end;
131 129 CheckDone := True;
132 130 end;
133 131 Result := WriteFile;
134 132 end;
135 133
136 134 procedure ConcatenateFiles();
137 135 var
138 136 MergeConfigs: TArrayOfString;
139 137 begin
140 138 if LoadStringsFromFile(ExpandConstant('{tmp}\mergetools.hgrc'),MergeConfigs) then begin
141 139 SaveStringsToFile(ExpandConstant(CurrentFileName),MergeConfigs,True);
142 140 end;
143 141 end;
144 142
145 143 procedure Touch(fn: String);
146 144 begin
147 145 SaveStringToFile(ExpandConstant(fn), '', False);
148 146 end;
General Comments 0
You need to be logged in to leave comments. Login now