Closed Mipeli closed 6 years ago
Is this supposed to be a feature request? Or did you actually make a patch for it and just PR'd the wrong thing?
It is a request.
Original tweak sent via mail
# Disable adding 'arrow' to desktop icons
Function DisableArrowInIcons {
Write-Output "Disabling adding 'arrow' to desktop icons..."
If (!(Test-Path "HKCR:")) {
New-PSDrive -Name "HKCR" -PSProvider "Registry" -Root "HKEY_CLASSES_ROOT" | Out-Null
}
Remove-ItemProperty -Path "HKCR:\lnkfile" -Name "IsShortcut" -ErrorAction SilentlyContinue
Remove-ItemProperty -Path "HKCR:\piffile" -Name "IsShortcut" -ErrorAction SilentlyContinue
}
# Enable adding 'arrow' to desktop icons
Function EnableArrowInIcons {
Write-Output "Enabling adding 'arrow' to desktop icons..."
If (!(Test-Path "HKCR:")) {
New-PSDrive -Name "HKCR" -PSProvider "Registry" -Root "HKEY_CLASSES_ROOT" | Out-Null
}
Set-ItemProperty -Path "HKCR:\lnkfile" -Name "IsShortcut" -Type String -Value ""
Set-ItemProperty -Path "HKCR:\piffile" -Name "IsShortcut" -Type String -Value ""
}
Eventually reimplemented differently in 5b2333ba35731d5db16755833cd6ffd17e873ec6 as the IsShortcut
modification seems a bit dangerous.
Add disable and enable arrow in shortcut icons.
Thank you Miceli