安装程序在安装此软件包时遇到意外错误-.错误代码2896 [英] The installer has encountered an unexpected error installing this package - .Error code 2896

查看:76
本文介绍了安装程序在安装此软件包时遇到意外错误-.错误代码2896的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当前正在尝试在prod服务器上安装ravendb.我正在使用的许可证文件与另一台测试/产品服务器所使用的文件相同.

I am currently trying to install ravendb on a prod server. The licens file I am using, is the same being used for another test/prod server.

当我将许可证文件传递给安装程序时,安装过程似乎总是崩溃.

The installation seem to chrash all the time when i pass the license file to the installation.

我在日志文件中发现有趣的东西是这个.

Something i found interesting in the log file was this.

Action start 08:14:02: OpenLicenseFileChooser.
MSI (c) (AC:A8) [08:14:02:763]: Invoking remote custom action. DLL: C:\Users\prod\AppData\Local\Temp\MSI7901.tmp, Entrypoint: OpenLicenseFileChooser
MSI (c) (AC!30) [08:14:04:934]: PROPERTY CHANGE: Adding RAVEN_LICENSE_FILE_PATH property. Its value is 'C:\license.xml'.
Action ended 08:14:04: OpenLicenseFileChooser. Return value 1.
MSI (c) (AC:F0) [08:14:04:950]: Doing action: LicenseFileExists
Action 08:14:04: LicenseFileExists. 
Action start 08:14:04: LicenseFileExists.
MSI (c) (AC:20) [08:14:04:997]: Invoking remote custom action. DLL: C:\Users\prod\AppData\Local\Temp\MSI81BD.tmp, Entrypoint: LicenseFileExists
MSI (c) (AC!FC) [08:14:05:231]: PROPERTY CHANGE: Deleting RAVEN_LICENSE_VALID property. Its current value is 'False'.
MSI (c) (AC!FC) [08:14:05:231]: PROPERTY CHANGE: Adding RAVEN_INSTALLER_INFO property. Its value is 'Checking existing license file'.
Action ended 08:14:07: LicenseFileExists. Return value 3.
DEBUG: Error 2896:  Executing action LicenseFileExists failed.
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2896. The arguments are: LicenseFileExists, , 
Action ended 08:14:07: WelcomeDlg. Return value 3.
MSI (c) (AC:1C) [08:14:07:281]: Doing action: CustomFatalError
Action 08:14:07: CustomFatalError. 
Action start 08:14:07: CustomFatalError.

许可证文件的路径正确,为什么会失败?

The path to the license file is correct, so why does it fail?

可以使用许可证文件的测试/生产服务器的数量是否有限制?如果是,我如何检查可以使用该许可证文件的服务器的数量?

Is there some limitation on the number of test/prod server that can use the license file, and if so, how do i check the number of servers that may use this license file?

如果不是这种情况,我是否缺少任何依赖关系?-是否需要上网?-是否需要安装其他东西?

And if that is not the case, are there any dependencies i am missing? - Does it need acess to the internet? - does it need something else installed?

除此之外,我还注意到了这一行

besides this I also noticed this line

安装程序在安装此软件包时遇到意外错误.这可能表明此程序包有问题.错误代码为2896.自变量为:LicenseFileExists,,

The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2896. The arguments are: LicenseFileExists, ,

这表明什么?

推荐答案

许可 :我敢打赌,这很简单-像您建议的许可问题.我同意Vadim的观点,您应该将 license.xml 放置在其他位置-具有写访问权限.也许只是在某个位置创建一个名为RavenDBLicense的新文件夹,并至少确保该文件可用于 system administrators .例如 c:\ RavenDBLicense -仅用于测试.

Licensing: I bet this is something very simple - a licensing issue like you propose. I would agree with Vadim that you should put the license.xml somewhere else - with write access. Maybe just create a new folder called RavenDBLicense - somewhere - and make sure it is writeable for system and administrators - at the very least. For example c:\RavenDBLicense - just for testing.

license.xml 文件中是否有特定于计算机的特定于用户的?

更新:我看到您在他们的论坛上得到了答案,并指出了此解决方案:

UPDATE: I see you have gotten an answer on their forum, indicating this solution: https://ravendb.net/docs/article-page/3.5/csharp/server/configuration/license-registration.

关于如何运行安装程序-我以为您熟悉.

调试 :也许最好首先尝试的是最大化可用的日志记录信息-如果可能的话.我会尝试两种方法,以查看是否可以找到有关发生情况的更好线索.

Debugging: Maybe the best thing to try first is to maximize the available logging information - if possible. I would try both approaches to see if I could find any better clues as to what is going on.

事件查看器 :我想您可能想检查Windows事件查看器中是否记录了任何错误消息?按住 Windows键,点击 R ,键入 eventvwr.msc ,然后按Enter键.转到 Windows日志=>.应用程序.查找 MsiInstaller事件.我认为您不会找到任何东西,但是值得一看.还要查找与 ravendb 相关的其他事件.还要检查其他日志(安全性,系统,配置).

Event Viewer: I suppose you might want to check if there are any error messages logged in the Windows Event Viewer? Hold down Windows Key, tap R, type in eventvwr.msc and press enter. Go to Windows Logs => Applications. Look for MsiInstaller events. I don't think you will find anything, but it is worth a look. Also look for other events related to ravendb. Check the other logs too (Security, System, Configuration).

高级日志记录 :您还可以打开高级日志记录并捕获MSI安装的更多调试信息,如下所示:

Advanced Logging: You can also turn on advanced logging and capture more debugging information for the MSI installation like this:

msiexec.exe /i MySetup.msi /L*vx C:\Test.log

这应该比当前日志捕获更多的信息.您还可以在日志开关中添加,使其成为/L * vx!,这将连续写入日志,而不是成批写入,以确保不会丢失任何日志缓冲区.崩溃.这样会大大降低安装速度,但会捕获重要的调试信息,以防自定义操作崩溃.

This should capture a little bit more information than your current log. You can also add ! to the log switch, making it /L*vx!, this will write the log continuously instead of in batches ensuring that no log buffer is lost from crashes. This makes the install a lot slower, but could capture crucial debugging information in case the custom action in question is crashing.

一些链接:

这篇关于安装程序在安装此软件包时遇到意外错误-.错误代码2896的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