MSI安装程序,64位操作系统,写信给\ WINDOWS \ SYSTEM32 \ inetsrv文件夹中安装程序、写信给、操作系统、文件

2023-09-08 00:58:14 作者:期待&最後、

在Windows Server 2008 64位,我需要一个.msi安装程序文件写一些文件到\ WINDOWS \ SYSTEM32 \ inetsrv文件夹中。 (该文件是一些XML Schema验证文件,即C#XmlReaderSettings.Schema.Add()预计将在该文件夹)。

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).

当安装程序运行时,该文件最终在\ WINDOWS \ Syswow64资料\ inetsrv文件夹中,而不是在他们需要的。

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

我试图让安装程序然后写\ WINDOWS \ Sysnative文件夹,安装程序创建与确切的名字,这是我没想到的是可能的一个文件夹。请参阅此页的SUP pressing SysWOW64中重定向一个很好的讨论。

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.

我应该如何获得的.msi写我的文件复制到\ WINDOWS \ SYSTEM32 \ INETSRV在Windows文件夹中2008年64位?

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

推荐答案

下面是的系统文件夹您可以使用属性。我知道这是违反直觉的,但你尝试过 System64Folder 的?阅读上述表示的。

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

如果还是不行,请尝试只是套结System32下就到了的 WindowsFolder 。

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

编辑-1:尝试将 Win64的属性在你的组件元素,看看重定向行为更改。

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