Hello.
I try to setup new RemoteApp and Desktop Connection silently by command from c#. I use next code for setup connection:
var processStartInfo = new ProcessStartInfo { FileName = "cmd.exe", Verb = "runas", Arguments = "/C rundll32.exe tsworkspace,WorkspaceSilentSetup RemoteAppConfig.wcx", UseShellExecute = false, WindowStyle = ProcessWindowStyle.Hidden }; Process.Start(processStartInfo);
It works correctly(connection created) only if I launch application in debug mode. But if I install my application by msi, connection won't created. And I see next error in Event Viewer: "An error occurred. Contact your workplace administrator for assistance."
Could you help me please?