5 #define OAFW_UPGRADE_CODE TEXT("{6823EEDD-84FC-4204-ABB3-A80D25779833}")
8 UINT rc = ERROR_SUCCESS;
10 CHAR szProductCode[39];
12 MsiSetInternalUI(INSTALLUILEVEL_PROGRESSONLY, NULL);
15 rc = MsiEnumRelatedProducts(OAFW_UPGRADE_CODE, 0, iProduct, szProductCode);
16 if ( rc == ERROR_SUCCESS ) {
17 MsiConfigureProduct(szProductCode, 0 /* ignored */, INSTALLSTATE_ABSENT);
20 } while ( rc == ERROR_SUCCESS );
22 return (rc == ERROR_NO_MORE_ITEMS ? 0 : 1);