[wix-users] MSMQ issue during DB install

Ven H venh.123 at gmail.com
Wed Sep 26 01:53:09 PDT 2018


My MSI has 2 features, one for DB and one for App. In my App feature, I
have code like below.

 <Fragment Id="fragMSMQ">
    <Property Id="MY_QUEUE" Value="My_Queue_Value" />
    <Component Id="cmp_msmqUser" Guid="33A14D7C-19BB-4FC2-9C79-3059B40D7820"
Directory="INSTALLDIR" KeyPath="yes">
      <util:User Id="msmqUser" CreateUser="no" Name="Everyone" />
    </Component>
    <Component Id="cmp_msmqConfig" Guid="4EC665A7-DA55-4E37-B238-1129C5F11931"
Directory="INSTALLDIR" KeyPath="yes">
      <Condition><![CDATA[(INSTALL_APP = "1")]]></Condition>
      <msmq:MessageQueue Id="myPrivateQueue" Label=".\Private$\[ MY_QUEUE
]" PathName=".\private$\[ MY_QUEUE ]">
        <msmq:MessageQueuePermission Id="myQueuePerm" User="msmqUser"
DeleteQueue="yes" QueueGenericAll="yes" QueueGenericExecute="yes"
QueueGenericWrite="yes" QueueGenericRead="yes" ReceiveMessage="yes"
WriteMessage="yes" DeleteMessage="yes" PeekMessage="yes"
TakeQueueOwnership="yes" GetQueuePermissions="yes"
ChangeQueuePermissions="yes" DeleteJournalMessage="yes"
ReceiveJournalMessage="yes" GetQueueProperties="yes"
SetQueueProperties="yes" />
      </msmq:MessageQueue>
    </Component>
  </Fragment>

In the above code, I have a condition for INSTALL_APP = "1". Hence it
should execute only when App feature is selected from UI. But
unfortunately, on a server which has only SQL, when I try to install my MSI
and that too only DB feature, I see some error popup, which displays the
following error.

*The installer has encountered an unexpected error installing this package.
This may indicate a problem with this package. The error code is 28101*.

Even though this error occurs, it is completing the installation
successfully. But when I look at the log for this error, I see the
following details.

MSI (s) (84:B8) [23:27:28:882]: Doing action: MessageQueuingUninstall
Action 23:27:28: MessageQueuingUninstall.
Action start 23:27:28: MessageQueuingUninstall.
MSI (s) (84:8C) [23:27:29:087]: Invoking remote custom action. DLL:
C:\Windows\Installer\MSIEB33.tmp, Entrypoint: MessageQueuingUninstall
MSI (s) (84:94) [23:27:29:098]: Generating random cookie.
MSI (s) (84:94) [23:27:29:109]: Created Custom Action Server with PID 5416
(0x1528).
MSI (s) (84:D0) [23:27:29:226]: Running as a service.
MSI (s) (84:9C) [23:27:29:229]: Hello, I'm your 32bit Impersonated custom
action server.
MessageQueuingUninstall:  Entering MessageQueuingUninstall in
C:\Windows\Installer\MSIEB33.tmp, version 3.11.2318.0
*MessageQueuingUninstall:  Failed to load mqrt.dll.*
The installer has encountered an unexpected error installing this package.
This may indicate a problem with this package. The error code is 28101. The
arguments are: 1, ,
MSI (s) (84!78) [23:27:40:628]: Product: [ProductName] -- The installer has
encountered an unexpected error installing this package. This may indicate
a problem with this package. The error code is 28101. The arguments are: 1,
,

Action ended 23:27:40: MessageQueuingUninstall. Return value 1.

If we look at the highlighted line above, it seems it is trying to mqrt.dll
which seems to be an MSMQ related dll. But, when I am trying to install DB
feature (and not App and my MSMQ component has the condition to check for
App), I am not sure why it is trying to get executed and throwing this
error. Is this a bug in the extension? Is there a way to fix this? Please
help.


More information about the wix-users mailing list