SMSINST: Adding Shortcuts to Start Menu When Using System Policies (198778)
The information in this article applies to:
- Microsoft Systems Management Server Installer 1.0
- Microsoft Systems Management Server Installer 2.0
This article was previously published under Q198778 SUMMARY
The purpose of this article is to provide an example of how the "Create Shortcut" script item can be used to add a link for a Control Panel applet (in this case, the Advertised Program Wizard) to the Start menu. This may be useful in environments where the user does not have direct access to the Control Panel as a result of a system policy.
The following items explain the steps taken by the Installer script. A script is provided at the end of this article for example purposes only.
-
Read the current win32 system directory into the installer variable SYS. You need this because your link is going to a CPL file contained in this directory, which may be a different path on different machines, which execute this script.
-
Read the Common Start menu value from the registry to get the path to the All Users Start menu (again this may vary from workstation to workstation). This is where you are going to place the actual .lnk file so that all users receive the shortcut. Place the value in the DESTPATH variable.
- Append the name of the .lnk file to the DESTPATH variable to form a complete destination path for the Create Shortcut script item.
- In the Create Shortcut script item, use the values obtained above to fill in the script item properties. Specify the icon that will be used for the shortcut. In this case, the Advertised Programs icon that you see in the Control Panel is from %WIN%\MS\SMS\clicomp\SWDist32\00000409\CPLRes.dll, and it happens to be the first icon (offset 0) in this case.
Modification Type: | Minor | Last Reviewed: | 6/14/2005 |
---|
Keywords: | kbAdvertisement kbClient kbConfig kbinfo KB198778 |
---|
|