Get PC Model
Verfasst: 20 Feb 2013, 12:54
Hi
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:
If i run the command "wmic computersystem get model" on the virtual client i get this output:
This is the definition of the takeFirst... command defined in the winst-manual:
Best Regards,
Soren
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