Jump to content

Recommended Posts

Posted

i have a script

rem @echo OFF
REM Check to see if .Net Framework 4.5 is installed
REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319\SKUs\.NETFramework,Version=v4.5.2"
IF %errorlevel%==1 GOTO INSTALLNET
IF %errorlevel%==0 GOTO EXIT
:INSTALLNET
"\\domain.local\dfs\Packages\ms msi\dotnet452\NDP452-KB2901907-x86-x64-AllOS-ENU.exe" /norestart /q
:EXIT
rem pause
exit 

  • Thanks 1
Posted
like so?

[ATTACH=CONFIG]28080[/ATTACH]

 

if that's your file path then yes. Add it as a startup/shutdown script to active directory (just make sure authenticated users has read access to your cdacache$ folder

Posted

It is possible to extract the files from the .EXE package using the /extract command line switch. The contents include some MSI files but also a whole load of other files. So not sure how easy it would be to deploy using the MSI option?

 

But the above script method should be just fine. I deploy .NET frameworks using the script method myself

Posted (edited)

I did use this method but some computers got the policy. but i have just deployed target tracker to staff computers but and the when the computer turns on it comes up saying installing .NET framework 4.5.2 etc and then it says installing target tracker. but when the user logs on its comes up saying .NET framework 4.5.2 needs to be installed when trying to run target tracker?

 

DSC_0344.jpg

Edited by samwells1234
Posted

if you just deployed it it can

 

a take a reboort or 2 for gpo to pick up a policy change/addition

b it installs in the background and if you say reboot a pc and it picks up the policy you can login and use the pc while its still installing in the background because by default thats how windows 7 deals with scripts. If you start task manager check for NDP452-KB2901907-x86-x64-AllOS-ENU.exe as a process running as the system user as it can take 5+ mins to install depending on pc speed network speed and so on and wont show you anything to say it is

Posted
Have you tested the script on one PC manually to see if it works? Pick a machine that doesn't have it installed, login as you and run the script. Quickest way to spot an error / typo etc

 

and put a pause on a copy of the script as the last line of the script so you can see any error its generates (DONT do this on the script itself or any pc that runs it as a startup script will wait 20 mins after finishing to exit the script)

  • Thanks 1
Posted
the script should work as i used it on a bunch of laptops last week for the same reason target tracker tested it on a trolley full of pupil laptops then deployed it to the entire curriculum pcs ou. a few took ma reboot or 2 but they were on wireless and arnt great laptops but all worked after a gpupdate force
Posted
the script should work as i used it on a bunch of laptops last week for the same reason target tracker tested it on a trolley full of pupil laptops then deployed it to the entire curriculum pcs ou. a few took ma reboot or 2 but they were on wireless and arnt great laptops but all worked after a gpupdate force

 

Just a bit of proof that it isnt installed on this computer

DSC_0344.jpg

Posted (edited)

You don't need 2 lots of quotation marks around the path (though I don't THINK that should make a difference). I also think the PAUSE should be before the EXIT.

 

P.S. I use @sted's script to deploy DN452 and it seems to be working well. I did deploy it a week before I did TT, though.

Edited by LeMarchand
Post Script

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...