Suggested Method of Deploying Microsoft .NET Framework 4

quiverlickforkΛογισμικό & κατασκευή λογ/κού

2 Νοε 2013 (πριν από 3 χρόνια και 7 μήνες)

66 εμφανίσεις

L.B. HAMMERSMITH & FULHAM SCHOOL MANAGEMENT SUPPORT
1

Suggested Method of Deploying Microsoft .NET Framework 4


In order for schools to take the SIMS Summer 2011 Release (Planned to be installed over the
summer holidays), additional infrastructure software needs to be installed on all computers
accessing SIMS.net


This software is Microsoft .NET framework 4 and is available as a free of charge download.

Microsoft .Net Framework 4.0 install can no longer be pushed out directly via group policy.

It can either be installed by WSUS (Windows Server Update Services) if you are running this service
on the server or you can use a startup script below.

Following are the steps for Deployment of DotNet Frame Work 4.0 via a Startup Script. (This process
will work for Windows XP / Windows Vista and Windows 7 workstations).

• Download DotNet Framework 4.0 from
http://www.microsoft.com/downloads/en/details.aspx?familyid=0a391abd-
25c1-4fc0-919f-b21f31ab88b7


• Put it to a shared location preferably netlogon folder.

• Copy the text in bold on the next page to a Notepad document and save it as a batch
file(.BAT)
• Modify the location of the Dot Net Frame Work 4.0 in the Batch file (highlighted in Red)

• Assign the batch file to run as a startup script in Group Policy. Make sure it is a startup script
and not a logon script
• All the PC’s in the group to which policy applies will involuntarily install Dot NET Framework
4.0 on next reboot.

If you require any further advice please contact School Management Support on 020 7605 8322.

L.B. HAMMERSMITH & FULHAM SCHOOL MANAGEMENT SUPPORT
2


setlocal
set ProductName=Microsoft .NET Framework 4 Client Profile

REM Set DeployServer to a network-accessible location containing the DotNet Frame Work 4.0.
set DeployServer=
\\virtual-server1\netlogon\software

REM Set LogLocation to a central directory to collect log files.
set LogLocation=C:\ Logs
REM Deployment code ѕtаrtѕ here. Dο nοt modify anything after this line

IF NOT "%ProgramFiles(x86)%"=="" (goto ARP64) else (goto ARP86)

REM Operating system is X64. Check for 32 bit System in emulated Wow6432 uninstall key
:ARP64
reg query
"HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432NODE\Microsoft\Windows\CurrentVersion\Unin
stall\%ProductName%"
if NOT %errorlevel%==1 (goto End)
REM Check for 32 and 64 bit versions of DotNet in regular uninstall key.
:ARP86
reg query
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%ProductNa
me%"
if %errorlevel%==1 (goto DeployDotNet) else (goto End)

REM If 1 returned, the product was not found. Run setup here.
:DeployDotNet
start /wait %DeployServer%\dotNetFx40_Full_x86_x64.exe /passive
echo %date% %time% Setup ended with error code %errorlevel%. >>
%LogLocation%\%computername%.txt
REM If 0 or other was returned, the product was found or another error occurred. Do nothing.
:End
Endlocal
EXIT