Remove shortcuts from Scoop Apps on uninstall

This commit is contained in:
Marcus Griep
2016-03-28 22:18:20 -04:00
parent 70358ae9e7
commit 558e7bc1e7
+1 -1
View File
@@ -596,7 +596,7 @@ function startmenu_shortcut($target, $shortcutName) {
function rm_startmenu_shortcuts($manifest, $global) {
$manifest.shortcuts | ?{ $_ -ne $null } | % {
$name = $_.item(1)
$shortcut = "$env:USERPROFILE\Start Menu\Programs\$name.lnk"
$shortcut = "$env:USERPROFILE\Start Menu\Programs\Scoop Apps\$name.lnk"
if(Test-Path -Path $shortcut) {
Remove-Item $shortcut
echo "Removed shortcut $shortcut"