Specifying Directory Structure

Windows Installer

Specifying Directory Structure

The installer keeps information about the installation directory structure in the Directory Table. See the Core Tables Group. In this section you add directory structure information for the Notepad sample to the empty database you created in Importing a Blank Database. Use the database editor Orca that is provided with the SDK, or another editor, to open the Directory Table in MNP2000.msi. Use the editor to enter the following data into the blank Directory table.

Directory Table

Directory Directory_Parent DefaultDir
TARGETDIR SourceDir
ProgramFilesFolder TARGETDIR .
ARTSDIR NOTEPADDIR Arts:Events
HOLDIR MONDIR .:Holidays
MENUDIR NOTEPADDIR Menu
MONDIR NOTEPADDIR Gate
NOTEPADDIR ProgramFilesFolder Red_Park:Notepad
SPORTDIR NOTEPADDIR Sports:Events

 

Entering this data into the Directory table specifies the source and target directory structures. See the Directory Table and Using the Directory Table topics. Note that the TARGETDIR property must be the name of one root in the Directory table of every installation.

Continue

Send comments about this topic to Microsoft

Build date: 8/13/2009

© 2009 Microsoft Corporation. All rights reserved.