【发布时间】:2018-02-19 03:17:40
【问题描述】:
我有 InstallShield 产品 - setup.exe。这个setup.exe 实际上是某种引导程序,它安装了一个名为product.msi 的文件。我有这个 product.msi 东西的UpgradeCode。所以我应该可以用MajorUpgrade 元素制作一个Wix 安装程序。但是,它不起作用 - 并非所有文件都已安装。这是link to the log。
以下是日志中的一些可疑行:
MSI (s) (2C:F4) [22:47:19:663]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 2911
DEBUG: Error 2911: Could not remove the folder C:\Config.Msi\.
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2911. The arguments are: C:\Config.Msi\, ,
MSI (s) (2C:F4) [22:47:19:667]: Note: 1: 2318 2:
以下是 wxs 文件的相关部分:
<Product Id="*" Codepage="1252" Language="1033" Manufacturer="Intel Corporation"
Name="TenLira" UpgradeCode="$(var.UpgradeCode)" Version="$(var.Version)">
<Package Comments="Contact: Refael Sheinker, refael.sheinker@intel.com." Description="TenLira"
InstallerVersion="500"
Compressed="yes"
InstallPrivileges="elevated"
InstallScope="perMachine"
Keywords="Installer,MSI,Database" Languages="1033" Manufacturer="Intel Corporation" Platform="x64" />
<Property Id="REINSTALLMODE" Value="amos" />
<Property Id="REBOOT" Value="ReallySuppress" />
<Media Id="1" Cabinet="my_application.cab" EmbedCab="yes" />
<MajorUpgrade AllowDowngrades="no"
AllowSameVersionUpgrades="yes"
Disallow="no"
IgnoreRemoveFailure="no"
MigrateFeatures="yes"
Schedule="afterInstallFinalize"
DowngradeErrorMessage="A later version of [ProductName] is already installed" />
请指教。谢谢。雷法尔。
【问题讨论】:
标签: wix windows-installer