I have a WiX MSI installer for an ASP.NET website that runs on my_server. The package is installed via a very simple Powershell script install.ps1 that just calls msiexec with some parameters.
The problem
When I run install.ps1 directly on my_server, everything is fine. But when I want to run install.ps1 on my_server from a remote machine (e.g. build_server), the installation fails with error code 1603 and the MSI install log reveals the the following error:
Action start 14:22:30: ConfigureUsers.
ConfigureUsers: Error 0x80070005: failed to add/remove User actions
CustomAction ConfigureUsers returned actual error code 1603
Any suggestions?
Extra information
I run
install.ps1remotely with the following command:Invoke-Command -ComputerName my_server -ScriptBlock { path\to\install.ps1 } -Authentication NegotiateI use the same user credentials on both
my_serverandbuild_server.In the WiX definition, the website is set up with a specific user account for the app pool, like this:
<Component Id="AppPoolCmp" Guid="a-fine-looking-guid" KeyPath="yes"> <util:User Id="AppPoolUser" CreateUser="no" RemoveOnUninstall="no" Name="[APP_POOL_IDENTITY_NAME]" Password="[APP_POOL_IDENTITY_PWD]" Domain="[APP_POOL_IDENTITY_DOMAIN]"> </util:User> <iis:WebAppPool Id="AppPool" Name="[APP_POOL_NAME]" ManagedPipelineMode="Classic" ManagedRuntimeVersion="v4.0" Identity="other" User="AppPoolUser"> <iis:RecycleTime Value="5:00" /> </iis:WebAppPool> </Component>