def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").endswith("\\gup.exe"),
            event.deep_get("Image", default="").endswith("\\explorer.exe"),
            not any(
                [
                    all(
                        [
                            event.deep_get("Image", default="").endswith("\\explorer.exe"),
                            "\\Notepad++\\notepad++.exe"
                            in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    "\\Notepad++\\updater\\" in event.deep_get("ParentImage", default=""),
                    event.deep_get("CommandLine", default="") == "",
                ]
            ),
        ]
    ):
        return True
    return False
