Events
Nov 19, 11 PM - Nov 21, 11 PM
Gain the competitive edge you need with powerful AI and Cloud solutions by attending Microsoft Ignite online.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The InstallFiles action copies files specified in the File table from the source directory to the destination directory.
The InstallFiles action must come after the InstallValidate action and before any file-dependent actions.
Field | Description of action data |
---|---|
[1] | Identifier of installed file. |
[6] | Size of installed file in bytes. |
[9] | Identifier of directory holding installed file. |
The InstallFiles action operates on files specified in the File table. Each file is installed based on the installation state of the file's associated component in the Component table. Only those files whose components are resolved to the msiInstallStatelocal state are eligible for copying.
The InstallFiles action implements the following columns of the File table.
The InstallFiles action implements the following columns of the Component table.
The specified file is copied only if one of the following is true:
The source directory for each file to be copied is determined by the sourceMode, which in turn depends on the value in the Cabinet column of the Media table. For a full discussion of the source mode, see the Media table.
If the source directory for a file to be copied resides on removable media such as a floppy disk or CD-ROM, the InstallFiles action verifies that the proper source media is inserted before attempting to copy the file. The InstallFiles searches for media of the same removable type with a volume label that matches the value given in the VolumeLabel column of the Media table. If a matching mounted volume is found, the file copying process proceeds. If no match is found, a dialog box requests that the user to insert the proper media. In this case, the dialog box uses the media name found in the DiskPrompt column of the Media table as part of the prompt.
Caution must be exercised because the InstallFiles action can delete an original file and not replace it. This occurs when the InstallFiles action experiences an error while replacing an older file and the user chooses to ignore the error. The default behavior of installer is to delete an old file before ensuring the new file is copied correctly.
For the file versioning rules used by the installer, see File Versioning Rules.
Events
Nov 19, 11 PM - Nov 21, 11 PM
Gain the competitive edge you need with powerful AI and Cloud solutions by attending Microsoft Ignite online.
Register nowTraining
Module
Control file and folder handling in Power Automate for desktop - Training
Learn about the files and folders actions in Microsoft Power Automate for desktop.