卸载msmq会导致使用Wix创建的msi失败

时间:2011-08-05 15:09:33

标签: wix msmq uninstall

我的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'/>

我正在使用在队列中设置权限的同一用户下运行安装/卸载。

任何人都有任何想法,我做错了什么?

1 个答案:

答案 0 :(得分:0)

尝试此代码..唯一的变化是路径名。我认为你需要使用变量名而不是wixtest。

<Component ... >
    <util:User Id="GroupUsers" Domain="[LOGONDOMAIN]" Name="Users" CreateUser="no" FailIfExists="no" RemoveOnUninstall="no" />
    <msmq:MessageQueue PathName=".\Private$\wixtest" Label="My Test Queue" Id="MyTestQueue" >
        <msmq:MessageQueuePermission User="GroupUsers" Id="MyTestQueuePerm" PeekMessage="yes" ReceiveMessage="yes" WriteMessage="yes" />
    </msmq:MessageQueue > 
</Component>
相关问题