1 ; Script generated by the Inno Setup Script Wizard. |
1 ; Script generated by the Inno Setup Script Wizard. |
2 ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! |
2 ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! |
|
3 |
|
4 #ifndef VERSION |
|
5 #define FileHandle |
|
6 #define FileLine |
|
7 #define VERSION = "unknown" |
|
8 #if FileHandle = FileOpen(SourcePath + "\..\..\mercurial\__version__.py") |
|
9 #expr FileLine = FileRead(FileHandle) |
|
10 #expr FileLine = FileRead(FileHandle) |
|
11 #define VERSION = Copy(FileLine, Pos('"', FileLine)+1, Len(FileLine)-Pos('"', FileLine)-1) |
|
12 #endif |
|
13 #if FileHandle |
|
14 #expr FileClose(FileHandle) |
|
15 #endif |
|
16 #pragma message "Detected Version: " + VERSION |
|
17 #endif |
|
18 |
3 [Setup] |
19 [Setup] |
4 AppCopyright=Copyright 2005-2009 Matt Mackall and others |
20 AppCopyright=Copyright 2005-2009 Matt Mackall and others |
5 AppName=Mercurial |
21 AppName=Mercurial |
6 AppVerName=Mercurial snapshot |
22 AppVerName=Mercurial {#VERSION} |
7 InfoAfterFile=contrib/win32/postinstall.txt |
23 InfoAfterFile=contrib/win32/postinstall.txt |
8 LicenseFile=COPYING |
24 LicenseFile=COPYING |
9 ShowLanguageDialog=yes |
25 ShowLanguageDialog=yes |
10 AppPublisher=Matt Mackall and others |
26 AppPublisher=Matt Mackall and others |
11 AppPublisherURL=http://mercurial.selenic.com/ |
27 AppPublisherURL=http://mercurial.selenic.com/ |
12 AppSupportURL=http://mercurial.selenic.com/ |
28 AppSupportURL=http://mercurial.selenic.com/ |
13 AppUpdatesURL=http://mercurial.selenic.com/ |
29 AppUpdatesURL=http://mercurial.selenic.com/ |
14 AppID={{4B95A5F1-EF59-4B08-BED8-C891C46121B3} |
30 AppID={{4B95A5F1-EF59-4B08-BED8-C891C46121B3} |
15 AppContact=mercurial@selenic.com |
31 AppContact=mercurial@selenic.com |
16 OutputBaseFilename=Mercurial-snapshot |
32 OutputBaseFilename=Mercurial-{#VERSION} |
17 DefaultDirName={pf}\Mercurial |
33 DefaultDirName={pf}\Mercurial |
18 SourceDir=..\.. |
34 SourceDir=..\.. |
19 VersionInfoDescription=Mercurial distributed SCM |
35 VersionInfoDescription=Mercurial distributed SCM (version {#VERSION}) |
20 VersionInfoCopyright=Copyright 2005-2009 Matt Mackall and others |
36 VersionInfoCopyright=Copyright 2005-2009 Matt Mackall and others |
21 VersionInfoCompany=Matt Mackall and others |
37 VersionInfoCompany=Matt Mackall and others |
22 InternalCompressLevel=max |
38 InternalCompressLevel=max |
23 SolidCompression=true |
39 SolidCompression=true |
24 SetupIconFile=contrib\win32\mercurial.ico |
40 SetupIconFile=contrib\win32\mercurial.ico |