We've been using SPModule to deploy and configure new SP installation and it works fine. or at least it did till recently when I tried to create a custom powershell host (WPF app) to wrap up the deployment process.
I now get an error:
ERROR: Invoke-Command : The variable '$MajorVersion' cannot be retrieved because it has not been set.
This is coming from line 293 in Install-SharePoint.psm1:
if ((Test-Path "HKLM:\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\$MajorVersion.0\Secure\ConfigDB") -and ($SetupType -eq "CLEAN_INSTALL"))
The variable $MajorVersion is not mentioned anywhere else in the module.
So, a) I dont understand why I never saw this error before - but I can live without knowing. b) I'm not sure what it's trying to do here and can I just ignore it. c) I cant find any place to report this things to MS.
Anyone else seen this?