While reviewing the code [AutoSPInstallerMain.ps1, line 250] using NotePad++, the editor's syntax parser seems to have an issue with the "back quote / semi-colon" delimiter in the following statement:
Start-Process -FilePath "$PSHOME\powershell.exe" -Verb Runas -ArgumentList "-Command `". $env:dp0\AutoSPInstallerFunctions.ps1`; InstallSMTP (Get-Content $inputFile); Start-Sleep 5" -Wait
Adding another quote after the back quote characters makes NotePad++ happy:
...AutoSPInstallerFunctions.ps1`"; InstallSMTP...
But, I am unsure if adding that quote maintains the integrity of what the command was intended to do.
Comments: ** Comment from web user: brianlala **
Start-Process -FilePath "$PSHOME\powershell.exe" -Verb Runas -ArgumentList "-Command `". $env:dp0\AutoSPInstallerFunctions.ps1`; InstallSMTP (Get-Content $inputFile); Start-Sleep 5" -Wait
Adding another quote after the back quote characters makes NotePad++ happy:
...AutoSPInstallerFunctions.ps1`"; InstallSMTP...
But, I am unsure if adding that quote maintains the integrity of what the command was intended to do.
Comments: ** Comment from web user: brianlala **
Not sure I would trust NotePad++ over what I use (PowerGUI - which has no issue with the syntax). Anyhow, I just checked with my NotePad++ and it didn't seem to have a problem...
Going to close this issue unless it's actually deemed to cause a problem in execution (so far it hasn't) :)
Cheers
Brian