mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
Estimated hours taken: 50 Branches: main Implement a Wix source file generator. Wix is an XML language used to describe Windows installer packages (.msi files). NEWS: Mention the new library. extras/Mmakefile: Include windows_installer_generator in SUBDIRS so it is built when mmake is run from the extras directory. extras/README: Mention the new library. extras/curs/curs.m: Use new module qualifier. extras/windows_installer_generator/README: extras/windows_installer_generator/wix.m: extras/windows_installer_generator/wix_files.m: extras/windows_installer_generator/wix_gui.m: extras/windows_installer_generator/wix_installer.m: extras/windows_installer_generator/wix_language.m: extras/windows_installer_generator/wix_util.m: Implement a wix library for generating Wix source files. extras/windows_installer_generator/sample/Mercury.options: extras/windows_installer_generator/sample/README: extras/windows_installer_generator/sample/gen_merc_wxs.m: extras/windows_installer_generator/sample/images/Exclam.ico: extras/windows_installer_generator/sample/images/Info.ico: extras/windows_installer_generator/sample/images/banner.bmp: extras/windows_installer_generator/sample/images/bg.bmp: Implement an example installer generator for the Mercury distribution.
31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
This is the top-level module for a Mercury Wix source file generator.
|
|
WiX is an XML language that is used to generate Microsoft Windows Installer
|
|
(.msi) packages.
|
|
|
|
To compile the XML into an .msi file you need the WiX compiler, available
|
|
from wix.sourceforge.net. You will also need a tool to generate
|
|
GUID. GUIDs are unique identifiers that Windows uses to identify all
|
|
the components in a package. A GUID generator for Linux is uuidgen.
|
|
Microsoft Visual Studio also comes with a GUID generator, uuidgen.exe.
|
|
|
|
For documentation on the toolkit API see wix.m in this directory.
|
|
|
|
The predicate wix.installer.generate_installer will generate a .wxs file
|
|
based on information in its arguments.
|
|
|
|
The .wxs file can then be compiled to a .msi file using the Wix toolset.
|
|
The following commands will generate <filename>.msi, given <filename>.wxs.
|
|
|
|
candle <filename>.wxs
|
|
light <filename>.wixobj
|
|
|
|
NOTE that there are still a few features missing from the current
|
|
implementation. For example the user cannot select different features of a
|
|
product to install -- it's all or nothing. Also Windows installer error codes
|
|
are not converted into friendlier error messages at the moment. The installer
|
|
wizard is also not as customizable as it could be.
|
|
|
|
To build the wix library execute the command:
|
|
|
|
mmc --make libwix
|