Add a step for setting up software with app associations

This commit is contained in:
Manuel Thalmann 2023-07-26 13:44:05 +02:00
parent 5e2c5bf5cd
commit 7cf1d9c599

View file

@ -17,8 +17,6 @@ function Invoke-WindowsInstallation([Context] $context)
. "$configPath/Explorer/Install.ps1" $context;
. "$configPath/OpenSSH/Install.ps1" $context;
. "$configPath/chocolatey/Install.ps1";
. "$softwarePath/WinSCP/Install.ps1" $context;
. "$softwarePath/Thunderbird/Install.ps1" $context;
$context.RemoveDesktopIcon("*Microsoft Edge*");
$context.Set("InitialConfiguration", 1, "DWord");
@ -57,6 +55,13 @@ function Invoke-WindowsInstallation([Context] $context)
exit;
}
if (-not $context.Get("AppAssociations")) {
Write-Host "Setting up software with default app associations";
. "$softwarePath/WinSCP/Install.ps1" $context;
. "$softwarePath/Thunderbird/Install.ps1" $context;
$context.Set("AppAssociations", 1, "DWord");
}
New-PersonalUser $context;
Restore-WindowsInstallation $context;
}