Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
WIX-重新安装MSI-未注册组件_Wix_Windows Installer - Fatal编程技术网

WIX-重新安装MSI-未注册组件

WIX-重新安装MSI-未注册组件,wix,windows-installer,Wix,Windows Installer,我已经用WIX创建了一个MSI。这对于安装/取消安装工作正常 当我尝试重新安装MSI时,它显示了很多错误。从日志中可以看出,无法注册组件 ComponentRegister(ComponentId={A35FD4BC-66CA-4BE0-BCBA-EDEA2DFC7FD3},KeyPath=C:\Program Files\Common Files\{Appname}\Config\0.reg,State=3,,Disk=1,SharedDllRefCount=0,BinaryType=0) M

我已经用WIX创建了一个MSI。这对于安装/取消安装工作正常

当我尝试重新安装MSI时,它显示了很多错误。从日志中可以看出,无法注册组件

ComponentRegister(ComponentId={A35FD4BC-66CA-4BE0-BCBA-EDEA2DFC7FD3},KeyPath=C:\Program Files\Common Files\{Appname}\Config\0.reg,State=3,,Disk=1,SharedDllRefCount=0,BinaryType=0)
MSI (s) (54:F0) [13:56:53:819]: Note: 1: 1402 2: UNKNOWN\Components\CB4DF53AAC660EB4CBABDEAED2CFF73D 3: 1450

MSI (s) (54:F0) [13:56:53:835]: Note: 1: 2205 2:  3: Error

MSI (s) (54:F0) [13:56:53:835]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 2908 

DEBUG: Error 2908:  Could not register component {A35FD4BC-66CA-4BE0-BCBA-EDEA2DFC7FD3}.

MSI (s) (54:F0) [13:57:16:602]: Note: 1: 2205 2:  3: Error 

MSI (s) (54:F0) [13:57:16:617]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709 

MSI (s) (54:F0) [13:57:16:633]: Product: -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2908. The arguments are: {A35FD4BC-66CA-4BE0-BCBA-EDEA2DFC7FD3}, , 

非常感谢您的帮助。

您是否尝试将其完全卸载?检查卸载时是否正在删除该组件。 标记为永久(componentattributes)的组件将永远不会被删除。
Neve be remove(未删除)表示他们在注册表中有“隐藏”注册。

组件注册由两个东西标识,即路径和注册表项。看起来当您尝试重新安装时,它与最初安装位置的密钥路径不匹配。 -您在尝试安装之前卸载了吗?
-当您第二次尝试安装时,是否传递了正确的安装位置,正如我从日志中看到的,密钥路径包含{Appname},似乎在重新安装期间未传递安装路径。

我已完全卸载,卸载后密钥正在删除,但HKLM/software/microsoft/windows/currentversion/installer中存在一个密钥,该密钥cb4df53aac660eb4cbabadead2cff73d存在,值为C:\Program Files\Common Files\{Appname}\Config\0.reg。如何从HKLM/software/microsoft/windows/currentversion/installerComponent中删除组件在卸载过程中不会被删除。只删除注册表项。以下是我正在使用的代码,用于在卸载过程中删除组件。如果您查看msi中的组件表,哪些属性具有此特定组件?