-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-store-and-dependency.ps1
132 lines (101 loc) · 5.54 KB
/
install-store-and-dependency.ps1
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Write-Host "
=========================== You've opened...
______ ___ ______ _______
/ _____) / __) (_____ (_______)
( (____ _ _ ____ _| |__ _____ ____ _____ _____) ) _
\____ \| | | |/ ___|_ __|____ |/ ___) ___ | | __ / | |
_____) ) |_| | | | | / ___ ( (___| ____| | | \ \ | |
(______/|____/|_| |_| \_____|\____)_____) |_| |_| |_|
______ _ _ _
/ _____) _ (_) _ | | |
( (____ _| |_ ___ ____ _____ _ ____ ___ _| |_ _____| | |
\____ (_ _) _ \ / ___) ___ | | | _ \ /___|_ _|____ | | |
_____) )| || |_| | | | ____| | | | | |___ | | |_/ ___ | | |
(______/ \__)___/|_| |_____) |_|_| |_(___/ \__)_____|\_)_)
=========================== Store installation script written by LeYuuki
=========================== Version 1.0.0"
Start-Sleep -s 3
Read-Host -Prompt "=========================== Press enter to continue"
Write-Host "`r$frame" -NoNewline
[Console]::CursorVisible = $false
$animation = @"
_ _ _
| | | (_)
| | ___ _____ __| |_ ____ ____
| |/ _ \(____ |/ _ | | _ \ / _ |
| | |_| / ___ ( (_| | | | | ( (_| |
\_)___/\_____|\____|_|_| |_|\___ |
(_____|
#
_ _ _
| | | (_)
| | ___ _____ __| |_ ____ ____
| |/ _ \(____ |/ _ | | _ \ / _ |
| | |_| / ___ ( (_| | | | | ( (_| | _
\_)___/\_____|\____|_|_| |_|\___ | (_)
(_____|
#
_ _ _
| | | (_)
| | ___ _____ __| |_ ____ ____
| |/ _ \(____ |/ _ | | _ \ / _ |
| | |_| / ___ ( (_| | | | | ( (_| | _ _
\_)___/\_____|\____|_|_| |_|\___ | (_) (_)
(_____|
#
_ _ _
| | | (_)
| | ___ _____ __| |_ ____ ____
| |/ _ \(____ |/ _ | | _ \ / _ |
| | |_| / ___ ( (_| | | | | ( (_| | _ _ _
\_)___/\_____|\____|_|_| |_|\___ | (_) (_) (_)
(_____|
"@
$frames = $animation.Split("#").Trim()
$animationLoopNumber = 5 # number of times to loop animation
$animationSpeed = 250 # time in milliseconds to show each frame
$i = 0
do {
foreach ($frame in $frames) {
Clear-Host
Write-Output "$frame`n`n`n"
Start-Sleep -Milliseconds $animationSpeed
}
$i++
} until ($i -eq $animationLoopNumber)
Write-Host "=========================== Preparations complete"
Start-Sleep -s 2
Write-Host "=========================== Installing NET Framework"
Add-AppxPackage $PSScriptRoot\files\Microsoft.NET.Native.Framework.1.6_1.6.27413.0.Appx
Add-AppxPackage $PSScriptRoot\files\Microsoft.NET.Native.Framework.1.7_1.7.27413.0.Appx
Add-AppxPackage $PSScriptRoot\files\Microsoft.NET.Native.Framework.2.2_2.2.27912.0.Appx
Add-AppxPackage $PSScriptRoot\files\Microsoft.NET.Native.Framework.1.7.appx
Add-AppxPackage $PSScriptRoot\files\Microsoft.NET.Native.Framework.1.3_1.3.24211.0.appx
Write-Host "=========================== Installing NET Runtime"
Add-AppxPackage $PSScriptRoot\files\Microsoft.NET.Native.Runtime.1.4_1.4.24201.0.Appx
Add-AppxPackage $PSScriptRoot\files\Microsoft.NET.Native.Runtime.1.6_1.6.24903.0.Appx
Add-AppxPackage $PSScriptRoot\files\Microsoft.NET.Native.Runtime.1.7_1.7.25531.0.Appx
Add-AppxPackage $PSScriptRoot\files\Microsoft.NET.Native.Runtime.2.2_2.2.27328.0.Appx
Add-AppxPackage $PSScriptRoot\files\Microsoft.NET.Native.Runtime.1.7.appx
Add-AppxPackage $PSScriptRoot\files\Microsoft.NET.Native.Runtime.1.3_1.3.23901.0.Appx
Write-Host "=========================== Installing VCLibs"
Add-AppxPackage $PSScriptRoot\files\Microsoft.VCLibs.140.00.Appx
Add-AppxPackage $PSScriptRoot\files\Microsoft.VCLibs.ARM.14.00.appx
Add-AppxPackage $PSScriptRoot\files\Microsoft.VCLibs.120.00.Universal_12.0.30501.0.Appx
Add-AppxPackage $PSScriptRoot\files\Microsoft.VCLibs.120.00_12.0.21005.1.Appx
Write-Host "=========================== Installing extras"
Add-AppxPackage $PSScriptRoot\files\Microsoft.Advertising.Xaml_10.1811.1.0.Appx
Add-AppxPackage $PSScriptRoot\files\Microsoft.Services.Store.Engagement_10.0.19011.0.Appx
Add-AppxPackage $PSScriptRoot\files\Microsoft.UI.Xaml.2.0_2.1810.18004.0.Appx
Write-Host "=========================== Installing Store and AppInstaller"
Add-AppxPackage $PSScriptRoot\files\Microsoft.DesktopAppInstaller.AppxBundle
Add-AppxPackage $PSScriptRoot\files\Microsoft.StorePurchaseApp.AppxBundle
Add-AppxPackage $PSScriptRoot\files\Microsoft.WindowsStore.appxbundle
Write-Host "
"
Write-Host "=========================== All Done! Check start menu for Microsoft Store! -written by LeYuuki"
Write-Host "=========================== Discord: https://discord.gg/tAxvvVC"
Write-Host "
"
Start-Sleep -s 3
Read-Host -Prompt "=========================== Press enter to exit"