diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index ba43e61e..c2d1e098 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -3,6 +3,7 @@ . "$PSScriptRoot/Upgrade.ps1"; . "$PSScriptRoot/User.ps1"; . "$PSScriptRoot/../Scripts/Context.ps1"; +. "$PSScriptRoot/../Software/Firefox/Install.ps1"; function Invoke-WindowsInstallation([Context] $context) { @@ -16,7 +17,8 @@ function Invoke-WindowsInstallation([Context] $context) Install-Module -AcceptLicense -Force "NuGet"; Import-Module NuGet; - choco install -y firefox selenium-gecko-driver; + Install-Firefox $context; + choco install -y selenium-gecko-driver; Install-Package -Force Selenium.WebDriver -SkipDependencies; $context.Set("SoftwarePrerequisitesInstalled", 1, "DWord"); diff --git a/scripts/Windows/OS/Manage.ps1 b/scripts/Windows/OS/Manage.ps1 index e53ec0f2..bfca4662 100644 --- a/scripts/Windows/OS/Manage.ps1 +++ b/scripts/Windows/OS/Manage.ps1 @@ -1,6 +1,7 @@ #!/bin/pwsh . "$PSScriptRoot/../Scripts/Context.ps1"; . "$PSScriptRoot/../Scripts/PersonalFiles.ps1"; +ยท "$PSScriptRoot/../Software/Firefox/Install.ps1"; . "$PSScriptRoot/../Software/Nextcloud/Manage.ps1"; . "$PSScriptRoot/../Collections/Personal.ps1"; @@ -31,7 +32,7 @@ function Restore-WindowsInstallation([Context] $context) { } } - choco install -y firefox; + Install-Firefox $context; Restore-Nextcloud $context; Write-Information "Determining Backup Archive Path"; diff --git a/scripts/Windows/Software/Firefox/Install.ps1 b/scripts/Windows/Software/Firefox/Install.ps1 new file mode 100644 index 00000000..56c845ff --- /dev/null +++ b/scripts/Windows/Software/Firefox/Install.ps1 @@ -0,0 +1,8 @@ +#!/bin/bash +. "$PSScriptRoot/../../Scripts/Context.ps1"; + +function Install-Firefox { + param([Context] $context) + Write-Host "Installing Firefox"; + choco install -y firefox --params "/NoDesktopShortcut"; +}