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
3 changes: 3 additions & 0 deletions cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"binary_path": "{{ cookiecutter.formal_name }}.exe",
"install_launcher": true,
"document_types": "",
"dotnet_version": "",
"dotnet_runtime_type": "{{ 'Core' if cookiecutter.console_app else 'Desktop' }}",
"dotnet_rollforward": "LatestMinor",
"install_options": "",
"uninstall_options": "",
"installer_path": "_installer",
Expand Down
14 changes: 14 additions & 0 deletions {{ cookiecutter.format }}/{{ cookiecutter.app_name }}.wxs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui"
xmlns:netfx="http://wixtoolset.org/schemas/v4/wxs/netfx"
xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
<Package
UpgradeCode="{{ cookiecutter.guid }}"
Expand Down Expand Up @@ -34,6 +35,19 @@
override that with our own definition to avoid confusion. -->
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />

{% if cookiecutter.dotnet_version %}
<netfx:DotNetCompatibilityCheck
Property="DOTNETRUNTIMECHECK"
RollForward="{{ cookiecutter.dotnet_rollforward }}"
RuntimeType="{{ cookiecutter.dotnet_runtime_type.lower() }}"
Platform="{{ cookiecutter.vscode_platform }}"
Version="{{ cookiecutter.dotnet_version }}" />

<Launch
Message="This application requires the .NET {{ cookiecutter.dotnet_version }} {{ cookiecutter.dotnet_runtime_type }} runtime. Please download and install it from https://dotnet.microsoft.com/download"
Condition="Installed OR DOTNETRUNTIMECHECK = 0" />
{% endif %}

<!-- This is either the per-user or the per-machine Program Files folder,
depending on the values of the ALLUSERS and MSIINSTALLPERUSER properties. -->
<StandardDirectory Id="ProgramFiles64Folder">
Expand Down