Temporary Files Operations in the Files and Folders Page
Unlike Advanced Installer's regular files or resources, "Temporary Files" are copied on the target machine at the beginning of the installation and are deleted at the end of it, ensuring you have access to them throughout the entire install process.
Temporary Files are copied between the CostFinalize and
MigrateFeatureStatesstandard actions, at the beginning of the setup and
removed during the InstallFinalize standard action.
If your project contains custom actions that depend on the temporary file, their actions
need to be placed after AI_ExtractTempFiles action. This specific Advanced
Installer custom action is not shown in the custom action view. You can see the sequence for
this custom action by going to Table Editor ->
Install Execute Sequence table -> AI_ExtractTempFiles
row.
In order to easily recognize them they have the following icon:
Adding Temporary Files
Use the toolbar button,
the “Add Temporary Files...” tree/list context menu item. You can add more than
one file at a time. If a file with the same name already exists in the target directory, the
file to be added is skipped.
To add an entire folder with all its files as temporary, see Folder Operations in the Files and Folders Page - VSIX Project.
Setting temporary file properties
Use the toolbar button, the
“Properties...” list context menu item, press the Enter
key while a temporary file is selected in the “Files” panel or double click
on a file. The Edit Temporary File Dialog will be displayed
allowing you to edit the temporary file properties.
Renaming temporary files
Use the “Rename” context menu item or press the F2 key.
Moving temporary files to a different folder
Select the items to be moved then drag and drop them to the target folder.
Removing temporary files
Use the toolbar button, the “Delete”
tree/list context menu item, or press the Delete key while a temporary
file is selected.
Topics
- Edit Temporary File Dialog
Specify settings for temporary files.