Search code examples
wix

Wix Installer error: Filename: redirection.config Error: Cannot read configuration file due to insufficient permissions


We have a Wix ToolSet Installer (Ver. 3.10). We try to elevate admin privileges upon a bundle installation, which expands over several projects.

We see examples like this which shows how to add an InstallPrivileges="elevated" attribute under a <Package> node.

We did that already for all projects in the solution.

We keep getting:

Filename: redirection.config Error: Cannot read configuration file due to insufficient permissions

Another way we think may be the solution, is using a pre/post event.

We tried to use a pre/post build events. Something similar to this (we used only the pre build event example) with no avail:

"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\mt.exe" -manifest "$(ProjectDir)My.manifest" -outputresource:"$(ProjectDir)Setup.exe";


Solution

  • The solution was to edit a manifest file for the Wix Toolset bootstrapper.

    See this for a direction.