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