1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
#Powershell Update for Quicktime #Set Variables $location = Get-Location $installEXE = "QuickTime.msi" $param = "/silent" $Install = "$location\$installEXE" $procname = $installEXE.Replace(".msi","") #Run the Install and wait for the process to finish & $install $param wait-process -name $procname #Remove the desktop shortcut remove-item "C:\Users\Public\Desktop\Quicktime Player.lnk" #Create Directory and Copy Quicktime Preferences File to Default User Profile New-Item "C:\Users\Default\AppData\LocalLow\Apple Computer\QuickTime" -type directory -force Copy-Item $location"\QuickTime.qtp" -Destination "C:\Users\Default\AppData\LocalLow\Apple Computer\QuickTime" -Force #Delete Unwanted HKLM RUN Keys reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run" /v "APSDaemon" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run" /v "Quicktime Task" /f #Associate the Filetype cmd /c "assoc .mp4=Quicktime.MP4" cmd /c " ftype Quicktime.MP4='%ProgramFiles(x86)%\QuickTime\QuickTimePlayer.exe' '%1'" |