Windows – MSI Installer, 64 bit OS, write to \windows\system32\inetsrv folder


On Windows Server 2008 64-bit, I need an .msi installer file to write some files to \windows\system32\inetsrv folder. (The files are some XML Schema validation files, that C# XmlReaderSettings.Schema.Add() expects to be in that folder).

When the installer runs, the files end up in \windows\SysWOW64\inetsrv folder, not where they need to be.

I attempted to have the installer then write to \windows\Sysnative folder, and the installer created a folder with that exact name, which I didn't expect to be possible. See this page for a good discussion on suppressing SysWOW64 redirection.

How should I get the .msi to write my files to the \windows\system32\inetsrv folder on Windows 2008 64-bit?

Best Solution

Here are the system folder properties you can use. I know it is counter-intuitive, but have you tried System64Folder? Read the remarks.

If that doesn't work, try just tacking System32 on to the end of WindowsFolder.

Edit-1: Try setting the Win64 attribute on your Component element and see if the redirection behavior changes.

Related Question