SMSINST: Adding Shortcuts to Start Menu When Using System PoliciesID: Q198778
|
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.
Document Type: IPF
item: Global
Version=6.0
Title English=Advertised Programs Link
Flags=00000100
Languages=0 0 65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
LanguagesList=English
Default Language=2
Japanese Font Name=MS Gothic
Japanese Font Size=10
Start Gradient=0 0 255
End Gradient=0 0 0<BR/>
Windows Flags=00010000000000000010110000011000
Message Font=MS Sans Serif
Font Size=8
Disk Filename=SETUP
Patch Flags=0000000000000001
Patch Threshold=85
Patch Memory=4000
FTP Cluster Size=20
end
item: Win32 System Directory
Variable=SYS
end
item: Get Registry Key Value
Variable=DESTPATH
Key=Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
Value Name=Common Start Menu
Flags=00000100
end
item: Set Variable
Variable=DESTPATH
Value=\Advertised Programs.lnk
Flags=00000001
end
item: Create Shortcut
Source English=%SYS%\SMSCPL32.CPL
Destination English=%DESTPATH%
Working Directory English=%SYS%
Icon Number English=0
Icon Pathname English=%WIN%\MS\SMS\clicomp\SWDist32\00000409\CPLRes.DLL
Description English=Advertised Programs
Key Type English=1536
Flags=00000001
end
Additional query words: prodsms smsinst
Keywords : kbClient kbConfig kbSMS200 kbSMS120 kbAdvertisement kbSMSInst
Version : WINDOWS:1.0,2.0
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: March 5, 1999