We recently released version 16.3.0 of BitRock InstallBuilder. This version is primarily focused on bug-fixes and enhancements to existing features. However, there is one new time-saving addition that we are excited to announce!
Users are now able to query WMI natively within InstallBuilder. Here’s an example of how that works:
///EXAMPLES
.List all Windows processes that have MyApp in the executable path using WMI
[source,xml]
———————————————————–
<actionGroup>
<actionList>
<queryWMI>
<class>Win32_Process</class>
<variable>result</variable>
<fields>ProcessId;ExecutablePath</fields>
<where>ExecutablePath LIKE ‘%MyApp%’</where>
</queryWMI>
<foreach>
<values>${result}</values>
<variables>result_pid result_path</variables>
<actionList>
<logMessage>
<text>Found process: ${result_path} as ${result_pid}</text>
</logMessage>
</actionList>
</foreach>
</actionList>
</actionGroup>
———————————————————–
This will allow multiple services with the same base name to be created in cases, for example, when multiple applications are based on the same framework that runs as a service. If you have any feedback or questions on this new feature, please feel free to let us know in our forums.
The new release also features the following improvements: