Don't put the start menu shortcut in a folder

This commit is contained in:
Micah Lee 2020-10-29 11:10:48 -07:00
parent 87be2bbc7d
commit 26ea568080
No known key found for this signature in database
GPG key ID: 403C2657CD994F73

View file

@ -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": [],
},
],
}