gpt4 book ai didi

installation - Windows 安装程序包的问题

转载 作者:行者123 更新时间:2023-12-04 02:38:28 25 4
gpt4 key购买 nike

我有一个客户对我们的应用程序的 .msi 安装程序有问题。 WiX 用于创建此安装程序。该应用程序在其他几十台机器上安装得很好,但在他的机器上它显示消息:

This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer Package.



我的猜测是这两种可能性之一:
  • 客户端计算机上的 Windows Installer 版本已过时。
  • 他拥有的 .msi 可能已损坏。

  • 最有可能的可能性是什么,或者还有其他我不知道的可能性吗?

    我想我已经重新创建了用户的问题。如果,从命令 shell ,我运行 MyFile.msi ,然后它成功加载,然后我在日志文件中得到这个:
    === Verbose logging started: 2/12/2009  10:34:38  Build type: SHIP UNICODE 4.00.6001.00  Calling process: C:\Windows\System32\msiexec.exe ===
    MSI (c) (F4:04) [10:34:38:795]: Resetting cached policy values
    MSI (c) (F4:04) [10:34:38:795]: Machine policy value 'Debug' is 0
    MSI (c) (F4:04) [10:34:38:795]: ******* RunEngine:
    ******* Product: C:\Users\kelley\Downloads\PixelActiveCityScape_v1_6_Demo.msi
    ******* Action:
    ******* CommandLine: **********
    MSI (c) (F4:04) [10:34:38:802]: Machine policy value 'DisableUserInstalls' is 0
    MSI (c) (F4:04) [10:34:38:830]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer 3: 2
    MSI (c) (F4:04) [10:34:39:140]: SOFTWARE RESTRICTION POLICY: Verifying package --> 'C:\Users\kelley\Downloads\PixelActiveCityScape_v1_6_Demo.msi' against software restriction policy
    MSI (c) (F4:04) [10:34:39:141]: Note: 1: 2262 2: DigitalSignature 3: -2147287038
    MSI (c) (F4:04) [10:34:39:141]: SOFTWARE RESTRICTION POLICY: C:\Users\kelley\Downloads\PixelActiveCityScape_v1_6_Demo.msi is not digitally signed
    MSI (c) (F4:04) [10:34:39:142]: SOFTWARE RESTRICTION POLICY: C:\Users\kelley\Downloads\PixelActiveCityScape_v1_6_Demo.msi is permitted to run at the 'unrestricted' authorization level.
    MSI (c) (F4:04) [10:34:39:189]: Cloaking enabled.
    MSI (c) (F4:04) [10:34:39:190]: Attempting to enable all disabled privileges before calling Install on Server
    MSI (c) (F4:04) [10:34:39:197]: End dialog not enabled
    MSI (c) (F4:04) [10:34:39:197]: Original package ==> C:\Users\kelley\Downloads\PixelActiveCityScape_v1_6_Demo.msi
    MSI (c) (F4:04) [10:34:39:197]: Package we're running from ==> C:\Users\kelley\AppData\Local\Temp\40a3581.msi
    .
    .
    .

    但是,如果我运行 msiexec/i MyFile.msi/l*v MyLog.TXT ,我明白了:
     === Verbose logging started: 2/12/2009  10:32:19  Build type: SHIP UNICODE 4.00.6001.00  Calling process: C:\Windows\sy
    stem32\msiexec.exe ===
    MSI (c) (FC:F0) [10:32:19:597]: Resetting cached policy values
    MSI (c) (FC:F0) [10:32:19:597]: Machine policy value 'Debug' is 0
    MSI (c) (FC:F0) [10:32:19:597]: ******* RunEngine:
    ******* Product: .\PixelActiveCityScape_v1_6_Demo.msi
    ******* Action:
    ******* CommandLine: **********
    MSI (c) (FC:F0) [10:32:19:599]: Note: 1: 2203 2: .\PixelActiveCityScape_v1_6_Demo.msi 3: -2147287038
    MSI (c) (FC:F0) [10:32:19:600]: MainEngineThread is returning 2
    === Verbose logging stopped: 2/12/2009 10:32:19 ===

    这显示了这个对话框:

    This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package.



    所以这似乎是一个权限问题,但我不确定为什么以及如何解决它。我可能需要对 .msi 文件进行数字签名吗?

    最佳答案

    背景:

    当 MSI 安装程序文件未完全下载、或被我的防病毒程序损坏或被我的 FTP 客户端破坏时,我注意到完全相同的消息。

    错误消息实际上来自 msiexec.exe ,它是 Windows Installer 系统的可执行程序,它实际解释 MSI 安装程序文件并在目标客户端机器上安装软件。

    检查 MSI 文件的完整性:

    使用类似 md5.exe 的内容计算 MSI 安装程序文件的已知良好副本的 MD5sum .让客户对他的副本做同样的事情,然后比较哈希值。如果结果不同,则客户端的 MSI 安装程序文件副本肯定已损坏。

    例如 :

    最后:

    C:\Documents and Settings\yourbox\Desktop>md5.exe AcroRead.msi
    C587C739666E26B2A9B1F5BBAF358808 AcroRead.msi

    在客户端:

    C:\Documents and Settings\theclient\Desktop>md5.exe AcroRead.msi
    90AFFBD9A1954EC9FF029B7AD7183A16 AcroRead.msi

    关于installation - Windows 安装程序包的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/538229/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com