(
ns, xml, appid, executable, aliases, visual_element, subsystem, file_types
)
| 308 | |
| 309 | |
| 310 | def add_application( |
| 311 | ns, xml, appid, executable, aliases, visual_element, subsystem, file_types |
| 312 | ): |
| 313 | node = xml.find("m:Applications", APPXMANIFEST_NS) |
| 314 | suffix = "_d.exe" if ns.debug else ".exe" |
| 315 | app = ET.SubElement( |
| 316 | node, |
| 317 | ET.QName(APPXMANIFEST_NS[""], "Application"), |
| 318 | { |
| 319 | "Id": appid, |
| 320 | "Executable": executable + suffix, |
| 321 | "EntryPoint": "Windows.FullTrustApplication", |
| 322 | ET.QName(APPXMANIFEST_NS["desktop4"], "SupportsMultipleInstances"): "true", |
| 323 | }, |
| 324 | ) |
| 325 | if visual_element: |
| 326 | add_visual(app, None, visual_element) |
| 327 | for alias in aliases: |
| 328 | add_alias(app, None, alias + suffix, subsystem) |
| 329 | if file_types: |
| 330 | add_file_type(app, None, *file_types) |
| 331 | return app |
| 332 | |
| 333 | |
| 334 | def _get_registry_entries(ns, root="", d=None): |
no test coverage detected
searching dependent graphs…