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

Shortcut Directory_ Name Component_ Target Arguments Description Hotkey Icon_ IconIndex ShowCmd WkDir
sBaseball MENUDIR Baseball.txt Baseball Baseball orca_icon.exe
sConcert MENUDIR Concert.txt Concert [#Concert.txt]
sDance MENUDIR Dance.txt Dance [#Dance.txt]
sFootball MENUDIR Football.txt Football [#Football.txt]
sHelp MENUDIR Help.txt Help [#Help.txt]
sJanuary MENUDIR January.txt January [#January.txt]
sNewYears MENUDIR NewYears.txt NewYears [#NewYears.txt]
sNotepad MENUDIR Redpark.exe Notepad [#Redpark.exe]
sReadme MENUDIR Readme.txt Notepad [#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

Name Data
orca_icon.exe [Binary Data]

 

Continue

Editing Installer Shortcuts