I'm try to do some validation inside OnBeforeInstall method & if the validation pass will continue through the installation process, if the validation failed i want to rollback and uninstall the setup.
i tried something like this, even though this is successfull, this gave me some exceptions while rollback.
if(validation){
}
else{
base.RollBack(savedState);
}
Exception - savedState does not contain required values or corrupted.
Please help me to do this without any exceptions.