Install software before setting associations
This commit is contained in:
parent
6464f32396
commit
892aa46f12
3 changed files with 12 additions and 2 deletions
|
@ -9,6 +9,7 @@ function Invoke-WindowsInstallation([Context] $context)
|
||||||
{
|
{
|
||||||
if (-not $context.Get("InitialConfiguration")) {
|
if (-not $context.Get("InitialConfiguration")) {
|
||||||
$configPath = "$PSScriptRoot/../Config";
|
$configPath = "$PSScriptRoot/../Config";
|
||||||
|
$softwarePath = "$PSScriptRoot/../Software";
|
||||||
|
|
||||||
$null = Enable-WindowsOptionalFeature -Online -All -FeatureName "NetFx3";
|
$null = Enable-WindowsOptionalFeature -Online -All -FeatureName "NetFx3";
|
||||||
|
|
||||||
|
@ -16,8 +17,8 @@ function Invoke-WindowsInstallation([Context] $context)
|
||||||
. "$configPath/Explorer/Install.ps1" $context;
|
. "$configPath/Explorer/Install.ps1" $context;
|
||||||
. "$configPath/OpenSSH/Install.ps1" $context;
|
. "$configPath/OpenSSH/Install.ps1" $context;
|
||||||
. "$configPath/chocolatey/Install.ps1";
|
. "$configPath/chocolatey/Install.ps1";
|
||||||
. "$configPath/WinSCP/Install.ps1" $context;
|
. "$softwarePath/WinSCP/Install.ps1" $context;
|
||||||
. "$configPath/Thunderbird/Install.ps1" $context;
|
. "$softwarePath/Thunderbird/Install.ps1" $context;
|
||||||
|
|
||||||
$context.RemoveDesktopIcon("*Microsoft Edge*");
|
$context.RemoveDesktopIcon("*Microsoft Edge*");
|
||||||
$context.Set("InitialConfiguration", 1, "DWord");
|
$context.Set("InitialConfiguration", 1, "DWord");
|
||||||
|
|
|
@ -5,3 +5,4 @@ param($context)
|
||||||
[Context] $context = $context;
|
[Context] $context = $context;
|
||||||
|
|
||||||
choco install -y thunderbird --params "/NoTaskbarShortcut /NoDesktopShortcut";
|
choco install -y thunderbird --params "/NoTaskbarShortcut /NoDesktopShortcut";
|
||||||
|
. "$PSScriptRoot/../../Config/Thunderbird/Install.ps1" $context;
|
||||||
|
|
8
scripts/Windows/Software/WinSCP/Install.ps1
Normal file
8
scripts/Windows/Software/WinSCP/Install.ps1
Normal 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;
|
Loading…
Reference in a new issue