Windows 8 and 8.1 Forums


Automated & Offline Dot Net Framework v3.5 installation

  1. #1


    Posts : 4
    Windows 8 x64

    Automated & Offline Dot Net Framework v3.5 installation


    Just have a Bootable Windows 8/Server 2012/8.1/Windows 8.1 with Update 1/10 DVD or USB (whichever out of these Windows version you are using) attached to your PC & execute the attached bat file..

    Code:
    @echo off
    
    :: BatchGotAdmin
    :-------------------------------------
    REM  --> Check for permissions
    >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
    
    REM --> If error flag set, we do not have admin.
    if '%errorlevel%' NEQ '0' (
        echo Requesting administrative privileges...
        goto UACPrompt
    ) else ( goto gotAdmin )
    
    :UACPrompt
        echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
        echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
    
        "%temp%\getadmin.vbs"
        exit /B
    
    :gotAdmin
        if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
        pushd "%CD%"
        CD /D "%~dp0"
    
    
    @echo off
    
    
    
    
    Title .NET Framework 3.5 Offline Installer
    for %%I 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 "%%I:\\sources\install.wim" set setupdrv=%%I
    if defined setupdrv (
    echo Found drive %setupdrv%
    echo Installing .NET Framework 3.5...
    Dism /online /enable-feature /featurename:NetFX3 /All /Source:%setupdrv%:\sources\sxs /LimitAccess
    echo.
    echo .NET Framework 3.5 successfully installed
    echo.
    ) else (
    echo No installation media found!
    echo Insert Bootable Pen Drive or DVD and run this file once again. 
    echo.
    )
    pause
    
    @echo off
    Automated & Offline Dot Net Framework v3.5 installation Attached Files

      My System SpecsSystem Spec

Automated & Offline Dot Net Framework v3.5 installation
Related Threads
Hi I installed Windows 8.1 Pro Update using the MSDN iso (untouched) of Windows 8.1 Update (Multiple Edition). Now, I would like to add the Windows Media Center feature. How should I do? Is it possible to add this feature even if your computer does not have an Internet connection? ...
Hi With Windows 8.1 Update, downloading an app from the Store, it is possible to download or extract its appx file in order to install it on a computer that temporarily does not have an Internet connection? Thanks Bye
How to create automated task? in General Support
Hello, my name is Franco and I'm in need of your help. Well basically I download a lot of junk which I forget to delete, so I want to create a task that automates deletion of the files each month, I know you can do it through the Task Scheduler, but I do not know the specific steps for what I...
Solved Offline Installer .net framework in Windows Updates & Activation
Please someone tell me the windows 8 x64's .net 3.5 offline installer.
Offline installation of .Net Framework 3.5 in Windows 8 Yes you can install .Net Framework 3.5 in Windows 8 offline. The .Net 3.5 package is already included in the ISO but installing it requires an elevated command prompt which means you have to run the command prompt as an Administrator and...
Windows 8 OEM Preinstallation Kit and Automated Installation Kit Are Cooking - Softpedia
Windows 8 OEM Preinstallation Kit and Automated Installation Kit Are Cooking - Softpedia
Eight Forums Android App Eight Forums IOS App Follow us on Facebook