From 26ea5680809f0c666e50b03684aa01827dd9679e Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Thu, 29 Oct 2020 11:10:48 -0700 Subject: [PATCH] Don't put the start menu shortcut in a folder --- install/windows/build-wxs.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/install/windows/build-wxs.py b/install/windows/build-wxs.py index 193de67..1ce0f87 100644 --- a/install/windows/build-wxs.py +++ b/install/windows/build-wxs.py @@ -51,8 +51,8 @@ def build_dir_xml(root, data): for subdata in data["dirs"]: build_dir_xml(el, subdata) - # If this is the ProgramMenuSubfolder, add the menu component - if "id" in data and data["id"] == "ProgramMenuSubfolder": + # If this is the ProgramMenuFolder, add the menu component + if "id" in data and data["id"] == "ProgramMenuFolder": component_el = ET.SubElement( el, "Component", @@ -78,9 +78,6 @@ def build_dir_xml(root, data): Value="1", KeyPath="yes", ) - ET.SubElement( - component_el, "RemoveFolder", Id="ProgramMenuSubfolder", On="uninstall" - ) def build_components_xml(root, data): @@ -140,9 +137,7 @@ def main(): }, { "id": "ProgramMenuFolder", - "dirs": [ - {"id": "ProgramMenuSubfolder", "name": "Dangerzone", "dirs": []} - ], + "dirs": [], }, ], }