We are developing an Offline Deploy Package. In this package a new webapplication is deployed on a certain location. After that the physical path of the current webapplication has to be adjusted to the path of the newly deployed webapplication. In the deploy.ps1 the following powershell script is executed:
Set-ItemProperty $appPath -name physicalPath -value $webRoot
The $appPath and $webRoot are filed with the right values which is checked by the Write-Host command.
Still the physical path is not adjusted, but I can’t figure out why. Can you help me?