2011-08-05 68 views
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'/> 

我運行安裝/卸載在相同的用戶即有在隊列上設置的權限。

任何人有任何想法我做錯了什麼?

+0

錯誤是「錯誤0x80070032:不支持域SID」。 對我來說,你不能使用域帳戶來做任何你正在做的事情。 如果您使用本地帳戶創建/刪除隊列,是否會發生相同的錯誤? –

+0

您是否嘗試過手動創建msmq?如果是,你是否能夠創建它? –

+0

@Sunil手動我可以創建和刪除一個隊列。 – gouldos

回答

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> 
+0

在路徑名稱中設置的屬性的值與您聲明的值相似。日誌中的錯誤的第一行顯示它已經從屬性中正確讀取了路徑名。\ private $ \ myqueue – gouldos

相關問題