Temporary Files Operations in the Files and Folders PageCopy link to this sectionLink to this section copied!

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.

NoteTemporary Files are copied between the CostFinalize and MigrateFeatureStatesstandard actions, at the beginning of the setup and removed during the InstallFinalize standard action.

NoteIf 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: Temporary File

Adding Temporary FilesCopy link to this sectionLink to this section copied!

Add Temporary FilesUse the [ Add Temporary Files ] 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.

TipTo add an entire folder with all its files as temporary, see Folder Operations in the Files and Folders Page - VSIX Project.

Setting temporary file propertiesCopy link to this sectionLink to this section copied!

Properties Use the [ Properties... ] 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 filesCopy link to this sectionLink to this section copied!

Use the “Rename” context menu item or press the F2 key.

Moving temporary files to a different folderCopy link to this sectionLink to this section copied!

Select the items to be moved then drag and drop them to the target folder.

Removing temporary filesCopy link to this sectionLink to this section copied!

Remove Use the [ Delete ] toolbar button, the “Delete” tree/list context menu item, or press the Delete key while a temporary file is selected.

Edit Temporary File DialogCopy link to this sectionLink to this section copied!

This dialog allows you to specify temporary file settings.

Edit Temporary File

NameCopy link to this sectionLink to this section copied!

This field contains the temporary file's name.

Source PathCopy link to this sectionLink to this section copied!

The path to the temporary file's source. Use the [ ... ] button to modify it.

PropertyCopy link to this sectionLink to this section copied!

Specify the name of the property associated with the temporary file. This property will contain the file's extraction path.

NoteIf you use temporary files in different folders and the names of the files are identical, you need to make sure that the properties associated with them are different.

ConditionCopy link to this sectionLink to this section copied!

This conditions the file's extraction and removal. Use the [ ... ] to edit it. The condition is evaluated when the file must be extracted or removed.

Do not remove the file when setup ends.Copy link to this sectionLink to this section copied!

Select this option if you don't want this temporary file deleted after the setup process ends.