无法在Windows 8中设置appPool

时间:2014-07-15 13:19:43

标签: c# windows-8 wix

我有一个我们写的MSI文件。 安装是WIX安装,它调用customAction

 <CustomAction Id="Allow32" FileKey="myProgram.exe" ExeCommand="Allow32" Return="ignore" Execute="deferred" />

customAction执行以下操作(C#):

string res = Utils.RunProcess(Path.Combine(Environment.GetEnvironmentVariable("systemroot"), "system32\\inetsrv\\appcmd.exe"), "set apppool \"Classic .NET AppPool\"  -enable32BitAppOnWin64:true");

当我尝试在Windows 8 / Server 2012 R2上安装MSI时 - 它失败了。 在windowx XP和Windows 7上,它可以正常工作。

此外,当我使用“管理员”用户时,它工作正常,但我不能依赖它,因为我需要在客户计算机上安装MSI,而我无法访问其管理员用户。

0 个答案:

没有答案