File Redirection Properties

File Redirection Properties

Configure the File Redirection fixup by setting the folder in which to detect changes done to specific file types.

Path

Folder

Select the folder from which to redirect, meaning any attempts to access or modify it by the package installation is redirected.

File name pattern

Set the file name type for which to check; the value gets interpreted as a regular expression. For example, the fixup redirects all files with the .log extension from the specified folder path to the Virtual File System.

Destination

Specifies the base directory where redirected files will be stored. If no destination is specified, the File Redirection Fixup uses the default WritablePackageRoot directory within the current user's local application data.

The default destination follows this structure:

  %LOCALAPPDATA%\Packages\<PackageFamilyName>\LocalCache\Local\Microsoft\WritablePackageRoot

Here, PackageFamilyName identifies the installed MSIX package and consists of the package identity name followed by a publisher-derived identifier.

For example:

  %LOCALAPPDATA%\Packages\CaphyonSample.MSIXWPFPSFDemo_saqx4p3bg3n2m\LocalCache\Local\Microsoft\WritablePackageRoot

Read Only

Enable this option to create a copy on access and redirection operation. To prevent changes, the copy should be read-only.

Exclusion

When this option is enabled, redirection operations are not allowed on this pattern match.

NoteTo learn more about the Package Support Framework see Microsoft's documentation or GitHub repository.

Caution!This feature is not compatible with MSIX packages build for neutral architecture.