2
我的wix項目中有一個組件,它在安裝時安裝了一個消息隊列。當試圖卸載失敗,並在日誌中的錯誤:卸載msmq會導致使用Wix創建的msi失敗
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
我的維克斯代碼如下所示:
<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手動我可以創建和刪除一個隊列。 – gouldos