title: AppFabric installation failed MSI error code:1603 | File Already Exists
body: <p>I've checked many solutions including the PSModulePath and the AS_Observers and AS_Administrators groups with no luck.  Unfortunately there doesn't seem to be an indication as to which file it's not able to copy.  Any suggestions would be appreciated.</p>
  
  <p>These are the output lines from the log files where the error occurs.</p>
  
  <blockquote>
    <p>MSI (s) (0C:FC) [12:57:34:645]: Closing MSIHANDLE (86) of type 790536
    for thread 8904 MSI (s) (0C:C8) [12:57:34:646]: Executing op:
    ActionStart(Name=SCW_Localize_i,,) CAQuietExec:   MSI (s) (0C:C8)
    [12:57:34:646]: Executing op:
    CustomActionSchedule(Action=SCW_Localize_i,ActionType=3090,Source=C:\Program
    Files\AppFabric 1.1 for Windows
    Server\Microsoft.ApplicationServer.InstallHelper.exe,Target="powershell.exe"
    "-command \"$content = Get-Content \\"C:\Program Files\AppFabric 1.1
    for Windows Server\AppFabricServer.xml\\"; $content = ForEach-Object
    -InputObject $content { $_ -replace \\"INSTALLPATH\\", \\"C:\Program Files\AppFabric 1.1 for Windows Server\\\\" };
    Set-Content -value $content -path \\"C:\Program Files\AppFabric 1.1
    for Windows Server\AppFabricServer.xml\\" \"" "C:\Users\Andrew
    Middleton\AppData\Local\Temp\AppServerSetup1_1_CustomActions(2013-06-01
    12-57-15).log",) MSI (s) (0C:C8) [12:57:35:539]: Executing op:
    ActionStart(Name=SQMTask_Localize_i,,) MSI (s) (0C:C8) [12:57:35:540]:
    Executing op:
    CustomActionSchedule(Action=SQMTask_Localize_i,ActionType=3090,Source=C:\Program
    Files\AppFabric 1.1 for Windows
    Server\Microsoft.ApplicationServer.InstallHelper.exe,Target="powershell.exe"
    "-command \"$content = Get-Content \\"C:\Program Files\AppFabric 1.1
    for Windows Server\Consolidator.xml\\"; $content = ForEach-Object
    -InputObject $content { $_ -replace \\"INSTALLPATH\\", \\"C:\Program Files\AppFabric 1.1 for Windows Server\\\\" };
    Set-Content -value $content -path \\"C:\Program Files\AppFabric 1.1
    for Windows Server\Consolidator.xml\\" \"" "C:\Users\Andrew
    Middleton\AppData\Local\Temp\AppServerSetup1_1_CustomActions(2013-06-01
    12-57-15).log",) MSI (s) (0C:C8) [12:57:36:332]: Executing op:
    ActionStart(Name=SQMTask_i,,) MSI (s) (0C:C8) [12:57:36:332]:
    Executing op:
    CustomActionSchedule(Action=SQMTask_i,ActionType=1042,Source=C:\Program
    Files\AppFabric 1.1 for Windows
    Server\Microsoft.ApplicationServer.InstallHelper.exe,Target="/action"
    "SQMTaskInstall" "C:\Users\Andrew
    Middleton\AppData\Local\Temp\AppServerSetup1_1_CustomActions(2013-06-01
    12-57-15).log",) MSI (s) (0C:C8) [12:57:36:411]: Note: 1: 1722 2:
    SQMTask_i 3: C:\Program Files\AppFabric 1.1 for Windows
    Server\Microsoft.ApplicationServer.InstallHelper.exe 4: "/action"
    "SQMTaskInstall" "C:\Users\Andrew
    Middleton\AppData\Local\Temp\AppServerSetup1_1_CustomActions(2013-06-01
    12-57-15).log"  CustomAction SQMTask_i returned actual error code 1
    (note this may not be 100% accurate if translation happened inside
    sandbox) MSI (s) (0C:C8) [12:57:36:412]: Product: AppFabric 1.1 for
    Windows Server -- Error 1722. There is a problem with this Windows
    Installer package. A program run as part of the setup did not finish
    as expected. Contact your support personnel or package vendor.  Action
    SQMTask_i, location: C:\Program Files\AppFabric 1.1 for Windows
    Server\Microsoft.ApplicationServer.InstallHelper.exe, command:
    "/action" "SQMTaskInstall" "C:\Users\Andrew
    Middleton\AppData\Local\Temp\AppServerSetup1_1_CustomActions(2013-06-01
    12-57-15).log" </p>
    
    <p>MSI (s) (0C:C8) [12:57:36:414]: Creating MSIHANDLE (88) of type 790531
    for thread 8904 Error 1722. There is a problem with this Windows
    Installer package. A program run as part of the setup did not finish
    as expected. Contact your support personnel or package vendor.  Action
    SQMTask_i, location: C:\Program Files\AppFabric 1.1 for Windows
    Server\Microsoft.ApplicationServer.InstallHelper.exe, command:
    "/action" "SQMTaskInstall" "C:\Users\Andrew
    Middleton\AppData\Local\Temp\AppServerSetup1_1_CustomActions(2013-06-01
    12-57-15).log"  MSI (s) (0C:C8) [12:57:36:415]: Closing MSIHANDLE (88)
    of type 790531 for thread 8904 MSI (s) (0C:C8) [12:57:36:415]:
    Creating MSIHANDLE (89) of type 790531 for thread 8904 06/01/2013
    12:57:36.414 [8204]: Assembly Install: Failing with hr=80070005 at
    RemoveDirectoryAndChildren, line 398</p>
    
    <p>MSI (s) (0C:C8) [12:57:36:415]: Closing MSIHANDLE (89) of type 790531
    for thread 8904 MSI (s) (0C:C8) [12:57:36:415]: Creating MSIHANDLE
    (90) of type 790531 for thread 8904 06/01/2013 12:57:36.415 [8204]:
    Detailed info about
    C:\WINDOWS\assembly\tmp\HESYNZQU\Microsoft.ApplicationServer.Core.dll</p>
    
    <p>MSI (s) (0C:C8) [12:57:36:415]: Closing MSIHANDLE (90) of type 790531
    for thread 8904</p>
  </blockquote>
  
  <p>And this is from the custom acctions log</p>
  
  <blockquote>
    <p>6/1/2013 12:57:34 PM EXEPATH=powershell.exe PARAMS=-command "$content
    = Get-Content \"C:\Program Files\AppFabric 1.1 for Windows Server\AppFabricServer.xml\"; $content = ForEach-Object -InputObject
    $content { $_ -replace \"INSTALLPATH\", \"C:\Program Files\AppFabric
    1.1 for Windows Server\\" }; Set-Content -value $content -path \"C:\Program Files\AppFabric 1.1 for Windows
    Server\AppFabricServer.xml\" " LOGFILE=C:\Users\Andrew
    Middleton\AppData\Local\Temp\AppServerSetup1_1_CustomActions(2013-06-01
    12-57-15).log ExitCode=0 6/1/2013 12:57:35 PM EXEPATH=powershell.exe
    PARAMS=-command "$content = Get-Content \"C:\Program Files\AppFabric
    1.1 for Windows Server\Consolidator.xml\"; $content = ForEach-Object -InputObject $content { $_ -replace \"INSTALLPATH\", \"C:\Program Files\AppFabric 1.1 for Windows Server\\" }; Set-Content -value
    $content -path \"C:\Program Files\AppFabric 1.1 for Windows
    Server\Consolidator.xml\" " LOGFILE=C:\Users\Andrew
    Middleton\AppData\Local\Temp\AppServerSetup1_1_CustomActions(2013-06-01
    12-57-15).log ExitCode=0 Executing action :
    Microsoft.ApplicationServer.InstallHelper.SQMTaskInstallAction
    SQMTaskInstall areguments -  /create /tn
    "\Microsoft\Windows\AppFabric\Customer Experience Improvement
    Program\Consolidator" /xml "C:\Program Files\AppFabric 1.1 for Windows
    Server\Consolidator.xml" Error: ERROR: Cannot create a file when that
    file already exists.</p>
  </blockquote>