We've developed a windows application that is installed locally with MS click-once installation. I would like create another windows application that would launch the first applicaiton and I was able to do this by calling the application reference in the start menu. But, I am unable to pass a variable to the application referecne in the start menu. On the development machine if I call the Program1.exe the variable is passed. But since this application would be installed on a client machine I am calling the application reference in the start menu. How can I pass the variable to the program1 if I am launching it from its application reference?
Process objProcess = new Process();
objProcess.StartInfo.FileName = "C:\\Documents and Settings\\user\\Start Menu\\Programs\\Program1\\Program1.appref-ms";
objProcess.StartInfo.Arguments = "hello";