Detect Service > Only one gets executed? - Advanced Installer Community
adamdc78
Posts: 76
Joined: Wed Mar 19, 2014 7:42 pm

Detect Service > Only one gets executed?

Code: Select all

  <COMPONENT cid="caphyon.advinst.msicomp.MsiInstExSeqComponent">
        ...
        <ROW Action="DetectNetTcpPortSharing" Condition="( ( NOT Installed ) OR ( Installed AND REMOVE <> "ALL" AND AI_INSTALL_MODE <> "Remove" ) )" Sequence="1602"/>        
        ...
        <ROW Action="DetectTomcat" Sequence="6584"/>
        ...
  </COMPONENT>
 
  <COMPONENT cid="caphyon.advinst.msicomp.MsiCustActComponent">
         ...
          <ROW Action="DetectNetTcpPortSharing" Type="1" Source="aicustact.dll" Target="DetectService" Options="3" AdditionalSeq="AI_DATA_SETTER_8"/>
         ...
          <ROW Action="DetectTomcat" Type="1" Source="aicustact.dll" Target="DetectService" Options="3" AdditionalSeq="AI_DATA_SETTER_14"/>
         ...
  </COMPONENT>
I get a log entry for DetectNetTcpPortSharing:
MSI (s) (98:CC) [13:21:47:472]: Skipping action: DetectService (condition is false)
But nothing for DetectTomcat; I do get a failure on the custom action which has AI_SERVICE_STATE in its condition (in this case, it's uninitialized as the first detect service is skipped for this particular state instead of 'Not Found'):
MSI (s) (98:CC) [13:21:52:002]: Executing op: ActionStart(Name=StopTomcat,,)
MSI (s) (98:CC) [13:21:52:002]: Executing op: CustomActionSchedule(Action=StopTomcat,ActionType=3073,Source=BinaryData,Target=CreateExeProcess,CustomActionData=C:\Windows\SysWOW64\>net stop X1FarmManagerTomcat)
MSI (s) (98:20) [13:21:52:004]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIC662.tmp, Entrypoint: CreateExeProcess
The service name is invalid.

More help is available by typing NET HELPMSG 2185.
Searching my logs for DetectService shows only the quoted line above, DetectTcpPortSharing doesn't show up at all and neither does DetectTomcat.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Detect Service > Only one gets executed?

Hello,

Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
adamdc78
Posts: 76
Joined: Wed Mar 19, 2014 7:42 pm

Re: Detect Service > Only one gets executed?

I'll try to recreate the conditions, but I've used other features (such as limiting the dependent action to first time installations) to get around the detection issue.

Return to “Common Problems”