cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
anupam_pamboo
Level 2

Problem with wmic command in Installanywhere 2010 Enterprise

Hi

I am having a problem regarding the execution of the wmic command in IA.
I tried "Execute Command" and "Execute Script/Batch file" but the IA hangs whenever it tries to execute the wmic command.Also when i execute the below the commands in the windows command prompt it is always success full.

I tried the following combination's of the command.
a. wmic
b. wmic product get name,version

Any help is highly appreciated.

Regards
Anupam
Labels (1)
0 Kudos
(1) Reply
jerome_IA
Level 9

I tried it and it is working well for the "b." option.

I used execute script/Batch action with "Suspend installation until process completes".

wmic product get name,version

wmic command can take some time to be executed ... so you have to wait for.

to debug, you can add a display message panel next to the script execution and get the "$EXECUTE_STDOUT$" to display script result.

for sure running "wmic" command alone will hang forever as it opens a new command and never exits.

--Jerome
0 Kudos