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