Click here to Skip to main content
15,900,816 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am trying to make a silent installation package that will install drivers silently without showing the setup UI. Generally a setup has multiple steps(steps have next button ,set part,licence agree radio button etc ).I don't want the user to do these operation instead my package should do all these operation automatically.

C#
ProcessStartInfo psi = new ProcessStartInfo();
psi.CreateNoWindow = true;
psi.WindowStyle = ProcessWindowStyle.Hidden;
psi.UseShellExecute = false;
psi.CreateNoWindow = true;
psi.RedirectStandardOutput = true;
psi.Arguments = "/s";
psi.FileName = ((new FileInfo(System.Reflection.Assembly.GetEntryAssembly().Location)).Directory).ToString() + "\\Drivers\\POS325\\PR85\\PRPOPOSsetup.exe";
psi.UseShellExecute = false;
Process.Start(psi);
MessageBox.Show("Instalation Successfull..!!!");


But while executing it, setup UI showsup with steps to be perform by user.
How do I do so Please help me.

Thanks in advance..
Posted
Updated 28-Jun-15 20:43pm
v2
Comments
Aditya Chauhan 30-Jun-15 3:51am    
convert your application properties into console based Application
then this is not showing the prompt
Member 11836800 16-Apr-20 13:36pm    
Have you got the solution?. I am also stuck with same.

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