Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

NET 3.5 Offline Installer for Win8


  • Please log in to reply
18 replies to this topic

#1
DosProbie

DosProbie

    Friend of MSFN

  • MSFN Sponsor
  • 750 posts
  • Joined 16-October 12
  • OS:Windows 8.1 x64
  • Country: Country Flag

Donator

[attachment=35363:NetFx35.cmd]One of my pet peeves with Win8 is making the end user Install .NET framework 3.5 that is needed by a lot of apps. MS calls it a Feature on Demand (FoD).
I wrote a .sfx and added to my setupcomplete but I also did a post install that installs directly off the USB or DVD Install disc. Anyway I am sure this subject has been on here before but if would help anyone I am adding my post install batch file .. DosProbie


How to remove advertisement from MSFN

#2
xpclient

xpclient

    XP was my idea. 3rd party apps make NT6 my idea.

  • Member
  • PipPipPip
  • 335 posts
  • Joined 30-July 05
  • OS:XP Pro x64
  • Country: Country Flag
Nice. Thanks for doing the work of finding the drive letter. :)

Impossible to run NT6 without third party fixes.


#3
DosProbie

DosProbie

    Friend of MSFN

  • MSFN Sponsor
  • 750 posts
  • Joined 16-October 12
  • OS:Windows 8.1 x64
  • Country: Country Flag

Donator

Nice. Thanks for doing the work of finding the drive letter. :)


No Problem, Hope it helps..I will tell you that its a heck of lot faster to install off of a USB approx. 45 seconds
vs DVD which takes 5 minutes or longer. :yes:

#4
abbodi1406

abbodi1406
  • Member
  • 3 posts
  • Joined 02-March 12
  • OS:Windows 8.1 x86
  • Country: Country Flag
thanks alot

#5
skavenger

skavenger

    Master of Tools

  • Member
  • Pip
  • 55 posts
  • Joined 19-October 05
  • OS:Windows 7 x64
  • Country: Country Flag
Thank you.
Very interesting.

I have Win8 x64 Pro.
I've tried to create a SFX for installing/activating it offline without the source-dvd.

I've extracted and copied the folder sxs from inside the source-folder of the DVD to my location,
created a CMD-File like this:

install.cmd::
@echo off
color 1E
title Microsoft .Net 3.5 Feature-Activation for Windows 8
echo.
echo  Microsoft .Net 3.5 Feature-Activation for Windows 8
echo.
Dism /online /enable-feature /featurename:NetFx3 /All /Source:%~dp0sxs /LimitAccess

Then i created a RAR-SFX containing the folder sxs and the script.
Building it to extract to Temp-folder and then run install.cmd.

But every time it gives me an error similar like this

"A running 64bit-OS cannot use the 32bit-version of DISM."

What is wrong?

How have you created your SFX?

PS: If i start the cmd-file directly by double-click - it works. Hm, why not with my SFX?


TIA

#6
skavenger

skavenger

    Master of Tools

  • Member
  • Pip
  • 55 posts
  • Joined 19-October 05
  • OS:Windows 7 x64
  • Country: Country Flag
Huh,

i answer myself.

First I switched from RAR-SFX to 7Zip-SFX.
Then for the x86-version i created a standard-sfx with the usual command

Dism /online /enable-feature /featurename:NetFx3 /All /Source:%~dp0sxs /LimitAccess
For the x64-version i do the same, except i used the "7zsd_LZMA_x64.sfx" for creating my SFX.

Finally it's important to create a 64bit-sfx, if you plan to install it offline on 64bit--systems.

so long

Edited by skavenger, 04 November 2012 - 05:19 AM.


#7
DosProbie

DosProbie

    Friend of MSFN

  • MSFN Sponsor
  • 750 posts
  • Joined 16-October 12
  • OS:Windows 8.1 x64
  • Country: Country Flag

Donator

I Used Winrar for my sfx , just copied the sources folder to a Net3.5 directory then ran from batch as current directory, I also added NoRestart as well...

@echo off&color a
::run.cmd

:: current directory
cd=%~dp0

::Install-(disable restart)
dism /online /enable-feature /featurename:NetFX3 /all /NoRestart /Source:%cd%\sources\sxs /LimitAccess

exit

#8
MgmTest

