Prevent creation of desktop icon for firefox

This commit is contained in:
Manuel Thalmann 2023-07-16 12:39:07 +02:00
parent 32030e1455
commit 06f8394423
3 changed files with 13 additions and 2 deletions

View file

@ -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");

View file

@ -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";

View file

@ -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";
}