Hi,
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*, like:
```
If ($dbPrefix -like "*localhost*")
```
or
```
If ($url -like "*localhost*")
```
I think that those If statements are superfluously.
Or am I missing something?
Regards,
Andre
Comments: ** Comment from web user: brianlala **
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*, like:
```
If ($dbPrefix -like "*localhost*")
```
or
```
If ($url -like "*localhost*")
```
I think that those If statements are superfluously.
Or am I missing something?
Regards,
Andre
Comments: ** Comment from web user: brianlala **
Good catch, I will investigate and clean this up as required.
Brian