Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $tDir = "C:\temp\"
- $urlArray= @(
- "https://github.com/QuestYouCraft/Microsoft-Store-UnInstaller/blob/master/Packages/Microsoft.NET.Native.Framework.2.2_2.2.29512.0_x64__8wekyb3d8bbwe.Appx"
- "https://github.com/QuestYouCraft/Microsoft-Store-UnInstaller/blob/master/Packages/Microsoft.NET.Native.Runtime.2.2_2.2.28604.0_x64__8wekyb3d8bbwe.Appx"
- "https://github.com/QuestYouCraft/Microsoft-Store-UnInstaller/blob/master/Packages/Microsoft.UI.Xaml.2.4_2.42007.9001.0_x64__8wekyb3d8bbwe.appx"
- "https://github.com/QuestYouCraft/Microsoft-Store-UnInstaller/blob/master/Packages/Microsoft.VCLibs.140.00_14.0.30035.0_x64__8wekyb3d8bbwe.Appx"
- "https://github.com/QuestYouCraft/Microsoft-Store-UnInstaller/blob/master/Packages/Microsoft.WindowsStore_12107.1001.15.0_neutral___8wekyb3d8bbwe.AppxBundle")
- for ($i=0; $i -le $urlArray.Count -1 ; $i++) {
- $url = $urlArray[$i]
- $file = $url.Split('/')[-1]
- $dest = $tDir + $file
- Try {
- Start-BitsTransfer -Source $url -Destination $dest
- } Catch {
- Write-Host("Unable to download $file from url.")
- }
- <# #>
- }
- $EachFullName = (Get-ChildItem -Path $tDir -File -Recurse | Where-Object { ($_.Extension -eq ".Appx" ) -or ($_.Extension -eq ".msixbundle") -or ($_.Extension -eq ".AppxBundle") }).FullName
- $EachFullName | ForEach-Object { Add-AppxPackage -Path $_ ; Start-Sleep -Milliseconds 400 ; Remove-Item -Path $_ }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement