-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
executable file
·55 lines (43 loc) · 1.22 KB
/
main.go
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
package main
import (
"fmt"
"github.com/dennis1248/Automated-Windows-10-configuration/src/choco"
"github.com/dennis1248/Automated-Windows-10-configuration/src/fs"
"github.com/dennis1248/Automated-Windows-10-configuration/src/functions"
"github.com/dennis1248/Automated-Windows-10-configuration/src/registery"
"github.com/dennis1248/Automated-Windows-10-configuration/src/theme"
)
func main() {
funs.CheckSYS()
fmt.Println("Starting setup...")
// check if Chocolatey is installed, if not try to install it
err := choco.InstallIfNeededChocolatey()
if err != nil {
fmt.Println("Can't run Chocolatey installer, Error: \n", err)
funs.Die()
}
// install choco packages specified in the package file
err = choco.InstallPackages()
if err != nil {
fmt.Println(err)
funs.Die()
}
fmt.Println("Installing Windows theme...")
err = theme.SetTheme()
if err != nil {
fmt.Println("Error while installing theme, Error:")
fmt.Println(err)
fmt.Println()
}
fmt.Println("Changing registery items...")
err = registery.SetAllRegisteryItems()
if err != nil {
fmt.Println("Error while changing registery items, Error:")
fmt.Println(err)
fmt.Println()
}
fs.FinalCleanUp()
fmt.Println("Done!")
funs.EndTips()
funs.Die()
}