Customizing an Original Database

Make a copy of the sample Windows Installer installation package MNP2000.msi and rename this copy MNP2000t.msi. In the following steps you will customize this file using a database table editor such as Orca, which is provided with the SDK, or another database editor.

Include the new resource file for the phone list, Phone.txt, in the Notepad folder with the other source files.

FileDescriptionPath to sourcePath to target
phone.txtA resource for the Phone_List feature.C:\Sample\Notepad\phone.txt[ProgramFilesFolder]\Red_Park\phone.txt


Use your database editor to add a record to the File table of MNP2000t.msi for the new file.

File Table



As explained in the section: Using Transforms to Add Resources, the transform should add one or more new components to the installation database to contain the new phone list feature. Use your database editor to add the following record to the Component table of MNP2000t.msi.

The Phone component should be identified with a unique component ID GUID. If you are reproducing the sample, do not reuse the same component ID GUID as in the following table. Instead use a utility such as Guidgen.exe to generate a new GUID. Be sure that you use a GUID string consistent with the Windows Installer GUID data type.

Component Table



Use your database editor to modify the data in the Feature table of MNP2000t.msi. Enter 0 into the Level column of the Gate feature record. This disables the Gate feature and its child features and hides these features from the UI. Note that because the INSTALLLEVEL property is set to 3 in the Property table, the installer does not install features with a Level of 0. Add a record for the new Phone_List feature.

Feature Table

ArtsArtsArts events at Red Park.203NOTEPADDIR0
BaseballSportBaseballBaseball Games173SPORTDIR32
ConcertArtsConcertConcert events at Red Park213ARTSDIR2
DanceArtsDanceDance events at Red Park233ARTSDIR2
FootballSportFootballFootball Games193SPORTDIR2
GateGateRed Park's Admissions60NOTEPADDIR0
HelpNotepadHelpHelp file.53NOTEPADDIR1
JanuaryGateJanuaryJanuary Admissions103MONDIR2
NewYearsJanuaryNew Years DayNew Years Day Admissions113HOLDIR2
NotepadNotepadNotepad Editor13NOTEPADDIR0
ReadmeNotepadReadmeReadme File33NOTEPADDIR0
SportSport EventsSport Events at Red Park143NOTEPADDIR0
Phone_ListPhone ListPhone List243NOTEPADDIR0


Add the following record to the FeatureComponents table of MNP2000t.msi.

FeatureComponents Table



Add a new record in the Shortcut table to create a shortcut to the Phone_List feature.

Shortcut Table






Community Additions

© 2015 Microsoft