cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
yunvits
Level 2

Enable Window Feature .NET Framework 3.5 for Window Server 2012

Hi,

How can I automatically enable Window Feature of .NET Framework 3.5 during installer, for window server 2012 and window 8. Since this feature has been pre-installed with these windows, installed doesn't do anything. I tried Pre-requirest with .NET Framework 3.5, but that's just install .NET Framework 3.5 SP1, not enable the feature, right?

How can I enable this feature from installer?

I am using InstallShield 2012 Spring.

Yun
Labels (1)
0 Kudos
(2) Replies
MarkusLatz
Level 8

Search for "dism.exe" here in the forum.
0 Kudos
shashank
Level 2

Create a custom action. Execute a batch file using command line
batch file should contain
---------------------------------------
@echo off
setlocal
for /f "tokens=4-5 delims=. " %%i in ('ver') do (set VERSION=%%i.%%j
set MAJ=%%i
set MIN=%%j
)

if "%MAJ%" == "6" if "%MIN%" geq "2" goto InstallDotNet3
if "%MAJ%" geq "7" goto InstallDotNet3

goto Exit
:InstallDotNet3
echo "Enabling DOT NET 3.5 framework"
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All


:Exit
endlocal
-------------------------------------------------
And run that custom action in differed in system context as you need admin privileges for that.

From my side I had to check for that but i did not get direct solution for enabling .net 3.5
0 Kudos