MSFN Forum: NET 3.5 Offline Installer for Win8 - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

NET 3.5 Offline Installer for Win8

#1 User is offline   DosProbie 

  • Member
  • Group: Supreme Sponsor
  • Posts: 205
  • Joined: 16-October 12
  • OS:Windows 8 x64
  • Country: Country Flag

Posted 16 October 2012 - 09:01 PM

[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


#2 User is offline   xpclient 

  • XP was my idea. I had to fight Windows 7 to make it my idea
  • PipPip
  • Group: Members
  • Posts: 233
  • Joined: 30-July 05
  • OS:XP Pro x64
  • Country: Country Flag

Posted 17 October 2012 - 12:34 AM

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

#3 User is offline   DosProbie 

  • Member
  • Group: Supreme Sponsor
  • Posts: 205
  • Joined: 16-October 12
  • OS:Windows 8 x64
  • Country: Country Flag

Posted 17 October 2012 - 03:52 AM

View Postxpclient, on 17 October 2012 - 12:34 AM, said:

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 User is offline   abbodi1406 

  • Group: Members
  • Posts: 2
  • Joined: 02-March 12
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 21 October 2012 - 07:40 PM

thanks alot

#5 User is offline   skavenger 

  • Master of Tools
  • Pip
  • Group: Members
  • Posts: 55
  • Joined: 19-October 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 02 November 2012 - 04:10 PM

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 User is offline   skavenger 

  • Master of Tools
  • Pip
  • Group: Members
  • Posts: 55
  • Joined: 19-October 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 04 November 2012 - 05:18 AM

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

This post has been edited by skavenger: 04 November 2012 - 05:19 AM


#7 User is offline   DosProbie 

  • Member
  • Group: Supreme Sponsor
  • Posts: 205
  • Joined: 16-October 12
  • OS:Windows 8 x64
  • Country: Country Flag

Posted 04 November 2012 - 07:29 PM

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 User is offline   MgmTest 

  • Newbie
  • Group: Members
  • Posts: 32
  • Joined: 13-January 12
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 17 November 2012 - 05:23 AM

Me Test batch File But Not work For Me.

View PostDosProbie, on 04 November 2012 - 07:29 PM, said:

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 User is online   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,457
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 17 November 2012 - 05:29 AM

View PostDosProbie, on 04 November 2012 - 07:29 PM, said:

:: current directory
cd=%~dp0

Possibly:

Quote

SET cd=%~dp0

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

Quote

::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

This post has been edited by jaclaz: 17 November 2012 - 05:30 AM


#10 User is offline   radix 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 732
  • Joined: 08-February 07
  • OS:Windows 8 x64
  • Country: Country Flag

Posted 17 November 2012 - 06:35 AM

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

This post has been edited by radix: 21 November 2012 - 12:16 PM


#11 User is offline   mara- 

  • Office Integrator Developer
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,176
  • Joined: 19-February 07

Posted 21 November 2012 - 11:19 AM

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 User is offline   DosProbie 

  • Member
  • Group: Supreme Sponsor
  • Posts: 205
  • Joined: 16-October 12
  • OS:Windows 8 x64
  • Country: Country Flag

Posted 24 November 2012 - 12:56 PM

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy