QueryWmi seems to crash the installer

Comments

3 comments

  • Avatar
    michiel

    Hi Ingmar,

    Could you try the following:

        <where>ExecutablePath LIKE '%Api-ms-win-crt-runtime%'</where>

     

    And check if that solves the issue?

    Regards,

    Michiel

     

    0
    Comment actions Permalink
  • Avatar
    Ingmar Koecher

    I'm sorry, but I needed to find a solution quickly and I have since switched to using wmic.exe and calling that from the installer. I'm think that it should be easy for you to reproduce the problem on your end if you want to take a look, there definitely seems to be an issue.

    0
    Comment actions Permalink
  • Avatar
    michiel

    Hi Ingmar,

    Please accept my apologies for my late reply. I've not been able to reproduce the issue. I've used the following example:

     <actionGroup>
     <actionList>
      <queryWMI>
       <class>Win32_Process</class>
       <variable>result</variable>
       <fields>ProcessId;ExecutablePath</fields>
       <where>ExecutablePath LIKE '%explorer%'</where>
      </queryWMI>
      <foreach>
       <values>${result}</values>
        <variables>result_pid result_path</variables>
        <actionList>
         <showInfo>
          <text>Found process: ${result_path} as ${result_pid}</text>
         </showInfo>
        </actionList>
       </foreach>
      </actionList>
    </actionGroup>

    Which should show some information with an Explorer window open. Could you check if it works for you?

    Regards,

    Michiel

    0
    Comment actions Permalink

Please sign in to leave a comment.