| 1 |
WiX Installer |
| 2 |
============= |
| 3 |
|
| 4 |
The files in this directory are used to produce an MSI installer using |
| 5 |
the WiX Toolset (http://wixtoolset.org/). |
| 6 |
|
| 7 |
The MSI installers require elevated (admin) privileges due to the |
| 8 |
installation of MSVC CRT libraries into the Windows system store. See |
| 9 |
the Inno Setup installers in the ``inno`` sibling directory for installers |
| 10 |
that do not have this requirement. |
| 11 |
|
| 12 |
Requirements |
| 13 |
============ |
| 14 |
|
| 15 |
Building the WiX installer requires a Windows machine. |
| 16 |
|
| 17 |
The following system dependencies must be installed: |
| 18 |
|
| 19 |
* Python 3.8+ (to run the ``packaging.py`` script) |
| 20 |
|
| 21 |
Building |
| 22 |
======== |
| 23 |
|
| 24 |
The ``packaging.py`` script automates the process of producing an MSI |
| 25 |
installer. It manages fetching and configuring non-system dependencies |
| 26 |
(such as gettext, and various Python packages). It can be run from a |
| 27 |
basic cmd.exe Window (i.e. activating the MSBuildTools environment is |
| 28 |
not required). |
| 29 |
|
| 30 |
From the prompt, change to the Mercurial source directory. e.g. |
| 31 |
``cd c:\src\hg``. |
| 32 |
|
| 33 |
Next, invoke ``packaging.py`` to produce an MSI installer.:: |
| 34 |
|
| 35 |
$ py -3 contrib\packaging\packaging.py \ |
| 36 |
wix --pyoxidizer-target x86_64-pc-windows-msvc |
| 37 |
|
| 38 |
If everything runs as intended, dependencies will be fetched and |
| 39 |
configured into the ``build`` sub-directory, Mercurial will be built, |
| 40 |
and an installer placed in the ``dist`` sub-directory. The final line |
| 41 |
of output should print the name of the generated installer. |
| 42 |
|
| 43 |
Additional options may be configured. Run ``packaging.py wix --help`` |
| 44 |
to see a list of program flags. |
| 45 |
|
| 46 |
Relationship to TortoiseHG |
| 47 |
========================== |
| 48 |
|
| 49 |
TortoiseHG uses the WiX files in this directory. |
| 50 |
|
| 51 |
The code for building TortoiseHG installers lives at |
| 52 |
https://foss.heptapod.net/mercurial/tortoisehg/thg-winbuild and is maintained by |
| 53 |
Steve Borho ([email protected]). |
| 54 |
|
| 55 |
When changing behavior of the WiX installer, be sure to notify |
| 56 |
the TortoiseHG Project of the changes so they have ample time |
| 57 |
provide feedback and react to those changes. |