Finished setup
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
irm 'https://git.justw.tf/Lightemerald/setup-script/raw/branch/main/setupTmp.ps1' | iex
|
|
||||||
|
|
||||||
function CheckOfficeInstall {
|
function CheckOfficeInstall {
|
||||||
$officeRegistryPath = "HKLM:\SOFTWARE\Microsoft\Office\ClickToRun"
|
$officeRegistryPath = "HKLM:\SOFTWARE\Microsoft\Office\ClickToRun"
|
||||||
if (Test-Path -Path $officeRegistryPath) {
|
if (Test-Path -Path $officeRegistryPath) {
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ $scriptUrls = @(
|
|||||||
)
|
)
|
||||||
|
|
||||||
$scripts = Import-ScriptsFromUrls -ScriptUrls $scriptUrls -LocalPath (Join-Path $env:LOCALAPPDATA "Temp")
|
$scripts = Import-ScriptsFromUrls -ScriptUrls $scriptUrls -LocalPath (Join-Path $env:LOCALAPPDATA "Temp")
|
||||||
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process
|
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process -Force
|
||||||
foreach ($script in $scripts) {
|
foreach ($script in $scripts) {
|
||||||
. $script
|
. $script
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user