In pre/postun, take into account whether it's a first install or not.