Skip to content

Commit f626b78

Browse files
authored
Updates to support Constructor (#71)
1 parent 69cf5ba commit f626b78

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

cookiecutter.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"use_full_install_path": true,
1616
"package_path": "C:\\path\\to\\content",
1717
"binary_path": "{{ cookiecutter.formal_name }}.exe",
18+
"install_launcher": true,
1819
"document_types": "",
1920
"install_options": "",
2021
"installer_path": "_installer",

{{ cookiecutter.format }}/{{ cookiecutter.app_name }}.wxs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
Include=".\extras\**" />
5454
</ComponentGroup>
5555

56+
{% if cookiecutter.install_launcher -%}
5657
<StandardDirectory Id="ProgramMenuFolder">
5758
<Directory Id="ProgramMenuSubfolder" Name="{{ cookiecutter.formal_name|xml_escape }}">
5859
<Component Id="ApplicationShortcuts">
@@ -73,6 +74,7 @@
7374
</Component>
7475
</Directory>
7576
</StandardDirectory>
77+
{%- endif %}
7678

7779
{% if cookiecutter.document_types -%}
7880
<SetProperty
@@ -112,7 +114,11 @@
112114
Display="expand"
113115
>
114116
<ComponentGroupRef Id="{{ cookiecutter.module_name }}_COMPONENTS" />
117+
118+
{% if cookiecutter.install_launcher -%}
115119
<ComponentRef Id="ApplicationShortcuts" />
120+
{%- endif %}
121+
116122
{%- for document_type_id in cookiecutter.document_types.keys()|sort %}
117123
<ComponentRef Id="FileAssociation.{{ document_type_id }}" />
118124
{%- endfor %}

0 commit comments

Comments
 (0)