Summary
This article discusses how to create a new directory structure for use in component destinations, custom actions, registry settings, and so on.
Synopsis
This article discusses how to create a new directory structure for use in component destinations, custom actions, registry settings, and so on. The article applies to Basic MSI Project Type.
Discussion
You can use the Directory table to create folders on the target system. You can access the Directory table in the "Direct Editor" view in the InstallShield IDE.
The Directory table consists of the following columns:
| Column | Description |
|---|---|
| Directory | The Directory column contains a unique identifier for the row. This is the value you would use in component destinations and custom actions, for example. |
| Directory_Parent | The Directory_Parent column contains the name of the directory's parent in the directory hierarchy. |
| DefaultDir | This is the directory's name under the parent directory. It is the name of the target and source directories. To specify different target and source directories, use a colon to separate them: [targetname]:[sourcename]. The names can be entered in shortname|longname format. |
Here's an example directory table along with the resulting source and target directory structures:
| Directory | Directory_Parent | DefaultDir |
|---|---|---|
| WindowsVolume | TARGETDIR | .:WinRoot |
| OffRoot | WindowsVolume | RootSub |
| ProgramFilesFolder | TARGETDIR | .:Progra~1|program files |
| MyCompanyFolder | ProgramFilesFolder | MyComp~1|MyCompanyName |
| MyApplicationFolder | MyCompanyFolder | MyAppl~1|MyApplicationName |
| CalcFolder | MyApplicationFolder | Calc:Differ~1|DifferentSource |
| NotepadFolder | MyApplicationFolder | Notepad |
Source Structure
Disk1\WinRootDisk1\RootSubDisk1\program filesDisk1\program files\MyCompanyNameDisk1\program files\MyCompanyName\MyApplicationNameDisk1\program files\MyCompanyName\MyApplicationName\DifferentSourceDisk1\program files\MyCompanyName\MyApplicationName\Notepad
Target Structure (C is the Windows volume.)
C:\RootSubC:\Program FilesC:\Program Files\MyCompanyNameC:\ProgramFiles\MyCompanyName\MyApplicationNameC:\ProgramFiles\MyCompanyName\MyApplicationName\CalcC:\ProgramFiles\MyCompanyName\MyApplicationName\Notepad
Using the Directory Table Entries
If you wanted your some files to go to C:\[ProgramFiles]\MyCompanyName\MyApplicationName\Notepad, then you would set the components' destinations to <NOTEPADFOLDER>.
If you wanted to use the same directory in a registry entry, you would enter it as [NotepadFolder].
Additional Information
For more information on the Directory table, see the MSI Help Library topic "Directory Table."
Related Articles
Set a Directory Table Entry at Run Time 4Number of Views Use PowerShell to retrieve Active Directory account properties 20Number of Views "Error: The file exists." during inventory import if temp directory contains 65,535+ files using temporary file name pattern 8Number of Views Imported Active Directory users do not appear in All Users due to special character in User Blocklist setting 15Number of Views How to troubleshoot Active Directory Connection Problems using PowerShell for Spider 23Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago