Adding Virtual Files
Previous Top Next


Adding with Drag and drop

You can add new files to your Thinstall project using drag and drop from another application such as Window Explorer.

clip0103



A dialog box will automatically popup asking what virtual path you wish to give the files. The virtual path is the path where the file
appears to exist when the application is running. In most cases you will want to use " %InstallPath%\filename" which will cause
the file to appear to exist in the same directory as the running EXE.


clip0009


EXE location (hypothetical)
Virtual Path
Where file appears to exist at runtime
c:\program files\myprogram
%Install Path%\abuse_w32\abuse\gamma.lsp
c:\program files\myprogram\abuse_w32\abuse\gamma.lsp
c:\program files\myprogram
%Install Path%\abuse_w32\gamma.lsp
c:\program files\myprogram\abuse\gamma.lsp
c:\program files\myprogram
%Install Path%\gamma.lsp
c:\program files\myprogram\gamma.lsp
c:\program files\myprogram
x:\abuse_w32\abuse\gamma.lsp
x:\abuse_w32\abuse\gamma.lsp


· When you drag and drop a directory, all files and subdirectories within that directory will automatically be added to your project.


Adding a single File

Using the File->Add Single File option you can select a file to add to the project using Windows File Open Dialog. The file selected will be added given a virtual path of %InstallPath%

clip0010


Adding a large numbers of files

If you have a large number of files to add, you can use " Files -> Add files matching wildcard"

clip0011

This dialog allows you to match only those files that match a certain filename pattern. You can have more than one pattern to match by inserting a ";" between the patterns. Some example patterns you can use:

· *.bmp;*.jpg;*.gif Add all the graphics files in your directory or tree
· *.html Add only HTML files

If you chose Recurse Subdirectories, all subdirectories found within the starting path will be followed. For files added from subdirectories, the subdirectory name will be appended with the base virtual path.

Multiple files containing exactly the same data, but with different filenames or paths will automatically be detected at build time so only one copy of the data is packaged into the EXE. Click here for more details.