Install software before setting associations

This commit is contained in:
Manuel Thalmann 2023-07-26 00:15:51 +02:00
parent 6464f32396
commit 892aa46f12
3 changed files with 12 additions and 2 deletions

View file

@ -9,6 +9,7 @@ function Invoke-WindowsInstallation([Context] $context)
{
if (-not $context.Get("InitialConfiguration")) {
$configPath = "$PSScriptRoot/../Config";
$softwarePath = "$PSScriptRoot/../Software";
$null = Enable-WindowsOptionalFeature -Online -All -FeatureName "NetFx3";
@ -16,8 +17,8 @@ function Invoke-WindowsInstallation([Context] $context)
. "$configPath/Explorer/Install.ps1" $context;
. "$configPath/OpenSSH/Install.ps1" $context;
. "$configPath/chocolatey/Install.ps1";
. "$configPath/WinSCP/Install.ps1" $context;
. "$configPath/Thunderbird/Install.ps1" $context;
. "$softwarePath/WinSCP/Install.ps1" $context;
. "$softwarePath/Thunderbird/Install.ps1" $context;
$context.RemoveDesktopIcon("*Microsoft Edge*");
$context.Set("InitialConfiguration", 1, "DWord");

View file

@ -5,3 +5,4 @@ param($context)
[Context] $context = $context;
choco install -y thunderbird --params "/NoTaskbarShortcut /NoDesktopShortcut";
. "$PSScriptRoot/../../Config/Thunderbird/Install.ps1" $context;

View file

@ -0,0 +1,8 @@
#!/bin/pwsh
param($context)
. "$PSScriptRoot/../../Scripts/Context.ps1";
[Context] $context = $context;
choco install -y winscp;
. "$PSScriptRoot/../../Config/WinSCP/Install.ps1" $context;