aGre->siCGreComponent->dwAttributes &= ~SIC_SELECTED;
if(aGre->siCGreComponent) aGre->siCGreComponent->dwAttributes &= ~SIC_SELECTED;
HRESULT ProcessGre(greInfo *aGre){  char greUninstallCommand[MAX_BUF];  /* If aGre->homePath does not exist, it means that a compatible version of GRE was   * not found on the system, so we need to install one.  We also need to get the   * path to where it's going to install the GRE for in case we need to use it   * as the xpinstall engine.   *   * If gbForceInstallGre is true, then force an installation of GRE regardless   * if it's already on the system.  Also save the GRE's destination path to   * aGre->homePath.   *   * If aGre->homePath does exist, then we simply call LaunchExistingGreInstaller()   * to run the existing GRE's installer app to register mozilla.   */  if((*aGre->homePath == '\0') || (gbForceInstallGre))    LaunchOneComponent(aGre->siCGreComponent, aGre);  else    LaunchExistingGreInstaller(aGre);  /* XXX instead of unsetting the SELECTED attribute, set the DOWNLOAD_ONLY attribute   * in the config.ini file.   */  /* Unset "Component GRE"'s SELECTED attribute so it doesn't get spawned again later from LaunchApps() */  aGre->siCGreComponent->dwAttributes &= ~SIC_SELECTED;  /* Log the GRE uninstall command to call in order for this app's uninstaller to   * uninstall GRE.   */  if(GetInfoFromInstalledGreConfigIni(aGre) == WIZ_OK)  {    /* If were installing GRE locally, then update the app's uninstall command     * to pass the local/private windows GRE key path to GRE's uninstaller     * during uninstall. */    if(sgProduct.greType == GRE_LOCAL)      wsprintf(greUninstallCommand,               "\"%s\" -mmi -ms -app %s -ua \"%s\" -reg_path %s",               aGre->uninstallerAppPath,               sgProduct.szProductNameInternal,               aGre->userAgent,               sgProduct.grePrivateKey);    else      wsprintf(greUninstallCommand,               "\"%s\" -mmi -ms -app %s -ua \"%s\"",               aGre->uninstallerAppPath,               sgProduct.szProductNameInternal,               aGre->userAgent);    UpdateInstallLog(KEY_UNINSTALL_COMMAND, greUninstallCommand, DNU_UNINSTALL);  }  return(WIZ_OK);}