Hello and welcome to our forums,
I'm afraid we do not have built-in IIS support to overwrite only certain settings of an existing web site. However as a workaround you can develop and use your own
custom action to check if a web site exists and if so, overwrite the desired settings of the exitsing web site.
For instance, you can write a
PowerShell script to check if the web site exists and run several appcmd commands to modify the existing web site settings (e.g.
change physical path). Then, you can go to "Custom Actions" page and add a
"Run Inline Windows PowerShell Script" custom action with sequence, scheduled as deferred after "Install Execution Stage" -> "Add Resources" action group, which will run your PowerShell script.
Also, for the web site entry you added in "IIS" page you should set the "Error Polocy ->
Action if duplicate" option to "Skip item installation".
Let us know if you have any questions or doubts.
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging