Locked Unable to install AppFabric 1.1 on Windows 7

  • Friday, March 23, 2012 4:41 AM
     
      Has Code

    Hi,

    I am having a problem installing AppFabric 1.1. I get a generic 1603 error from the installer and if I dig into the log files a bit the only thing I can find is this....

    MSI (s) (DC:30) [10:42:54:700]: 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\......\AppData\Local\Temp\AppServerSetup1_1_CustomActions(2012-03-21 10-42-21).log",)
    MSI (s) (DC:30) [10:42:55:308]: Note: 1: 1722 2: SCW_Localize_i 3: c:\Program Files\AppFabric 1.1 for Windows Server\Microsoft.ApplicationServer.InstallHelper.exe 4: "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\......\AppData\Local\Temp\AppServerSetup1_1_CustomActions(2012-03-21 10-42-21).log" 
    CustomAction SCW_Localize_i returned actual error code -2 (note this may not be 100% accurate if translation happened inside sandbox)
    MSI (s) (DC:30) [10:42:55:308]: 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 SCW_Localize_i, location: c:\Program Files\AppFabric 1.1 for Windows Server\Microsoft.ApplicationServer.InstallHelper.exe, command: "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\......\AppData\Local\Temp\AppServerSetup1_1_CustomActions(2012-03-21 10-42-21).log" 
    Now I think this is a bit missleading as the system log suggests it can't find a xml file used to drive the inline powershell script. And that is correct as the system seems to delete or roll back all the files before this bit gets executed. I have been watching the target install area and I can see the files get installed (very briefly) and then they get removed.

    So I went back to version 1.0. That installs and configures just fine. but again and upgrade to 1.1 fails with the exact same error.

    I have tried this as local users, admin users, domain users..... but nothing seems to make any difference. I have unpacked the install file and tried from a separate directory..... I really have run out of ideas....

    Any help greatly appreciated

    Thanks


    • Edited by marblerun Saturday, March 24, 2012 9:43 AM
    •  

All Replies

  • Saturday, March 24, 2012 1:07 PM
    Moderator
     
     

    Here is a similar thread: http://social.msdn.microsoft.com/Forums/en-US/velocity/thread/8338a53e-6b4f-44a8-ac7b-a287f3b4b20e.

    The snippet of log you provided also shows up on this other thread. Their resolution was that they added PowerShell to the path.

    Thanks,


    If this answers your question, please use the "Answer" button to say so | Ben Cline

  • Monday, March 26, 2012 9:40 AM
     
     

    Hi Ben,

    Thanks for the information. It sounds just what I am looking for,... but I am still stuck. I have checked the PATHs and Powershell is definitely there.... But if I check the error log that the the Custom Action Server generates it indeed says that the file can#t be found. And when you look carefully it is quite obvious that it means the Powershell.exe file not one of the input xml files (which is how I originally read it... dooh).

    So the question has changed slightly and is now "how can I add powershell to the path so the Custom Action Server can pick it up.?" What identity does it run as. My Admin account definitely has powershell in the path....?

    Thanks again....

  • Monday, April 09, 2012 7:45 PM
     
     

    Just ran into the same problem. Problem was related to the PSModulePath. I had installed SQL Server 2012 and that install looks to have added in a second path to the PsModulePath.

    I had this C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files
    (x86)\Microsoft SQLServer\110\Tools\PowerShell\Modules

    The custom Actions log showed this

    09/04/2012 3:18:28 PM EXEPATH=powershell.exe PARAMS=-command "$str = [System.Environment]::GetEnvironmentVariable(\"PSModulePath\", [System.EnvironmentVariableTarget]::Machine); $str = $str+\";c:\Program Files\AppFabric 1.1 for Windows Server\PowershellModules\"; c:\Windows\system32\setx.exe /M PSModulePath \"$str\"" LOGFILE=C:\Users\Walter\AppData\Local\Temp\AppServerSetup1_1_CustomActions(2012-04-09 15-18-05).log
    Error: ERROR: Invalid syntax. Default option is not allowed more than '2' time(s).
    Error: Type "SETX /?" for usage.

    So I removed  this reference to the SQL server module and reran the install this time I had a successful install.


  • Thursday, April 26, 2012 12:57 PM
     
     Answered

    Hi,

    Thanks for all the ideas, but I have finally fixed it. I check the PsModulesPath and that was actually fine.

    The problem was one of those obscure situations that I will remember for a long time.

    I am running on a lenovo T520 with dual graphics cards, an on-board intel and a dedicated nVidia card. The nVidia card comes with drivers and services that allow you to switch between the two cards. There was a bug that meant that when it switched cards the service was over writing the whole of the Path environment variable.

    I upgraded to the latest version of the nVidia drivers and all is great and AppFabric 1.1 installs just fine....

    Thanks

    • Marked As Answer by marblerun Thursday, April 26, 2012 12:57 PM
    •