Uninstalling Exchange 2013 SP1 failed on Step 8 Lanugage

Hello,

I am trying to uninstall Exchange 2013 SP1 but it is failing while uninstalling Language step # 8 the error is;

--------

Error:
The following error was generated when "$error.Clear();
                    $regPath='HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall';
                    
                    $PackageGUIDRegEx = "{DEDFFB[0-9a-fA-F]{2}-42EC-4E26-[0-9a-fA-F]{4}-430E86DF378C}";
                    
                    $InstallPath = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\setup').MsiInstallPath;
                    
                    if(test-path ($regPath))
                    {
                        Write-ExchangeSetupLog -info ("Removing " +  $RoleLanguagePackType + " Language Packs.");
                        Get-ChildItem ($regPath) | foreach{
                            if($_ -match "(?<ProductCode>$PackageGUIDRegEx)") {
                                $langPackPackageCode = $matches['ProductCode'];
                                if($langPackPackageCode -ne $null -and $langPackPackageCode.Length -ne 0) {
                                    Write-ExchangeSetupLog -info ("Removing package $langPackPackageCode");
                                    $language = $langPackPackageCode.Substring(20,4);
                                    $logFilePath = [IO.Path]::Combine($RoleLogFilePath,"Uninstall") + '.' + $language + '.' + "Client" + "." + $RoleLogDateTime + ".msilog";
                                    uninstall-MsiPackage -ProductCode ($langPackPackageCode) -LogFile ($logFilePath);
                                };
                            };
                        };
                        Get-Childitem -Path $InstallPath -include "*.Localized.js","*.Localized.min.js" -recurse | foreach ($_) {remove-item $_.fullname};
                        Write-ExchangeSetupLog -info "Remove Language Packs completed.";
                    };
                
        " was run: "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.".
--------

I am also attaching the snapshots. Please guide me how to uninstall Exchange 2013. I had some issue with Exchange Server and it need to uninstall and re-install the Exchange Server.


  • Edited by Sawag Wednesday, March 25, 2015 10:49 AM
March 25th, 2015 10:43am


            
        " was run: "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.".


Hi,

Based on this error, possible cause may the path of language package is too long. Please check the following things:

  • Where is your language package installed? Please check it.
  • Under 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{DEDFFB[0-9a-fA-F]{2}-42EC-4E26-[0-9a-fA-F]{4}-430E86DF378C}", please check the following entries. By default, it should be like this.
  1. InstallSource (Z:\Applications\Server\Exchange\2013\64-Bit\RTM\en\)
  2. ModifyPath (MsiExec.exe /X{DEDFFB64-42EC-4E26-0409-430E86DF378C})
  3. UninstallString MsiExec.exe /X{DEDFFB64-42EC-4E26-0409-430E86DF378C}
  • Under 'HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\setup, check this entry MsiInstallPath. By default, the value should be C:\Program Files\Microsoft\Exchange Server\V15\

Best Regartds.

Free Windows Admin Tool Kit Click here and download it now
March 26th, 2015 3:48am

Thanks for reply. I will check and let back.
March 26th, 2015 5:22am

I could not find where it installed the Language pack. It was installed by default during installation. Now i have some issue and want to remove it but on step 8 "Language" it generates an error message. When again try to uninstall, it simple give me an error that the setup is incomplete, rerun the setup to complete the installation.
Free Windows Admin Tool Kit Click here and download it now
March 26th, 2015 6:33pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics