我无法使用 installshield 为自托管控制台应用程序创建 msi 设置
I am not able to create msi setup using installshield for self hosted console application
我已经使用控制台应用程序创建了自承载 WCF 服务。我已经使用 Installshield 创建了 msi,但是当我安装设置时它会卡住并且在一段时间后无法设置。
我已经添加了登录代码,发现在托管 WCF 服务的线上它会卡住并抛出错误。
知道如何解决这个问题吗?
服务安装: 可以手动安装和运行吗?您必须使用 管理员权限 安装,如果您为 运行 服务指定用户帐户,则它必须具有 "log on as a service" privilege (check by running secpol.msc
or see here),您安装的文件实际上必须是适当的服务 - 显然 - 我有时会混淆我的测试可执行文件和服务二进制文件。曾经忘记过吗?发生在我身上 :-).
日志记录:首先给自己一个合适的日志文件:
msiexec.exe /i "Setup.msi" /L*V "C:\Setup.log"
或静音模式:
msiexec.exe /i "Setup.msi" /QN /L*V "C:\Setup.log"
有关日志记录的更多信息:
- Installsite.org on logging
- Event logging, etc...
Credentials:只是补充说有几个 built-in 帐户可以使用 运行 服务:
- The difference between the 'Local System' account and the 'Network Service' account?
- 还有"managed service accounts". Step-by-Step的新概念。
- 最后 "group managed service account"。
我已经添加了登录代码,发现在托管 WCF 服务的线上它会卡住并抛出错误。
知道如何解决这个问题吗?
服务安装: 可以手动安装和运行吗?您必须使用 管理员权限 安装,如果您为 运行 服务指定用户帐户,则它必须具有 "log on as a service" privilege (check by running secpol.msc
or see here),您安装的文件实际上必须是适当的服务 - 显然 - 我有时会混淆我的测试可执行文件和服务二进制文件。曾经忘记过吗?发生在我身上 :-).
日志记录:首先给自己一个合适的日志文件:
msiexec.exe /i "Setup.msi" /L*V "C:\Setup.log"
或静音模式:
msiexec.exe /i "Setup.msi" /QN /L*V "C:\Setup.log"
有关日志记录的更多信息:
- Installsite.org on logging
- Event logging, etc...
Credentials:只是补充说有几个 built-in 帐户可以使用 运行 服务:
- The difference between the 'Local System' account and the 'Network Service' account?
- 还有"managed service accounts". Step-by-Step的新概念。
- 最后 "group managed service account"。