Install user-scoped project properly
This commit is contained in:
parent
407cd3be32
commit
a854c46094
1 changed files with 10 additions and 7 deletions
|
@ -17,6 +17,7 @@ function Deploy-SoftwareAction {
|
|||
)
|
||||
|
||||
[bool] $install = $false;
|
||||
[bool] $userInstall = $Action -eq ([InstallerAction]::ConfigureUser);
|
||||
$arguments = [hashtable]@{ };
|
||||
|
||||
if ($null -ne $Action) {
|
||||
|
@ -138,7 +139,7 @@ function Deploy-SoftwareAction {
|
|||
}
|
||||
}
|
||||
|
||||
if ($Action -eq ([InstallerAction]::ConfigureUser)) {
|
||||
if ($userInstall) {
|
||||
if (Test-Program "pennywise") {
|
||||
Install-WingetPackage kamranahmedse.pennywise;
|
||||
Remove-DesktopIcon "Pennywise*";
|
||||
|
@ -204,15 +205,17 @@ function Deploy-SoftwareAction {
|
|||
|
||||
if ($collections.socialMedia) {
|
||||
if ($install) {
|
||||
Install-ChocoPackage `
|
||||
signal `
|
||||
threema-desktop `
|
||||
element-desktop `
|
||||
teamspeak `
|
||||
Install-ChocoPackage teamspeak;
|
||||
Remove-DesktopIcon "*TeamSpeak*";
|
||||
}
|
||||
elseif ($userInstall) {
|
||||
Install-WingetPackage `
|
||||
Element.Element `
|
||||
OpenWhisperSystems.Signal `
|
||||
Threema.Threema `
|
||||
;
|
||||
|
||||
Remove-DesktopIcon "*Element*";
|
||||
Remove-DesktopIcon "*TeamSpeak*";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue