def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\jpsetup.exe"),
                    event.deep_get("Image", default="").endswith("\\jpinst.exe"),
                ]
            ),
            not any(
                [
                    event.deep_get("CommandLine", default="")
                    in ["jpinst.exe", "jpinst", "jpsetup.exe", "jpsetup"],
                    event.deep_get("CommandLine", default="") == "",
                    event.deep_get("CommandLine", default="") == "",
                ]
            ),
        ]
    ):
        return True
    return False