MgmTest

    Junior

  • Member
  • Pip
  • 61 posts
  • Joined 13-January 12
  • OS:Windows 7 x86
  • Country: Country Flag
Me Test batch File But Not work For Me.

I Used Winrar for my sfx , just copied the sources folder to a Net3.5 directory then ran from batch as current directory, I also added NoRestart as well...

@echo off&color a
::run.cmd

:: current directory
cd=%~dp0

::Install-(disable restart)
dism /online /enable-feature /featurename:NetFX3 /all /NoRestart /Source:%cd%\sources\sxs /LimitAccess

exit



#9
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,677 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

:: current directory
cd=%~dp0

Possibly:

SET cd=%~dp0

will actually give a value to the cd variable. :whistle:
Or, alternatively:

::Install-(disable restart)
dism /online /enable-feature /featurename:NetFX3 /all /NoRestart /Source:%~dp0sources\sxs /LimitAccess


Please note how the expansion of a full path such as %~dpn will result in a "full path" (and full paths always end with a backslash)

jaclaz

Edited by jaclaz, 17 November 2012 - 05:30 AM.


#10
radix

radix

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 740 posts
  • Joined 08-February 07
  • OS:Windows 8 x64
  • Country: Country Flag
I copied sxs folders from both Windows 8 discs 32 bit and 64 bit.
So, I have sxs_x64 and sxs_x86 folders (I renamed them) inside a folder called sources. On the same tree level with sources folder I've added the file Install.cmd.

Install.cmd content:
@ECHO OFF
:: Check the operating system type (32 bit or 64 bit)
IF NOT EXIST  %SystemRoot%\SysWOW64 GOTO X86
IF EXIST  %SystemRoot%\SysWOW64 GOTO X64
:: 32 bit
:X86
:: Install and disable restart
dism /online /enable-feature /featurename:NetFX3 /all /NoRestart /Source:"%~dp0sources\sxs_x86" /LimitAccess
:: 64 bit
:X64
:: Install and disable restart
dism /online /enable-feature /featurename:NetFX3 /all /NoRestart /Source:"%~dp0sources\sxs_x64" /LimitAccess
:: Exit the script
:END
EXIT

Check the installation integrity with this tool: http://blogs.msdn.co...es/8999004.aspx

Edited by radix, 21 November 2012 - 12:16 PM.


#11
mara-

mara-

    Office Integrator Developer

  • Member
  • PipPipPipPipPipPip
  • 1,181 posts
  • Joined 19-February 07
  • OS:Windows 7 x64
  • Country: Country Flag
You can activate this feature to be already installed. It same like Add features, just it can be applied directly to image. So no need to add additional files or do a separate install. This is faster and simpler. Just search for Windows Download Integrator which will do this automatically for you. Or you can search for DISM commands.

#12
DosProbie

DosProbie

    Friend of MSFN

  • MSFN Sponsor
  • 750 posts
  • Joined 16-October 12
  • OS:Windows 8.1 x64
  • Country: Country Flag

Donator

Here's the link for Wds DL Intergrator over at MDL http://forums.mydigi...load-Integrator

#13
nemesis002

nemesis002
  • Member
  • 3 posts
  • Joined 09-September 09
  • OS:Server 2012
  • Country: Country Flag

I got a working solution that works on Server 2012 and 2012 R2 so it must work on 8 and 8.1 too.

 

It comes from old XP times and WPI.

@ECHO OFF
set tagfile=\setup.exe
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist "%%i:%tagfile%" set CDROM=%%i:
ECHO.
ECHO.Adding Features to SRV2012R2 Workstation
ECHO.
dism /online /Enable-Feature /FeatureName:ServerMediaFoundation /NoRestart
dism /online /Enable-Feature /FeatureName:DesktopExperience /all /NoRestart
dism /online /Enable-Feature /FeatureName:WirelessNetworking /NoRestart
dism /online /Enable-Feature /FeatureName:WindowsServerBackup /NoRestart
dism /online /Enable-Feature /FeatureName:NetFx3 /all /Source:%CDROM%\sources\sxs /LimitAccess /NoRestart
dism /online /Enable-Feature /FeatureName:NetFx3ServerFeatures /NoRestart
EXIT

Basically the it searches for Setup.exe file from Windows and once found it sets drive letter to CDROM value that you use in script after for NetFx3.

 

