我使用 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}, ,
任何帮助表示赞赏。