Before first use of AutoSPInstaller 3.99.51 the host (Windows Server 2012 R2 Standard) had all recent dotNet versions installed, including NDP46-KB3045557-x86-x64-AllOS-ENU.exe which 'upgrades' dotNet Framework 4.5 ("dotNetFX45") to 4.6
AutoSPInstaller then stops part way through installation saying that dotNetFX45 is not installed. any attempt to re-install dotNetFX45 then confirms that it is already installed. Further installation of AutoSPInstaller cannot continue.
Comments: ** Comment from web user: PerrySharePoint **
AutoSPInstaller then stops part way through installation saying that dotNetFX45 is not installed. any attempt to re-install dotNetFX45 then confirms that it is already installed. Further installation of AutoSPInstaller cannot continue.
Comments: ** Comment from web user: PerrySharePoint **
It would be a nice addition to the Auto-SPInstaller exe to check for this problem up front, and fail with an error message referring to a relevant article.
Registry path to check
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client
String value: Version
Check if it does not begin with 4.5
If so, stop and warn user that they need to manually work around SharePoint 2013 incompatibility with .NET 4.6.
I suggest perhaps displaying these three links to the user at that point:
https://support.microsoft.com/en-us/kb/3087184
http://sharepoint.stackexchange.com/questions/61239/this-product-requires-microsoft-net-framework-4-5
http://geekswithblogs.net/bjackett/archive/2015/07/28/be-careful-installing-.net-4.6--visual-studio-2015-with.aspx