卸载后留下的消息队列
我使用 MsmqExtension 创建私有消息队列。但在卸载过程中,队列将被保留,没有任何权限,并且无法手动删除。
我缺少什么?
这是我写的一个小测试设置:
<util:Group Id="Admins" Name="Administrators"/>
<util:Group Id="Everyone" Name="Everyone"/>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLLOCATION" Name="WixProject1">
<Component Id="cmpCCFCC98FF29F9839A11C5E93C1B73C3E" Guid="510DB8D1-A435-42A8-A8E8-5A4695CFBD7C" KeyPath="yes">
<msmq:MessageQueue Id='CreateTQ'
Label ='Test Queue'
PathName='.\Private$\Test_Queue'
Transactional='yes'>
<msmq:MessageQueuePermission Id='CreateTQPermissions_Admins'
QueueGenericAll='yes'
Group='Admins' />
<msmq:MessageQueuePermission Id='CreateTQPermissions_Everyone'
GetQueueProperties='yes'
GetQueuePermissions='yes'
WriteMessage='yes'
Group='Everyone' />
</msmq:MessageQueue>
</Component>
</Directory>
</Directory>
</Directory>
<Feature Id="ProductFeature" Title="WixProject1" Level="1">
<ComponentRef Id="cmpCCFCC98FF29F9839A11C5E93C1B73C3E"/>
</Feature>
谢谢你!
I use MsmqExtension to create a private message queue. But during uninstall the queue is left behind without any rights and can't be deleted manually.
What am I missing?
This is a little test setup I wrote:
<util:Group Id="Admins" Name="Administrators"/>
<util:Group Id="Everyone" Name="Everyone"/>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLLOCATION" Name="WixProject1">
<Component Id="cmpCCFCC98FF29F9839A11C5E93C1B73C3E" Guid="510DB8D1-A435-42A8-A8E8-5A4695CFBD7C" KeyPath="yes">
<msmq:MessageQueue Id='CreateTQ'
Label ='Test Queue'
PathName='.\Private$\Test_Queue'
Transactional='yes'>
<msmq:MessageQueuePermission Id='CreateTQPermissions_Admins'
QueueGenericAll='yes'
Group='Admins' />
<msmq:MessageQueuePermission Id='CreateTQPermissions_Everyone'
GetQueueProperties='yes'
GetQueuePermissions='yes'
WriteMessage='yes'
Group='Everyone' />
</msmq:MessageQueue>
</Component>
</Directory>
</Directory>
</Directory>
<Feature Id="ProductFeature" Title="WixProject1" Level="1">
<ComponentRef Id="cmpCCFCC98FF29F9839A11C5E93C1B73C3E"/>
</Feature>
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在卸载时调用 CustomAction。在自定义操作中,您可以编写自己的代码来删除消息队列。
此操作仅在REMOVE上调用。
You can call a CustomAction on uninstall. And in the customaction you can write your own code to delete messagequeue
This action will be called only on REMOVE.