WIX 3.5 使用 IIS6 添加通配符,但对于 IIS7/7.5 有 2 个问题。
处理程序映射默认处于禁用状态
通配符映射不是使用 IISWixExtension 库添加的。
用户将不知道如何执行上述操作。是的,非常不懂技术的人。
干杯
通过使用 UI 可以识别的适当标签更新 web.config 文件解决了这个问题。简单!!
<InstallExecuteSequence>
<Custom Action="CreateFastCGI" Before="InstallFinalize">
<![CDATA[NOT Installed AND VersionNT64 >= 600]]>
</Custom>
<Custom Action="AddHandlerMappingsIIS2" Before="InstallFinalize">
<![CDATA[NOT Installed AND VersionNT64 >= 600]]>
</Custom>
</InstallExecuteSequence>
<CustomAction Id="CreateFastCGI" Execute="deferred" Impersonate="no" Return="check" Directory="TARGETDIR"
ExeCommand="[SystemFolder]inetsrv\appcmd set config /section:system.webServer/fastCGI /+[\[]fullPath='[ApplicationPhpDirectory]php-cgi.exe'[\]]" />
<CustomAction Id="AddHandlerMappingsIIS2" Execute="deferred" Impersonate="no" Return="check" Directory="TARGETDIR"
ExeCommand="[SystemFolder]inetsrv\appcmd set config /section:system.webServer/handlers /+[\[]name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='[ApplicationPhpDirectory]php-cgi.exe',resourceType='Unspecified'[\]]" />