【发布时间】:2011-10-20 23:20:45
【问题描述】:
我的 wix 项目中有一个组件,它在安装时安装消息队列。尝试卸载时失败,日志中出现错误:
MSI (s) (D8!C8) [15:55:10:618]: Creating MSIHANDLE (1062) of type 790531 for thread 4552
MessageQueuingExecuteUninstall: Queue: .\private$\myqueue
MSI (s) (D8!C8) [15:55:10:666]: Closing MSIHANDLE (1062) of type 790531 for thread 4552
MSI (s) (D8!C8) [15:55:10:688]: Creating MSIHANDLE (1063) of type 790531 for thread 4552
MessageQueuingExecuteUninstall: Error 0x80070032: Domain SIDs not supported
MSI (s) (D8!C8) [15:55:10:717]: Closing MSIHANDLE (1063) of type 790531 for thread 4552
MSI (s) (D8!C8) [15:55:10:734]: Creating MSIHANDLE (1064) of type 790531 for thread 4552
MessageQueuingExecuteUninstall: Error 0x80070032: Failed to get SID for account name
MSI (s) (D8!C8) [15:55:10:766]: Closing MSIHANDLE (1064) of type 790531 for thread 4552
MSI (s) (D8!C8) [15:55:10:784]: Creating MSIHANDLE (1065) of type 790531 for thread 4552
MessageQueuingExecuteUninstall: Error 0x80070032: Failed to remove message queue permission
MSI (s) (D8!C8) [15:55:10:816]: Closing MSIHANDLE (1065) of type 790531 for thread 4552
MSI (s) (D8!C8) [15:55:10:833]: Creating MSIHANDLE (1066) of type 790531 for thread 4552
MessageQueuingExecuteUninstall: Error 0x80070032: Failed to remove message queue permissions
MSI (s) (D8!C8) [15:55:10:867]: Closing MSIHANDLE (1066) of type 790531 for thread 4552
CustomAction MessageQueuingExecuteUninstall returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (D8:3C) [15:55:10:901]: Closing MSIHANDLE (1061) of type 790536 for thread 4964
我的 Wix 代码如下所示:
<util:User Id="myUser" Domain="[DOMAIN]" Name="[USERNAME]" CreateUser="no" RemoveOnUninstall="no" FailIfExists="no"/>
<msmq:MessageQueue Id='myQueue' Label='My Queue' Transactional='yes' PathName='[QUEUE_NAME]'>
<msmq:MessageQueuePermission Id='myQueuePermission' User='myUser' QueueGenericAll='yes' QueueGenericRead='yes' QueueGenericWrite='yes' QueueGenericExecute='yes'/>
我正在同一用户下运行安装/卸载,该用户在队列中设置了权限。
有人知道我做错了什么吗?
【问题讨论】:
-
错误是“错误 0x80070032:不支持域 SID”。对我来说,你不能使用域帐户来做你正在做的任何事情。如果您使用本地帐户创建/删除队列,是否会出现同样的错误?
-
您是否尝试过手动创建 msmq?如果是,你能创建它吗?
-
@Sunil 手动我可以创建和删除队列。
标签: wix msmq uninstallation