This tutorial extends the basic install to include a shortcut under
the Start / Programs menu to the file
'ZOOM.TXT
'.
Open the database with Orca and select the
File table. Locate the file you want to be the
target of the shortcut. For zoom, its 'ZOOM.TXT
', whichhas a file key of ZOOM.TXT_f1
in this example.
We want to create a shortcut in the Start
/Programs
menu for the All Users
profile. First,we want to ensure that the installation is installed for all users. To dothat, we add the ALLUSERS
property to the Propertytable with a value of 1
. Enter the following row into theProperty table with Orca:
Property | Value |
---|---|
ALLUSERS | 1 |
Next, we need to describe the directory where the shortcut will belocated. We can use the standard directory property
ProgramMenuFolder
, which will be set to the proper directory
on the target machine when ALLUSERS
is set to 1. However, we
must still describe this directory in our installation. To do that, weenter a row into the Directory table:
Directory | Directory_Parent | DefaultDir |
---|---|---|
ProgramMenuFolder | TARGETDIR | . |
Now we can create the shortcut. Display the Shortcut table and add a new row with the following columns, where NULL means that the column is empty.
Shortcut | sctZooom |
---|---|
Directory_ | ProgramMenuFolder |
Name | Zoom Documentation |
Component_ | Documentation |
Target | [#ZOOM.TXT_f1] |
Arguments | NULL |
Description | Zoom documentation |
HotKey | NULL |
Icon_ | NULL |
IconIndex | NULL |
ShowCmd | NULL |
WkDir | NULL |
Now validate the database to ensure that there are no errors from editing. Correct any mistakes made during editing and savethe corrected database.
The install now includes a working shortcut in the Start / Programs menu. However, if you test this install you'll see that the shortcut lacks an icon in the menu.
Select an icon for your shortcut and save it as an icon (.ICO)
file. We'll extract the icon from notepad and store it in the file
c:\tmp\zoomtxt.ico
. Display the Icon table and
add a new row. Enter icoZoom
for the
Name column and for the Data column,
enter the filename c:\tmp\zoomtxt.ico
to import the icon
data into the column.
Display the Shortcut table and highlight the
Icon_ column for your shortcut. Edit the value to be
icoZoom
, the key for the new record in the
Icon_ table.
Validate your install once more, correcting any errors resulting from editing.
Save the modified database.