Specifying Shortcuts

The Shortcut table and related tables of the installation database hold information needed to install shortcuts. See the Program Information Tables Group and Editing Installer Shortcuts.

In this section you add information that specifies advertised and non-advertised shortcuts for the Notepad sample.

Use your database editor to open MNP2000.msi and enter the following data into the Shortcut table.

Shortcut Table

ShortcutDirectory_NameComponent_TargetArgumentsDescriptionHotkeyIcon_IconIndexShowCmdWkDir
sBaseballMENUDIRBaseball.txtBaseballBaseballorca_icon.exe
sConcertMENUDIRConcert.txtConcert[#Concert.txt]
sDanceMENUDIRDance.txtDance[#Dance.txt]
sFootballMENUDIRFootball.txtFootball[#Football.txt]
sHelpMENUDIRHelp.txtHelp[#Help.txt]
sJanuaryMENUDIRJanuary.txtJanuary[#January.txt]
sNewYearsMENUDIRNewYears.txtNewYears[#NewYears.txt]
sNotepadMENUDIRRedpark.exeNotepad[#Redpark.exe]
sReadmeMENUDIRReadme.txtNotepad[#Readme.txt]

 

The sample installation needs to enable installation of an advertised shortcut for the Baseball feature. This requires specifying a key to the Icon table in the Icon_ column of the Shortcut table. For the purposes of this example you may copy the icon for the Orca database editor provided with the Windows Installer SDK. Export the Icon table from Orca.msi and then merge this table into the MNP2000.msi database using Orca or another merge tool. Orca also creates a directory named Icon in the directory containing MNP2000.msi, and adds the icon binary data file orca_icon.exe.ibd. See the Data column in Icon table. The completed Icon table should look as follows when viewed in Orca.

Icon Table

NameData
orca_icon.exe[Binary Data]

 

Continue

Related topics

Editing Installer Shortcuts

 

 

Show: