The AutoSPInstallerMain script starts with a line (line10) to replace all the instances of "localhost". In this statement every occurence of "localhost" is replaced (even in the comments).
[xml]$xmlinput = (Get-Content $inputFile) -replace ("localhost", $env:COMPUTERNAME)
Why are there various places in the scipt which test on localhost
If ($dbPrefix -like "*localhost*")
If ($url -like "*localhost*")
I think that those If statements are superfluously.
Or am I missing something?