1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Must update remove my taskbar-pinned shortcut?

Discussion in 'Support' started by vefatica, Apr 5, 2013.

  1. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,783
    Likes Received:
    29
    Must it? It didn't in the past.

    It seems rather silly to keep a shortcut to TCC15 on the desktop solely for the purpose of dragging it to the taskbar every time an update deletes my taskbar-pinned shortcut. I found a couple ways to make restoring it easier.

    With a shortcut in g:\tc15\ ...

    My SYSUTILS plugin's SHELLEX can do it:
    Code:
    shellex /v taskbarpin g:\tc15\TCC15.lnk
    (It took a while to track down the "taskbarpin" verb.)
    And a PowerShell script like this will do it.
    Code:
    $shell = new-object -com "Shell.Application"
    $folder = $shell.Namespace('g:\tc15')
    $item = $folder.Parsename('TCC15.lnk')
    $verb = $item.Verbs() | ? {$_.Name -eq 'Pin to Tas&kbar'}
    if ($verb) {$verb.DoIt()}
    
    Considering that, it's odd that my SHELLEX plugin fails (with or without /C (ontext menu)) when I specify the verb "Pin to Tas&kbar". ShellExecuteEx() fails with an error whose text is "Unspecified error" (very informative). Any ideas on that failure (considering that PS seems to do roughly the same thing)?
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,726
    Likes Received:
    80
    There is nothing in the installer that references a shortcut pinned to the taskbar. Windows Installer doesn't even support putting one there (Microsoft won't allow it).
     
  3. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,783
    Likes Received:
    29
    I don't want TCMD updates to put one there.

    I want TCMD updates to stop deleting the one I put there (as all through the v14 cycle and up to release of v15).

    The behavior has changed. My Windows software has not changed.
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,726
    Likes Received:
    80
    The shortcut configuration in the installer has not changed. Some people say the pinned updates have always been removed; some say that they're never removed, and now you're saying it used to not be removed and now it is.

    Nevertheless, there is nothing in the installer script to do this (even if I wanted to), and nothing has changed in the installer shortcut code for years. Perhaps you got a Windows update that affected the installer behavior.

    I asked the installer developers about the pinned shortcuts several months ago, and they told me it wasn't supported, and they didn't know (or particularly care) why the shortcuts were disabled on an update. Perhaps Windows watches when an uninstall occurs (which always happens in an update) and disables the shortcuts pointing to the deleted app.
     
  5. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,783
    Likes Received:
    29
    The removal of the pinned shortcuts coincided with the removal of the "Remove only the previous version" page in the installation process.
     
  6. samintz

    samintz Scott Mintz

    Joined:
    May 20, 2008
    Messages:
    1,177
    Likes Received:
    11
    The attached screen snippets show what the icon on the taskbar is doing (and has been doing since I've been running Win7 - i.e. for years now). I have not noticed any different or new behavior with regard to the pinned shortcut.

    tcmd_install.jpg

    I then right-click that white-icon, select un-pin. Then right-click again and select pin, and the good icon and shortcut are back.

    -Scott
     
  7. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,783
    Likes Received:
    29
    I have never seen that here. My icon just disappears.
     
  8. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,726
    Likes Received:
    80
    Google it; you'll get a few million hits about Windows Installer unlinking pinned taskbar icons. As I said, it's a Windows issue, not a TCMD issue.

    (And yes, I could work around it by writing an app to relink taskbar icons, but then Microsoft would decertify Take Command for being incompatible with Win 7 & 8, because apps are not supposed to do that.)
     
  9. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,783
    Likes Received:
    29
    As I said, it didn't happen with v14 or (up until release) v15. It seems to have started when you removed the "uninstall old versions" install page.
     
  10. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,726
    Likes Received:
    80
    Only for you. For others, it always behaved that way.
     
  11. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,783
    Likes Received:
    29
    My Windows hasn't changed.
     
  12. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,277
    Likes Received:
    38
    I created my own shortcut in %APPDATA and pinned that. The updater never touches it.
     
  13. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,726
    Likes Received:
    80
    If it worked for you before, then I'm obligated by Microsoft to ensure that it doesn't ever work again.
     
  14. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,783
    Likes Received:
    29
    **I** made the shortcut (just as MS wants it to be). I don't want you to make it and I don't want you to remove it.
     
  15. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,783
    Likes Received:
    29
    What Windows?
     
  16. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,277
    Likes Received:
    38
    Windows 7, of course. Do you really think I'd use Vista? Well, if you held a gun to my head, I guess.
     
  17. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,783
    Likes Received:
    29
    Well, I moved my shortcut out of TCC's home directory, un-pinned, and pinned the new one. I'll see if that makes a difference.
     
  18. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    You forget - Microsoft owns your computer, it is Microsoft's Personal Computer, not yours!
     
  19. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,726
    Likes Received:
    80
    The installer doesn't remove it. The installer removes the old program, and then Windows disables the shortcut because the program is no longer there. Windows doesn't care that the program is reinstalled a few moments later.
     
  20. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,783
    Likes Received:
    29
    Today I updated to build 33. My taskbar-pinned shortcut was untouched. It wasn't removed; it wasn't disabled. The shortcut I use to create the pinned shortcut was in the TCC install directory; I moved it elsewhere. But I really doubt that accomplished anything since the actual pinned shortcut (created by the act of pinning) is in "C:\Users\vefatica\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\UserPinned\TaskBar" and is an exact copy of the more permanent one. Did you change anything, Rex?
     
  21. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,726
    Likes Received:
    80
    I did not change anything. (As I've been trying to say, I *can't* change anything, because the installer isn't involved.)
     

Share This Page