所有用户的任务栏图标
是否可以在 Windows 7 的安装程序中创建任务栏图标(快捷方式、shell 链接、任何您想要的名称)?我知道这对于以前的 Windows 版本中的快速启动工具栏是不可能的,但也许 Windows 7 中发生了一些变化?
is it possible to create taskbar icons (shortcuts, shell links, whatever you want them to be named) in the installer in Windows 7? I know this is not possible with the quick launch toolbar in previous windows version, but maybe something has changed in windows 7?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我假设您想将图标固定到任务栏。 不,这不可能以编程方式实现,
如果这是企业环境,另请注意,没有没有组影响固定项目的策略设置。如果你谷歌一下,就会发现有一些肮脏的黑客可以将东西固定到任务栏上,但这涉及到覆盖用户当前固定的所有项目,这是一个非常糟糕的主意。 (我可以看到服务台呼叫:“我的图标去了哪里???我无法启动互联网!”)
I'm assuming you want to pin an icon to the taskbar. No, that is not programmatically possible, and with good reason. It is your user's job to decide if your program is cool enough that they want it to be pinned to the taskbar.
If this is a corporate environment, note also that there is no group policy setting to affect a pinned item. If you Google around, there are some dirty hacks to get things pinned to the taskbar, but it involves overwriting all of the user's currently pinned items, which is a very bad idea. (I can see the helpdesk calls: "Where did my icons go??? I can't start the internet!")
是的,可以通过 VBScript 固定当前用户
http://www.codeproject.com/Articles/185512/Programmatically-PIN-shortcut-onto-Taskbar-on-Win7.aspx
此脚本也可以通过此 C# 在运行时创建。 NET 类:
http://blog.ananthonline.net/?p=37
如果您是您可以使用以下命令在 DASH 过程中固定到所有用户的 OEM
Yes, it is possible through a VBScript to pin for the current user
http://www.codeproject.com/Articles/185512/Programmatically-PIN-shortcut-onto-Taskbar-on-Win7.aspx
This script can also be created at runtime by this C# .NET Class:
http://blog.ananthonline.net/?p=37
If you are an OEM you can pin to all users during the DASH process with the following command
Windows 7 任务栏固定图标存储在以下位置:
文件系统:%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar
注册表:[HKEY_CURRENT_USER\Software\Microsoft\ Windows\CurrentVersion\Explorer\Taskband]
要部署固定项目,您可以执行以下步骤:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband]
并复制
%APPDATA%\Microsoft\Internet Explorer\Quick Launch 中的项目\User Pinned\TaskBar
到共享文件夹。请注意,仅当用户将图标固定到任务栏后才会创建
%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned
文件夹。在登录脚本中,您需要创建%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar
文件夹(如果该文件夹不存在)。另请注意这将替换当前所在位置的所有图标!!!因此,对我来说,这很合适,因为它仅在我们的 DR 终端上使用,用户不应尝试对任何内容进行个性化设置,并且将根据需要从一个航站楼转移到另一个航站楼。
最后:还有另一种方法可以使用此 VBS 脚本来完成此操作,该脚本允许您将固定项目的当前集合添加到:
http://blogs.technet.com/b/deploymentguys /archive/2009/04/08/pin-items-to-the-start-menu-or-windows-7-taskbar-via-script.aspx
我不喜欢这种方法,因为它涉及登录脚本。
Windows 7 taskbar pinned icons are stored in the following locations:
File System: %APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar
Registry: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband]
To deploy a pinned item, you can perform the following steps:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband]
And copy items in the
%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar
to a shared folder.Please note that the
%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned
folder is only created after a user has pinned an icon to the taskbar. In the logon script, you will need to create the%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar
folder if it does not exist.PLEASE ALSO NOTE THIS REPLACES ALL ICONS CURRENTLY IN LOCATION!!! So, for me, this is suitable as it is only being used on our DR terminals where the users shouldn't be trying to personalise anything and are going to be moving from terminal to terminal on demand.
Finally: There is another way to do it using this VBS script, which allows you to add to the users current collection of pinned items:
http://blogs.technet.com/b/deploymentguys/archive/2009/04/08/pin-items-to-the-start-menu-or-windows-7-taskbar-via-script.aspx
I didn't like this method as it involves a logon script.
没有可用于将应用程序固定到任务栏的 API,因为 Microsoft 不希望您这样做。
http://msdn.microsoft.com/ en-us/library/dd378460(v=VS.85).aspx#unified
There is no api available to pin an application to the taskbar because Microsoft doesn't want you to do that.
http://msdn.microsoft.com/en-us/library/dd378460(v=VS.85).aspx#unified