Installing and removing patches for Messaging Gateway