DirectoryRemove(sgProduct.szPath, FALSE);
{ lstrcpy(szBuf, sgProduct.szPath); AppendBackSlash(szBuf, sizeof(szBuf)); DirectoryRemove(szBuf, FALSE); }
void DeInitialize(){  if(bCreateDestinationDir)    DirectoryRemove(sgProduct.szPath, FALSE);  if(hbmpBoxChecked)    DeleteObject(hbmpBoxChecked);  if(hbmpBoxCheckedDisabled)    DeleteObject(hbmpBoxCheckedDisabled);  if(hbmpBoxUnChecked)    DeleteObject(hbmpBoxUnChecked);  CleanTempFiles();  DeInitSiComponents();  DeInitSXpcomFile();  DeInitSDObject();  DeInitDlgReboot(&diReboot);  DeInitDlgStartInstall(&diStartInstall);  DeInitDlgAdvancedSettings(&diAdvancedSettings);  DeInitDlgProgramFolder(&diProgramFolder);  DeInitDlgWindowsIntegration(&diWindowsIntegration);  DeInitDlgSelectComponents(&diSelectAdditionalComponents);  DeInitDlgSelectComponents(&diSelectComponents);  DeInitDlgSetupType(&diSetupType);  DeInitDlgLicense(&diLicense);  DeInitDlgWelcome(&diWelcome);  DeInitSetupGeneral();  FreeMemory(&szTempDir);  FreeMemory(&szOSTempDir);  FreeMemory(&sgProduct.szProgramFolderPath);  FreeMemory(&sgProduct.szProgramFolderName);  FreeMemory(&sgProduct.szProductName);  FreeMemory(&sgProduct.szPath);  FreeMemory(&szSetupDir);  FreeMemory(&szFileIniConfig);  FreeMemory(&szEGlobalAlloc);  FreeMemory(&szEDllLoad);  FreeMemory(&szEStringLoad);  FreeMemory(&szEStringNull);  FreeLibrary(hSetupRscInst);  DeInitializeSmartDownload();}