Title: Message Queue Help Needed
The deferred execution stage of Windows Installer - when the installation script actually runs - runs using the local computer's LocalSystem security context. This only has the network credentials of the machine account (in an Active Directory domain) or NULL permissions (if not on a domain). You most likely don't have permission to create a remote queue using these credentials.
 
It's possible to make a custom action run as the user who ran the installer (Impersonate='yes', and I think this is the default - it would be helpful if the manual at wix.sourceforge.net listed what the defaults are), and this may be the case with the custom action which processes the <MessageQueue> elements, but again this user would need to have whatever permissions are necessary to create a remote message queue.
 
I think it would be better to make the message queue a Feature and the ability to select only that to install. Then the user would have to run the MSI on the machine that is to have the queue created.
 
--
Mike Dimmick


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Emma Hanna
Sent: 21 September 2006 05:02
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Message Queue Help Needed

Hi Everyone

I am using the following code to create a Message Queue. It works fine when installed to the local machine (i.e. when AUDITQUEUESERVER is set to local machine name or .) but when I try to install to another machine name it fails. Can anyone give me some guidance as to how to install to a different machine?


<Component Id="MSMQPrivateQueue_Component" Guid="F744F282-2986-4acf-B2EA-A91E8AA2A1CF" >

    <pca:MessageQueue Id="AuditReceiveQueue" Label="Audit Receive Queue" Transactional="yes" PathName="[AUDITQUEUESERVER]\Private$\[AUDITQUEUENAME]">

    <pca:MessageQueuePermission Id="AuditReceiveQueuePermissions" ReceiveMessage="yes" PeekMessage="yes" QueueGenericWrite="yes" User="MSMQDistributorServiceAccount"/>

     </pca:MessageQueue>

</Component>


Many Thanks

Emma.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to