Add a step for setting up software with app associations
This commit is contained in:
parent
5e2c5bf5cd
commit
7cf1d9c599
1 changed files with 7 additions and 2 deletions
|
@ -17,8 +17,6 @@ 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";
|
||||||
. "$softwarePath/WinSCP/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");
|
||||||
|
@ -57,6 +55,13 @@ function Invoke-WindowsInstallation([Context] $context)
|
||||||
exit;
|
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;
|
New-PersonalUser $context;
|
||||||
Restore-WindowsInstallation $context;
|
Restore-WindowsInstallation $context;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue