Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,10 @@ looks something like::

The executable in ``x64/Release`` will start your application.

This project can now be compiled with `WiX <https://wixtoolset.org>`__ to
produce an MSI file. This is a three step process. Open a command prompt,
and change into the ``My Project`` directory. Then:
This project can now be compiled with `WiX <https://wixtoolset.org>`__ to produce an MSI
file. Open a command prompt, and change into the ``My Project`` directory. Then::

1. Generate a manifest of the files in your project::

C:\...>"%WIX%\bin\heat.exe" dir x64/Release -gg -sfrag -sreg -srd -scom -dr my_project_ROOTDIR -cg my_project_COMPONENTS -var var.SourceDir -out my-project-manifest.wxs

2. Compile the ``.wxs`` files::

C:\...>"%WIX%\bin\candle.exe" -ext WixUtilExtension -ext WixUIExtension -dSourceDir=x64/Release -arch x64 my-project.wxs my-project-manifest.wxs

3. Link the compiled output to produce the MSI::

C:\...>"%WIX%\bin\light.exe" -ext WixUtilExtension -ext WixUIExtension -loc unicode.wxl my-project.wixobj my-project-manifest.wixobj -o "My Project.msi"
C:\...>wix build -ext WixToolset.UI.wixext -arch x64 my-project.wxs -loc unicode.wxl -o "My Project.msi"

The MSI file can then be used to install your application. When installed, your
application will have an entry in your Start menu.
Expand Down
1 change: 1 addition & 0 deletions cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"guid": "1409c8f5-c276-4cf3-a2fd-defcbdfef9a2",
"install_scope": "",
"use_full_install_path": true,
"package_path": "C:\\path\\to\\content",
"binary_path": "{{ cookiecutter.formal_name }}.exe",
"document_types": "",
"python_version": "3.X.0",
Expand Down
3 changes: 3 additions & 0 deletions {{ cookiecutter.format }}/briefcase.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Generated using Python {{ cookiecutter.python_version }}
[briefcase]
target_version = "0.3.24"

[paths]
app_path = "x64/Release/app"
app_packages_path = "x64/Release/app_packages"
Expand Down
9 changes: 6 additions & 3 deletions {{ cookiecutter.format }}/unicode.wxl
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<WixLocalization Codepage="utf-8" xmlns="http://schemas.microsoft.com/wix/2006/localization">
<String Id="InstallScopeDlgPerMachineDescription">[ProductName] will be installed in a per-machine folder and be available for all users. You must have local Administrator privileges.</String>
<WixLocalization Culture="en-US" xmlns="http://wixtoolset.org/schemas/v4/wxl">
<!-- We override this string to remove the sentence "You can change the default
installation folder", which is an option we don't currently offer. -->
<String
Id="InstallScopeDlgPerMachineDescription"
Value="[ProductName] will be installed in a per-machine folder and be available for all users. You must have local Administrator privileges." />
</WixLocalization>
Loading