D6059: inno: move inno installer files to contrib/packaging/inno-installer

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Sun Mar 3 18:52:01 EST 2019

indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

  Let's isolate the inno installer files to their own directory
  so the separation between things is clearer.
  This required adjusting a few relative paths and references to
  the old directory.

  rHG Mercurial




diff --git a/contrib/wix/README.txt b/contrib/wix/README.txt
--- a/contrib/wix/README.txt
+++ b/contrib/wix/README.txt
@@ -10,9 +10,7 @@
 the only sane way to keep the source tree and the installer in sync.
 The MSI installer builder uses only the mercurial.ini file from the
-contrib/win32 folder, the contents of which have been historically used
-to create an InnoSetup based installer.  The rest of the files there are
+contrib/win32 folder.
 The MSI packages built by thg-winbuild require elevated (admin)
 privileges to be installed due to the installation of MSVC CRT libraries
diff --git a/contrib/win32/win32-build.txt b/contrib/packaging/inno-installer/readme.txt
rename from contrib/win32/win32-build.txt
rename to contrib/packaging/inno-installer/readme.txt
--- a/contrib/win32/win32-build.txt
+++ b/contrib/packaging/inno-installer/readme.txt
@@ -98,13 +98,14 @@
   mingw32-make html
   cd ..
-If you use ISTool, you open the C:\hg\hg-release\contrib\win32\mercurial.iss
+If you use ISTool, you open the
 file and type Ctrl-F9 to compile the installer file.
 Otherwise you run the Inno Setup compiler.  Assuming it's in the path
 you should execute:
-  iscc contrib\win32\mercurial.iss /dVERSION=foo
+  iscc contrib\packaging\inno-installer\mercurial.iss /dVERSION=foo
 Where 'foo' is the version number you would like to see in the
 'Add/Remove Applications' tool.  The installer will be placed into
@@ -114,7 +115,7 @@
 If you want to build an installer for a 64-bit mercurial, add /dARCH=x64 to
 your command line:
-  iscc contrib\win32\mercurial.iss /dARCH=x64
+  iscc contrib\packaging\inno-installer\mercurial.iss /dARCH=x64
 To automate the steps above you may want to create a batchfile based on the
 following (MinGW build chain):
@@ -125,6 +126,6 @@
   cd doc
   mingw32-make html
   cd ..
-  iscc contrib\win32\mercurial.iss /dVERSION=snapshot
+  iscc contrib\packaging\inno-installer\mercurial.iss /dVERSION=snapshot
 and run it from the root of the hg repository (c:\hg\hg-release).
diff --git a/contrib/win32/mercurial.iss b/contrib/packaging/inno-installer/mercurial.iss
rename from contrib/win32/mercurial.iss
rename to contrib/packaging/inno-installer/mercurial.iss
--- a/contrib/win32/mercurial.iss
+++ b/contrib/packaging/inno-installer/mercurial.iss
@@ -5,7 +5,7 @@
 #define FileHandle
 #define FileLine
 #define VERSION = "unknown"
-#if FileHandle = FileOpen(SourcePath + "\..\..\mercurial\__version__.py")
+#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)
@@ -43,7 +43,7 @@
 AppContact=mercurial at mercurial-scm.org
 VersionInfoDescription=Mercurial distributed SCM (version {#VERSION})
 VersionInfoCopyright=Copyright 2005-2019 Matt Mackall and others
 VersionInfoCompany=Matt Mackall and others

To: indygreg, #hg-reviewers
Cc: mercurial-devel

More information about the Mercurial-devel mailing list