What you ask is already in WPI: if you check for the program being installed in the Condition line, it won't be shown if installed. If use the Grayed Condition, it will be disabled but still visible. There is no way to open an alert box with a message, though. So in your case, use Condition to hide the item.