Are you sure cmd.exe /K "C:\OpenOffice.org3\program\unopgk.com list --shared" ? It looks like you have quotes in the wrong place.
And do you really want the console window to stay open ( /k )? Should the user enter additional commands before the installation is complete? Instead, you may need /c . See Help cmd /? .
But if only one command is required, why not just run the program directly?
ExeCommand=""C:\OpenOffice.org3\program\unopgk.com" list --shared"
Finally, if the above information is the only necessary command and it is assumed that C:\OpenOffice.org3\program\unopgk.com is a console application, a useless console window will open. This can be avoided by using the custom WiX QtExecCmdLine action .
If you run a program to collect information, and this is a console application, you can do:
cmd /c "C:\OpenOffice.org3\program\unopgk.com" list --shared >path\out.txt
and use another custom action to read the file and make a decision about it or show it to the user in the Windows Installer dialog box. This would be better than leaving the user a console window with a blinking prompt that they should exit.
source share