brianlala / AutoSPInstaller

Automated SharePoint 2010/2013/2016/2019/SE PowerShell-based installation script.
https://autospinstaller.com
MIT License
171 stars 81 forks source link

Failing to detect SharePoint 2013 Foundation Install #21

Open gentoouser opened 6 years ago

gentoouser commented 6 years ago

SharePoint 2013 Foundation is not being detected as installed.

In the Function CheckConfigFiles([xml]$xmlinput please update if ($pidKeyProjectServer -notlike "?????-?????-?????-?????-?????") to if ($pidKey -notlike "?????-?????-?????-?????-?????" -and $xmlinput.Configuration.Install.SKU -ne "Foundation" )

Also in the Function Get-SharePointInstall if ((Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*) | Where-Object {$_.DisplayName -like "Microsoft SharePoint Server*"}) to if ((Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*) | Where-Object {$_.DisplayName -like "Microsoft SharePoint Server*" -or $_.DisplayName -like "Microsoft SharePoint Foundation*"})

sprygindm commented 6 years ago

Same in Start-RemoteInstaller function (like in Get-SharePointInstall)

rtonerii commented 5 years ago

Same issue, I with this was pinned until it is (if ever) fixed.

gentoouser commented 5 years ago

Rick, If you look at my post it will give you the code to fix the issue. I just was never added to the official release.

-Paul

On Wed, Oct 9, 2019 at 3:13 PM Rick Toner notifications@github.com wrote:

Same issue, I with this was pinned until it is (if ever) fixed.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/brianlala/AutoSPInstaller/issues/21?email_source=notifications&email_token=ABI4MFJPFTFWQSZYHIR77J3QNY3NXA5CNFSM4EUEL2AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAZFZ7Q#issuecomment-540171518, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABI4MFJZY6CBIYASPZTLCVDQNY3NXANCNFSM4EUEL2AA .

rtonerii commented 5 years ago

Rick, If you look at my post it will give you the code to fix the issue. I just was never added to the official release. -Paul

I did see that, I just wish it was added into the code, since 2013 Foundation is the last free version, some users will still try to use this.

The bad part is I had to find both of the errors, stepping through the code, before I found your solution. That's why I was hoping they would add it to the code.