【问题标题】:URL Rewrite not visible in IIS10URL 重写在 IIS10 中不可见
【发布时间】:2020-12-09 17:27:44
【问题描述】:

我使用 rewrite_amd64_en-US.msi 安装了 URL Rewrite 2.1。安装很顺利,但我在 IIS 中看不到 URL 重写图标。我的系统是 Windows Server 2016 中的 IIS 10。

我在管理员命令提示符下使用命令msiexec /a rewrite_amd64_en-US.msi /qf /L*V re.log 进行安装

控制面板中也没有 URL Rewrite 条目,C:\Windows\System32\inetsrv 中也没有 rewrite.dll 文件。

安装日志的最后几行是

MSI (c) (C8:90) [15:38:38:027]: Note: 1: 1707 
MSI (c) (C8:90) [15:38:38:027]: Product: IIS URL Rewrite Module 2 -- Installation completed successfully.

MSI (c) (C8:90) [15:38:38:027]: Windows Installer installed the product. Product Name: IIS URL Rewrite Module 2. Product Version: 7.2.1993. Product Language: 1033. Manufacturer: Microsoft Corporation. Installation success or error status: 0.

MSI (c) (C8:90) [15:38:38:027]: Grabbed execution mutex.
MSI (c) (C8:90) [15:38:38:027]: Cleaning up uninstalled install packages, if any exist
MSI (c) (C8:90) [15:38:38:027]: MainEngineThread is returning 0
=== Verbose logging stopped: 8/20/2020  15:38:38 ===

还有一点需要注意的是我的服务器没有Web Platform Installer。当我尝试安装它时,我遇到了类似的问题 - 安装时没有错误,但图标在 IIS 中不可见。

请指导我解决此问题。谢谢。

【问题讨论】:

    标签: iis url-rewriting


    【解决方案1】:

    确保您正在使用 Elevated Privileges 调用 msiexec.exe 命令。

    为此,您需要:

    1. 点击开始或按Windows键;

    2. 在搜索框中,输入CMD;

    3. 右击CMD并选择以管理员身份运行。更多详情,请查看https://www.computerhope.com/jargon/e/elevated.htm 或https://winaero.com/how-to-open-elevated-command-prompt-in-windows-10/;

    4. 在新的命令控制台上,运行 MSI 包安装命令

      msiexec.exe /i rewrite_amd64_en-US.msi /l*v C:\msilog.txt /qf

      或

      msiexec.exe /i "rewrite_amd64_en-US.msi" /L*V "C:\package.log"

    【讨论】:

    • 谢谢,这行得通。由于 msi 没有以管理员身份运行选项,我以管理员身份打开命令提示符并使用 /a 开关执行 msiexec,该开关用于管理员。但它没有用。根据您的回答,我从 /a 更改为 /i 并且运行顺利。不知道为什么我在 /a 的日志中收到了成功安装的消息。
    猜你喜欢
    • 1970-01-01
    • 2014-09-03
    • 1970-01-01
    • 2015-10-03
    • 2014-06-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多