Suggested Method of Deploying Microsoft .NET Framework 4

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

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

131 εμφανίσεις

Suggested Method of Deploy
ing 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 Servi
ces) 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 workstati
ons).






Download DotNet Framework 4.0 from
http://www.microsoft.com/net/download.aspx





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)





M
odify 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 scrip
t




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.

















setlocal


set ProductName=M
icrosoft .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.

se
t 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_MA
CHINE
\
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