def rule(event):
    if all(
        [
            "\\Microsoft\\Active Setup\\Installed Components"
            in event.deep_get("TargetObject", default=""),
            event.deep_get("TargetObject", default="").endswith("\\StubPath"),
            not any(
                [
                    all(
                        [
                            "C:\\Program Files\\Google\\Chrome\\Application\\"
                            in event.deep_get("Details", default=""),
                            '\\Installer\\chrmstp.exe" --configure-user-settings --verbose-logging --system-level'
                            in event.deep_get("Details", default=""),
                        ]
                    ),
                    all(
                        [
                            any(
                                [
                                    "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\"
                                    in event.deep_get("Details", default=""),
                                    "C:\\Program Files\\Microsoft\\Edge\\Application\\"
                                    in event.deep_get("Details", default=""),
                                ]
                            ),
                            event.deep_get("Details", default="").endswith(
                                '\\Installer\\setup.exe" --configure-user-settings --verbose-logging --system-level --msedge --channel=stable'
                            ),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
