WiX:如何检测 URL Rewrite 安装在 IIS 上

WiX: How to detect URL Rewrite is installed on IIS

我正在使用 WiX 3.10 创建用于安装 IIS(7.5 或更高版本)网站的 MSI。该网站需要 IIS 中的 URL 重写扩展。

有没有办法检测在 WiX 项目的启动条件下 IIS 中是否安装了 URL Rewrite 扩展?

您可以对此项执行注册表搜索:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IIS Extensions\URL Rewrite

或对该文件进行文件搜索:

%SystemRoot%\system32\inetsrv\rewrite.dll