samwells1234 Posted December 18, 2014 Posted December 18, 2014 Hi Everyone, Does anyone have a working msi for .NET framework 4.5.2? Kind Regards
sted Posted December 18, 2014 Posted December 18, 2014 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 1
samwells1234 Posted December 18, 2014 Author Posted December 18, 2014 I am really new to this scripting stuff but after the INSTALLNET is that the code where you have stored the msi because i am assuming thats all i need to change?
themightymrp Posted December 18, 2014 Posted December 18, 2014 The script doesn't use an MSI, it just uses the .EXE version you can download from Microsoft and installs it silently.
samwells1234 Posted December 18, 2014 Author Posted December 18, 2014 ok so i have just downloaded it and placed the exe into a drive where i usually keep all my exe files / software. so do i just change the file path in that script?
sted Posted December 18, 2014 Posted December 18, 2014 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
themightymrp Posted December 18, 2014 Posted December 18, 2014 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
themightymrp Posted December 18, 2014 Posted December 18, 2014 Actually you could do it using the method shown here... but probably more hassle than its worth How to create an administrative install point for the .NET Framework 4 - Aaron Stebner's WebLog - Site Home - MSDN Blogs
samwells1234 Posted December 18, 2014 Author Posted December 18, 2014 I have just got round to do this and still no go
samwells1234 Posted December 18, 2014 Author Posted December 18, 2014 (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? Edited December 18, 2014 by samwells1234
sted Posted December 18, 2014 Posted December 18, 2014 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
samwells1234 Posted December 18, 2014 Author Posted December 18, 2014 Still not working i am just gonna have to install it manually i think
themightymrp Posted December 18, 2014 Posted December 18, 2014 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 1
sted Posted December 18, 2014 Posted December 18, 2014 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) 1
sted Posted December 18, 2014 Posted December 18, 2014 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
samwells1234 Posted December 18, 2014 Author Posted December 18, 2014 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
samwells1234 Posted December 18, 2014 Author Posted December 18, 2014 proof of no .net installed the script i have used the script doesnt stay on with the pause either :-(
LeMarchand Posted December 18, 2014 Posted December 18, 2014 (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 December 18, 2014 by LeMarchand Post Script
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now