none
How to Remove "Pin this program to taskbar" RRS feed

  • Question

  • How to Remove "Pin this program to taskbar"

    I have create a window, when I run it, it will be shown on the taskbar, right click the icon, it will show three option
    1) xxxx.exe
    2) pin this program to the taskbar
    3) close

    But how can I romve the 1) and 2) ?
    Wednesday, March 11, 2009 5:52 AM

Answers

  • I apologize for necro-ing a post but I found a better solution which is the solution I wanted back when I posted.


    This option allows you to visually remove it as well.

    In Group Policy there will be an option called "Do not allow pinning programs to the Taskbar"

    It is located in the same area as the link I posted before but if that link is dead:

    Local Group Policy Editor > User Configuration > Administrative Templates > Start Menu and Taskbar *Do not allow pinning programs to the Taskbar.

    Byebye


    Monday, July 23, 2012 9:16 PM

All replies

  • Jing Jing Jing said:

    How to Remove "Pin this program to taskbar"

    I have create a window, when I run it, it will be shown on the taskbar, right click the icon, it will show three option
    1) xxxx.exe
    2) pin this program to the taskbar
    3) close

    But how can I romve the 1) and 2) ?

    Hi

    I don't think this can be done, those options are not a standard context menu and are probably hard coded since they are part of the new Taskbar features.

     

    You can make the Windows 7 Product Team aware of your request or thoughts by posting to our official feedback thread.

    Have Comments about Windows 7 Beta?

    All of the posts in that thread are collected, periodically by the Forum Owners and sent directly to the Windows 7 Product Team.

    Just click the Reply Button in the first post on that thread and post your comments.


    Hope this helps.


    Thank You for testing Windows 7 Beta

    Ronnie Vernon MVP
    Wednesday, March 11, 2009 7:16 AM
    Moderator
  • But I find the hh.exe  (Windows\hh.exe) can do this.

    When it open a .chm, the icon on the taskbar will not show the "Pin this program to taskbar", but only ''Close Window".


    Wednesday, March 11, 2009 7:24 AM
  • It's been my experience that some things can be pinned, while others can't. The RUN command, for instance, never shows an icon on the task bar - ergo - it can't be pinned. It's an extension of the Start menu.

    An app I use that's networked likewise shows no options for pinning or opening another instance. I haven't found any means to control this one way or the other...
    Wednesday, March 11, 2009 7:50 PM
  • Jing Jing Jing said:

    But I find the hh.exe  (Windows\hh.exe) can do this.

    When it open a .chm, the icon on the taskbar will not show the "Pin this program to taskbar", but only ''Close Window".


    Hi

    This is strange.

    I am seeing something completely different?

    Here is a screenshot of the Taskbar when I open an .CHM file and then right click the icon on the Taskbar.



     



    Thank You for testing Windows 7 Beta

    Ronnie Vernon MVP
    Wednesday, March 11, 2009 11:49 PM
    Moderator
  • Wolfie2k6 said:

    It's been my experience that some things can be pinned, while others can't. The RUN command, for instance, never shows an icon on the task bar - ergo - it can't be pinned. It's an extension of the Start menu.

    An app I use that's networked likewise shows no options for pinning or opening another instance. I haven't found any means to control this one way or the other...

    I agree.

    It appears that only a program (exe) can be pinned to the Taskbar.

    If you try to drag a folder and drop it on the Taskbar, it will prompt you to "Pin to Windows Explorer", it will then pin Windows Explorer to the Taskbar and add the folder to the WE Jump List.

    The same goes for a Word doc file, you get prompted to pin Word and the doc file is added to the Jump List.

    There is a good article that explains a lot about the new Taskbars functionality, but nothing about how to change it.

    The Windows 7 Taskbar

    I imagine the tweaks will follow soon after the RTM launches. :))



    Thank You for testing Windows 7 Beta

    Ronnie Vernon MVP
    Thursday, March 12, 2009 12:22 AM
    Moderator
  • The hh.exe can pin to taskbar, but when open a "xxx.chm", the pin will not show.

    And this looks like:

    The hh.exe can't open without command line. Although it pins on the taskbar, you can't run it  just by click the icon.

    So when we open a "xx.chm", and right click the icon, the "pin this program to taskbar" will not show.

    And this logic makes sence.



    Thursday, March 12, 2009 2:23 AM
  • I would say it makes since so long as this isn't somewhere in the registry.  This does sound like it is hard coded.  With the understanding that this is hard coded, it would be logically easier for the programmer to make a general inclusion and exclusion list for "Pin to Taskbar." So they can code that anything that is an EXE standard executable file or shortcut to executable will receive a Pin to Taskbar option.  So anything not in that list such as chm files would not get the pin to taskbar option. Even if though it calls upon a certain executable to start.

    I'm half tired and hope I wrote that sensibly and clearly.  Definitly take Ronnie's advice and send them a message using "Send Feedback" or posting a message in the identified thread, let them know you want the option to remove or add "Pin to Taskbar" from the context menu.
    Thursday, March 12, 2009 3:09 AM
  • Thank you all,  I have seed a feedback~~
    Hope they will send back soon~


    Thursday, March 12, 2009 3:17 AM
  • Jing Jing Jing said:

    The hh.exe can pin to taskbar, but when open a "xxx.chm", the pin will not show.

    And this looks like:

    The hh.exe can't open without command line. Although it pins on the taskbar, you can't run it  just by click the icon.

    So when we open a "xx.chm", and right click the icon, the "pin this program to taskbar" will not show.

    And this logic makes sence.

    Hi

    You don't really need the command line to start HH.EXE. You can simply double click the .CHM file and it will open with HH.EXE. This will display the HH.EXE icon on the Taskbar and the "Pin to Taskbar" does show when you right click the HH.EXE Icon.

    One cool thing I just tried.

    If you pin the HH.exe to the Taskbar, you can then drag .CHM files and drop them into the Jump List of the HH Icon.

    Then you can right click on the HH Icon and single click any of the .CHM files to run them.

    Here is a screenshot of this.





    Thank You for testing Windows 7 Beta

    Ronnie Vernon MVP
    Thursday, March 12, 2009 3:51 AM
    Moderator
  • Got the way to romove the "Pin ......." Option
    I have tried, it really works.

    Registering an Application as a Host Process

    An application can set the IsHostApp registry entry to causes that executable's process to be considered a host process by the taskbar. This can affect its grouping and default Jump List entries.

    The following example shows the required registry entry. Note that the entry is not assigned a value; its presence is all that is required. It is a REG_NULL value.

    • HKEY_CLASSES_ROOT
      • Applications
        • example.exe

        • IsHostApp

    If a shortcut file that was used to launch the running instance of the process can be identified or if the application has set an explicit AppID, then the host process list is ignored and the application is treated as a normal application by the taskbar. The application's running windows are grouped together under a single taskbar button and the application can be pinned to the taskbar.

    If only the running process's executable name is known, and that executable is in the host process list, then each instance of the process is treated as a separate entity for taskbar grouping. The taskbar button associated with any specific instance of the process does not display a pin/unpin option or a launch icon for a new instance of the process.


    More Detail 
    http://msdn.microsoft.com/en-us/library/dd378459(VS.85).aspx

    Thursday, March 19, 2009 3:54 AM
  • Jing

    Very good find.

    Thanks for letting us know the solution that you found.


    Regards,


    Thank You for testing Windows 7 Beta

    Ronnie Vernon MVP
    Thursday, March 19, 2009 4:52 AM
    Moderator
  • I noticed that a few third party apps dont allow this to work.

    Is anyone able to find out why that would be? The pin menu still shows up but it does nothing when I add that key-value.

    Thanks,
    Dan
    Software Developer
    Tuesday, April 14, 2009 12:37 AM
  • Just noticed also if I create my own shortcut for some items to the desktop and add this registry key that the hack works for the short cut I've created but not the one in the start menu.
    Software Developer
    Tuesday, April 14, 2009 8:34 PM
  • I get the same problem~ 

    Some App can't hide the "pin..."

    Tuesday, April 21, 2009 2:42 AM
  • Just noticed also if I create my own shortcut for some items to the desktop and add this registry key that the hack works for the short cut I've created but not the one in the start menu.
    Software Developer

    Because the in the start menu, right click the shell link, it will show "Pin to Taskbar" and "Pin to Start Menu".
    And set the IsHostApp, the start menu will NOT update and remove the two "Pin..." unless we do some change on the shell link.
    I think we should set the Registry IsHostApp before we add app to the start menu.
    So we should first set the Registry and then add links to the start menu. 

    If the link is already in the start menu, please make any change of the link, it will update the staut.

    I think it is a bug of the start meun.

    And I have tried this on Build 7077.
    I hope this will be fixed at the next version.
    Wednesday, April 22, 2009 9:28 AM
  • Jing

    Very good find.

    Thanks for letting us know the solution that you found.


    Regards,


    Thank You for testing Windows 7 Beta

    Ronnie Vernon MVP

    Just noticed also if I create my own shortcut for some items to the desktop and add this registry key that the hack works for the short cut I've created but not the one in the start menu.
    Software Developer

    Hi Ronnie,

    Question
    ---------------------------------------------------------------------------------------------------------------------
    Because the in the start menu, right click the shell link, it will show "Pin to Taskbar" and "Pin to Start Menu".
    And set the IsHostApp, the start menu will NOT update and remove the two "Pin..." unless we do some change on the shell link.
    I think we should set the Registry IsHostApp before we add app to the start menu.
    So we should first set the Registry and then add links to the start menu. 

    If the link is already in the start menu, please make any change of the link, it will update the staut.

    I think it is a bug of the start meun.

    And I have tried this on Build 7077.
    I hope this will be fixed at the next version.
    ----------------------------------------------------------------------------------------------------------------------

    Do you think it is a Bug?
    Wednesday, April 22, 2009 9:36 AM
  • This is an old thread, but wanted to make mention that I found luck with this solution:

    1. Open Registry Editor (regedit.exe)
    2. Navigate to HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer
    3. Construct a REG_DWORD value named "TaskbarNoPinnedList"
    4. Set its data to 1
    5. Reboot


    Wednesday, August 17, 2011 1:05 PM
  • I came here looking for the same thing.

    There is also a way to disable the option but it will still show.

    http://www.door2windows.com/how-to-disable-pinning-of-programs-to-taskbar-in-windows-7/
    Sunday, September 4, 2011 8:48 AM
  • I apologize for necro-ing a post but I found a better solution which is the solution I wanted back when I posted.


    This option allows you to visually remove it as well.

    In Group Policy there will be an option called "Do not allow pinning programs to the Taskbar"

    It is located in the same area as the link I posted before but if that link is dead:

    Local Group Policy Editor > User Configuration > Administrative Templates > Start Menu and Taskbar *Do not allow pinning programs to the Taskbar.

    Byebye


    Monday, July 23, 2012 9:16 PM