Click here to Skip to main content
15,914,221 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
here is my code....

C#
process.FileName = "cmd";
           process.WorkingDirectory = path;
           process.Arguments = "/k candle userTemplate.wxs";
           Process.Start(process);
           
           process.Arguments = "/k light userTemplate.wixobj -ext WixUIExtension";
           Process.Start(process);




I want to start light after completion of candle..
Posted

After you start the candle process, use process.WaitForExit();
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 29-Mar-12 16:06pm    
Correct, a 5.
--SA
[no name] 29-Mar-12 20:23pm    
Thanks. I believe it's my last.
Sergey Alexandrovich Kryukov 30-Mar-12 1:47am    
What do you mean?
--SA
Use TPL Task.ContinueWith TPL Task.ContinueWith [^]. As a task use Process.Start and wait to finish.
 
Share this answer
 
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash

Use Lock and Unlock...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900