##// END OF EJS Templates
win32: update Inno Setup script after the changes done in 95e042d77a5f
Pascal Quantin -
r25858:f8aead51 stable
parent child Browse files
Show More
@@ -1,118 +1,118 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-2015 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-2015 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 65 Source: contrib\mercurial.el; DestDir: {app}/Contrib
66 66 Source: contrib\mq.el; DestDir: {app}/Contrib
67 67 Source: contrib\hgweb.fcgi; DestDir: {app}/Contrib
68 68 Source: contrib\hgweb.wsgi; DestDir: {app}/Contrib
69 69 Source: contrib\win32\ReadMe.html; DestDir: {app}; Flags: isreadme
70 70 Source: contrib\win32\postinstall.txt; DestDir: {app}; DestName: ReleaseNotes.txt
71 71 Source: dist\hg.exe; DestDir: {app}; AfterInstall: Touch('{app}\hg.exe.local')
72 72 #if ARCH == "x64"
73 Source: dist\*.dll; Destdir: {app}
74 Source: dist\*.pyd; Destdir: {app}
73 Source: dist\lib\*.dll; Destdir: {app}\lib
74 Source: dist\lib\*.pyd; Destdir: {app}\lib
75 75 #else
76 Source: dist\w9xpopen.exe; DestDir: {app}
77 #endif
76 78 Source: dist\python*.dll; Destdir: {app}; Flags: skipifsourcedoesntexist
77 79 Source: dist\msvc*.dll; DestDir: {app}; Flags: skipifsourcedoesntexist
78 Source: dist\w9xpopen.exe; DestDir: {app}
79 #endif
80 80 Source: dist\Microsoft.VC*.CRT.manifest; DestDir: {app}; Flags: skipifsourcedoesntexist
81 Source: dist\library.zip; DestDir: {app}
81 Source: dist\lib\library.zip; DestDir: {app}\lib
82 82 Source: dist\add_path.exe; DestDir: {app}
83 83 Source: doc\*.html; DestDir: {app}\Docs
84 84 Source: doc\style.css; DestDir: {app}\Docs
85 85 Source: mercurial\help\*.txt; DestDir: {app}\help
86 86 Source: mercurial\default.d\*.rc; DestDir: {app}\default.d
87 87 Source: mercurial\locale\*.*; DestDir: {app}\locale; Flags: recursesubdirs createallsubdirs skipifsourcedoesntexist
88 88 Source: mercurial\templates\*.*; DestDir: {app}\Templates; Flags: recursesubdirs createallsubdirs
89 89 Source: CONTRIBUTORS; DestDir: {app}; DestName: Contributors.txt
90 90 Source: COPYING; DestDir: {app}; DestName: Copying.txt
91 91
92 92 [INI]
93 93 Filename: {app}\Mercurial.url; Section: InternetShortcut; Key: URL; String: http://mercurial.selenic.com/
94 94 Filename: {app}\default.d\editor.rc; Section: ui; Key: editor; String: notepad
95 95
96 96 [UninstallDelete]
97 97 Type: files; Name: {app}\Mercurial.url
98 98 Type: filesandordirs; Name: {app}\default.d
99 99 Type: files; Name: "{app}\hg.exe.local"
100 100
101 101 [Icons]
102 102 Name: {group}\Uninstall Mercurial; Filename: {uninstallexe}
103 103 Name: {group}\Mercurial Command Reference; Filename: {app}\Docs\hg.1.html
104 104 Name: {group}\Mercurial Configuration Files; Filename: {app}\Docs\hgrc.5.html
105 105 Name: {group}\Mercurial Ignore Files; Filename: {app}\Docs\hgignore.5.html
106 106 Name: {group}\Mercurial Web Site; Filename: {app}\Mercurial.url
107 107
108 108 [Run]
109 109 Filename: "{app}\add_path.exe"; Parameters: "{app}"; Flags: postinstall; Description: "Add the installation path to the search path"
110 110
111 111 [UninstallRun]
112 112 Filename: "{app}\add_path.exe"; Parameters: "/del {app}"
113 113
114 114 [Code]
115 115 procedure Touch(fn: String);
116 116 begin
117 117 SaveStringToFile(ExpandConstant(fn), '', False);
118 118 end;
General Comments 0
You need to be logged in to leave comments. Login now