From 79ed1dfa97ee9226fd9643dff7f662e299894480 Mon Sep 17 00:00:00 2001 From: BoQsc Date: Mon, 15 May 2017 09:27:02 +0300 Subject: [PATCH] Added unpin from taskbar in Lithuanian version The same must be done for the English version, but I have no source of English Windows version. --- scripts/Unpin-default-apps | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Unpin-default-apps b/scripts/Unpin-default-apps index d5a2f2c..358f5c6 100644 --- a/scripts/Unpin-default-apps +++ b/scripts/Unpin-default-apps @@ -8,7 +8,7 @@ function Pin-App { param( ) try{ if ($unpin.IsPresent){ - ((New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | ?{$_.Name -eq $appname}).Verbs() | ?{$_.Name.replace('&','') -match 'From "Start" UnPin|Unpin from Start|Atsegti nuo pradžios ekrano'} | %{$_.DoIt()} + ((New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | ?{$_.Name -eq $appname}).Verbs() | ?{$_.Name.replace('&','') -match 'From "Start" UnPin|Unpin from Start|Atsegti nuo pradžios ekrano|Atsegti nuo užduočių juostos'} | %{$_.DoIt()} return "App '$appname' unpinned from Start" }else{ ((New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | ?{$_.Name -eq $appname}).Verbs() | ?{$_.Name.replace('&','') -match 'To "Start" Pin|Pin to Start|Prisegti pradžios ekrane|Prisegti prie pradžios erano'} | %{$_.DoIt()} @@ -33,7 +33,7 @@ Write-Error "Error Pinning/Unpinning App! (App-Name correct?)" #4.And manually write down context menu option name of "Unpin from Start" that is presented in your own/current windows language. #5.Search in this script for "-match 'From "Start" UnPin|Unpin from Start|" and add context name to the list. #6.Example: -#... -match 'From "Start" UnPin|Unpin from Start|Your language unpin option name|Atsegti nuo pradžios ekrano'} | %{$_.DoIt()} +#... -match 'From "Start" UnPin|Unpin from Start|Your language unpin option name|Atsegti nuo pradžios ekrano|Atsegti nuo užduočių juostos'} | %{$_.DoIt()} #Lithuanian language