Summary
This article discusses how to install an empty folder via the Direct Editor.Synopsis
To install an empty folder, you can navigate to the File and Folders view in your project and add a new folder without any files. However, this article discusses how to install an empty folder via the Direct Editor.
Note: Using the Direct Editor performs the same task as using the File and Folders view; however, using the File and Folders view is an easier way to accomplish this task.
The article applies to:
-Basic MSI and InstallScript MSI Project Types
-Windows 32-bit, Windows 64-bit Operating Systems.
Discussion
To install an empty folder use the CreateFolder table in the Direct Editor.
- Navigate to the Direct Editor view.
- Select the Directory table within the Direct Editor.
- In the Directory column of the directory table, enter a text string, which will be used as an identifier of this directory. This entry is a primary key that will not be used outside the context of the installation, for example:
NewFolder
- In the Directory_Parent column, enter an identifier of a defined directory which will be used as the base path for this new folder. For this example, use INSTALLDIR.
- In the DefaultDir column of the directory table, enter the name of the subfolder that you wish to install, for example:
MyNewFolder
You have now added a new directory identifier that resolves at run time to
[INSTALLDIR]\MyNewFolder
- Navigate to the CreateFolder table in the Direct Editor.
- In the Directory_ column of the CreateFolder table, specify the identifier of the directory you wish to create, in this case: NewFolder.
- In the Component_ column of the Create folder table, select one of the components that currently exists in your project. If this component is installed then the folder is created, if the component is not installed then the folder is not created. Note: The folder is removed if the component is uninstalled.
Your installation is now setup to create an empty folder.
Additional Information
For more information on the tables discussed in this articles, see the Windows Installer Help Library topics CreateFolder Table and Directory Table.
Related Articles
How to activate the Wise script Package Editor. Where do I find the installation Setup and Activation Code? 11Number of Views Empty Folders Not Created Using Dynamic File Linking 13Number of Views Deleting a File or Folder During Install or Uninstall 5Number of Views Install SQL Server Express Silently via a Prerequisite. 3Number of Views Install to the 64-bit Program Files Folder 11Number 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. | |
Case id: 00001065
Activity: Status change: 2 hours ago