Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 179862

-nonInteractive argument problem in 2.3 client

$
0
0

Apparently the new View Client has been rewritten and the functionality of the -nonInteractive argument has changed, which is causing me some problems.

 

I have written a shell replacement program in C# (.NET v4). It is meant to run the View Client, wait for it to exit, and then run it again, indefinitely. Relevant code is below:

 

public void runClient()

        {

            ...

            Process viewClient = null;

            string viewClientPath = "C:\\Program Files (x86)\\VMware\\VMware Horizon View Client\\vmware-view.exe"; //updated for view client 2.3

 

 

            ProcessStartInfo viewInfo = new ProcessStartInfo();

            viewInfo.FileName = viewClientPath;

            viewInfo.Arguments = args;

            ...

 

 

 

            while (true)

            {

                try

                {

                    ...

                    viewClient = Process.Start(viewInfo);

                   viewClient.WaitForExit();

                    returnCode = viewClient.ExitCode;

                }

                catch (Exception ex)

                {

                    MessageBox.Show("client " + ex.Message, "Error", MessageBoxButtons.OK);

                    returnCode = 1;

                }

                ...

            }

        }

 

My problem with the 2.3 client is that WaitForExit no longer works when the -nonInteractive argument is specified. It just keeps starting the process over and over again, as fast as it can. If I remove the -nonInteractive argument, it functions as expected. I did not have this problem in 5.4.

 

Can anyone tell me more about how the View Client operates when the -nonInteractive argument is used in 2.3, and/or help provide a workaround?


Viewing all articles
Browse latest Browse all 179862

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>