AppSearch & LaunchCondition

Is it possible to install only a Custom Action if the statement is true based of Launch condition? Let's say i put a launch condition to see if a registry key exist & if it's exist than install only a Custom Action not the whole MSI?

Is this possible if Yes can someone please guide me what tables to look for or if i can somehow put a condition in my Custom Action.. Thanks in advance

In IS go to system search create a new search (right click and select add) -> Select Registry entry -> enter the registry location that your looking for -> Define a property
In Launch Condition table add the property with the value you are looking for. (eg:DONETFOUND="4.0") then specify the description for the error message if the condition not met.