NET 3.5 Offline Installer for Win8
#1
Posted 16 October 2012 - 09:01 PM
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
Posted 17 October 2012 - 12:34 AM
#3
Posted 17 October 2012 - 03:52 AM
#5
Posted 02 November 2012 - 04:10 PM
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
Posted 04 November 2012 - 05:18 AM
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
Posted 04 November 2012 - 07:29 PM
@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
Posted 17 November 2012 - 05:23 AM
DosProbie, on 04 November 2012 - 07:29 PM, said:
@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
Posted 17 November 2012 - 05:29 AM
DosProbie, on 04 November 2012 - 07:29 PM, said:
cd=%~dp0
Possibly:
Quote
will actually give a value to the cd variable.
Or, alternatively:
Quote
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
Posted 17 November 2012 - 06:35 AM
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
Posted 21 November 2012 - 11:19 AM
#12
Posted 24 November 2012 - 12:56 PM



Help
Back to top









