I am trying to uninstall my feature and wanted to suppress reboot, but it is failing with error 1618
MsiOpenProductA(productCode, &handle))
MsiSetPropertyA(handle, "REBOOT", "ReallySuppress");
MsiSetInternalUI(INSTALLUILEVEL_NONE, NULL);
Ret = MsiConfigureFeatureA(
productCode,
feature,
INSTALLSTATE_ABSENT);
if (ERROR_SUCCESS == Ret) {
std::cout << "myFeature is uninstalled\n";
}
else {
std::cout << "myFeature is not uninstalled "<<Ret<<std::endl;
}
It is failing with error 1618 i.e. Another installation is already in progress. Complete that installation before proceeding with this install I suspect this is happening because I opened handle.
ANyone came acrross this would be great help