wix - How can I add the installation of .NET 3.5 to Installer on Windows 2008 Server R2 -
i have homemade bootstrapper (call setup.exe) checks whether .net 3.5 installed on target machine, and, if not, launches installation running dotnetfx35.exe. fine. works cases need except windows 2008 server r2. on os, .net installer not install/enable .net 3.5. instead pops dialog indicating 1 must manually enable it. prefer doing automatically within bootstrapper exe or within main msi wix based.
the .net framework installation changed windows server 2008 r2 - cannot run dotnetfx35.exe (as tried), need enable server feature.
usually add server role via server manager > add features > .net framework 3.5.1 features, said need install via wix installation.
the way know of use powershell. in powershell (started administrator!) need run following commands:
import-module servermanager add-windowsfeature as-net-framework
this of course scripted calling powershell.exe so:
powershell.exe -importsystemmodules add-windowsfeature net-framework
the importsystemmodules
need able call add-windowsfeature
. if want top keep powershell.exe open see results (i guess not in deployment situation), add -noexit
parameter.
there article on microsoft sql server blog how install/enable .net 3.5 sp1 on windows server 2008 r2 sql server 2008 , sql server 2008 r2
Comments
Post a Comment