Customizing the Notification Area Shortcut Menu
Updated: April 8, 2009
Applies To: Windows 7, Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2, Windows Server 2008, Windows Server 2008 Foundation, Windows Server 2008 R2, Windows Server 2012, Windows Vista
The notification area shortcut appears in the notification area of the taskbar when the user is connected to your service. The notification area shortcut menu appears when a user right-clicks this notification area shortcut. This menu provides users with a shortcut to specific programs.
|The option to customize the shortcut menu is available only when creating a profile using the Windows Server 2003, Windows XP, or Windows 2000 option on the Select the Target Operating System page. It is not available for profiles created by using the Windows 7 or Windows Vista option.|
The default commands on the menu are Status, Disconnect, and Open Network Connections. You can use the CMAK wizard to customize the shortcut menu by specifying which, if any, additional commands appear on the menu.
For each command that you want to add to the menu (other than the default commands), on the Notification Area Shortcut Menu page, click New and then specify:
The name of the command as you want it to appear on the shortcut menu. If you do not specify a name for the command, the menu displays the file name and extension of the program to be run.
The file name (including the extension) of the program that runs when the user selects the associated command from the menu.
Any command-line parameters that you want to run with the program.
Whether to include the specified program file in the connection profile. If the program is not part of a standard Windows installation or is otherwise not already available on your users' computers, you can include it in the connection profile. At installation, the connection profile copies the program to the \Cm\ProfileFileName folder.
You can add keyboard access to a shortcut menu command by designating one of the letters in the command name as the access key. To specify an access key, type & immediately before the letter you want to use. For example, to add "Notepad" as a command name with the letter N specified as the access key, type &Notepad. When the user opens the shortcut menu, the access-key letter (N, in this example) is underlined in the command name (Notepad). The user would press N to run the Notepad command.
If you want to include the ampersand (&) character in the command name, type &&. For example, to use the command name Update & Refresh, type Update && Refresh. One ampersand appears in the shortcut menu, not as an access key.
|You can control whether a notification area shortcut appears in the notification area of the taskbar by editing the NoTrayIcon key in the [Connection Manager] section of the .cms file.|
|The default commands are not shown in the CMAK wizard in Shortcut menu commands or included in the service-profile files. They are part of the Connection Manager software and cannot be deleted.|
|Only .exe files and other shell executables (such as URLs and other files with registered extensions) are supported as menu commands. DLLs are not supported.|
|System macros are not supported for notification area shortcut commands.|
For more information on using advanced customization techniques to edit the .cms file, see Advanced Customization.