I am trying to make a package of VMware Tools.
I want the setup-script to check if the PC-model is set to "VMware Virtual Platform" to determine if the PC is virtual.
I am trying to do this by using the commands:
Code: Alles auswählen
DefStringList $list$
Set $list$ = getOutStreamFromSection("DosInAnIcon_getmodel")
<more code>
if (takeFirstStringContaining($list$,"VMware") = "VMware Virtual Platform")
do something...
<more code>
[DosInAnIcon_getmodel]
wmic computersystem get model
Code: Alles auswählen
Model
VMware Virtual Platform
Shouldent my code work? It doesnt..takeFirstStringContaining(<list>,<search string>)
returns the first string of the list which contains the <search string>.
Returns an empty string if no matching string was found.
Best Regards,
Soren