We define family versions of the invariant of 4-manifolds with contact boundary due to Kronheimer and Mrowka and using this to detect exotic diffeomorhisms on 4-manifold with boundary. Further we developed some techniques that has been used to show existence of exotic codimension-2 submanifolds and exotic codimension-1 submanifolds in 4-manifolds.