N :)

 

 


Edited by nemesis002, 06 September 2013 - 12:34 PM.


#14
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,128 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

Only this applies to Client Windows:

dism /online /Enable-Feature /FeatureName:NetFx3 /all /Source:%CDROM%\sources\sxs /LimitAccess /NoRestart

The rest are Server Features/Roles.


Posted Image

#15
nemesis002

nemesis002
  • Member
  • 3 posts
  • Joined 09-September 09
  • OS:Server 2012
  • Country: Country Flag

Yes correct.

 

I should have posted it just for W8 and W81.

 

But the most important is that it works.

 

N :)



#16
xpclient

xpclient

    XP was my idea. 3rd party apps make NT6 my idea.

  • Member
  • PipPipPip
  • 335 posts
  • Joined 30-July 05
  • OS:XP Pro x64
  • Country: Country Flag

Well for some reason, DOS_Probie's original script wasn't working for me on 8.1 x64 so I slightly modded it. But this "offline" method means one without internet access. MS also uses the word "offline" for DISM image servicing operations :P in which case this isn't applicable.

@echo off&color a
title, [ + OFFLINE INSTALL OF NET 3.5 FRAMEWORK - DOS_PROBIE.2012 + ] 
:: =Windows 8 includes .Net 4.5 by default but not .NET 3.5 =
::NOTE: INSTALLS .NET 3.5 FRAMWORK FEATURE ON DEMAND (FoD) FROM INSTALL DISC.
::NetFx35.cmd

:: SCAN_ACTIVE DRIVES
;set "drv="
for %%a in (D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist "%%a:\bootmgr.efi" set drv=%%a:&goto :Install

:Install
if defined drv (
echo == Installing NET 3.5 From Drive %drv%
Dism /online /enable-feature /featurename:NetFX3 /All /Source:%drv%\sources\sxs /LimitAccess

:: LOG
dism /online /Get-FeatureInfo /FeatureName:NetFx3 >%systemdrive%\NetFx3.log
echo.&echo.
cls
echo * DONE *
echo.&echo.
echo == Press any [KEY] to Close This Screen. &pause>nul
) else (
:: NO_DRIVE
echo == No Active Drive Found!..Insert DVD or USB then Start Over. &pause>nul 
echo.
)

Edited by xpclient, 07 September 2013 - 06:11 AM.

Impossible to run NT6 without third party fixes.


#17
MrJinje

MrJinje

    Toolâ„¢ Developer

  • Developer
  • 1,067 posts
  • Joined 14-October 09
  • OS:Server 2012R2
  • Country: Country Flag

A slightly more offline method.   Should save everyone about 3 minutes per re-installation.

Dism /Mount-WIM /WimFile:C:\test\images\install.wim /Name:"Windows 8 Professional" /MountDir:C:\test\offline
Dism /Image:C:\test\offline /Enable-Feature /FeatureName:NetFx3 /Source:X:\sources\sxs
Dism /Unmount-WIM /MountDir:C:\test\offline /Commit

Edited by MrJinje, 07 September 2013 - 06:06 AM.


#18
DosProbie

DosProbie

    Friend of MSFN

  • MSFN Sponsor
  • 750 posts
  • Joined 16-October 12
  • OS:Windows 8.1 x64
  • Country: Country Flag

Donator

Good Stuff Guys!  Also for those of you doing the post install method with 8.1 9600 and having error messages about
not finding the source etc. confirm the file size of your sxs directory it should be 275 MB (287,798,829 bytes) with 1,175 Files and 775 Folders. And for Non Admin accounts dism requires an elevated prompt so don't forget the right-click as Admin.. DP :yes:



#19
pleXtOr

pleXtOr
  • Member
  • 9 posts
  • Joined 14-February 10

 

A slightly more offline method.   Should save everyone about 3 minutes per re-installation.

Dism /Mount-WIM /WimFile:C:\test\images\install.wim /Name:"Windows 8 Professional" /MountDir:C:\test\offline
Dism /Image:C:\test\offline /Enable-Feature /FeatureName:NetFx3 /Source:X:\sources\sxs
Dism /Unmount-WIM /MountDir:C:\test\offline /Commit

can I do this on 64bit install.wim + 64bit sxs but on 32bit host? wanna make 32/64bit iso with netfx35.. :)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users