This commit is contained in:
2023-11-06 10:20:43 +01:00
parent f8c11d5f03
commit e9a8a795ab
2 changed files with 2 additions and 4 deletions

View File

@@ -1,5 +1,4 @@
$DownloadFilesURL = 'https://git.justw.tf/Lightemerald/setup-script/raw/branch/main/setupTmp.ps1' irm 'https://git.justw.tf/Lightemerald/setup-script/raw/branch/main/setupTmp.ps1' | iex
Invoke-Expression -Command (Invoke-WebRequest -Uri $DownloadFilesURL).Content
function CheckOfficeInstall { function CheckOfficeInstall {
$officeRegistryPath = "HKLM:\SOFTWARE\Microsoft\Office\ClickToRun" $officeRegistryPath = "HKLM:\SOFTWARE\Microsoft\Office\ClickToRun"

View File

@@ -4,8 +4,7 @@ function Import-ScriptsFromUrls {
) )
foreach ($url in $ScriptUrls) { foreach ($url in $ScriptUrls) {
$scriptContent = Invoke-WebRequest -Uri $url irm $url | iex
Invoke-Expression -Command $scriptContent.Content
} }
} }
$baseUrl = "https://git.justw.tf/Lightemerald/setup-script/raw/branch/main/" $baseUrl = "https://git.justw.tf/Lightemerald/setup-script/raw/branch/main/"