Installer SQL Server 2005 Express en utilisant application C# et ma progress bar
Bonjour tout le monde,
j'essaie d'installer SQL Server 2005 Express en mode "silent" a partir de mon application en C# et d'utiliser une "barre de progression" pour savoir ou on en est dans cette installation.
http://www.jcm-web.co.uk/mywork/ScreenShot039.jpg
Je sais comment faire pour lancer le "SQLEXPR.EXE" en mode "silent" et lui donner les paramatres necessaires pour creer une nouvelle instances etc....
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| Process myProcess = new Process();
myProcess.StartInfo.FileName = "C:/tmp/SQLEXPR.EXE";
myProcess.StartInfo.Arguments = "/qn " + BuildCommandLine();
/* /qn -- Specifies that setup run with no user interface.
/qb -- Specifies that setup show only the basic
user interface. Only dialog boxes displaying progress information are
displayed. Other dialog boxes, such as the dialog box that asks users if
they want to restart at the end of the setup process, are not displayed.
myProcess.StartInfo.UseShellExecute = false;
myProcess.Start(); |
mais je ne sais pas comment faire pour savoir l'etat de l'installation et faire progresser ma barre.
Est ce que quelqu'un pourrait m'aider sur ce probleme, s'il vous plait. Me donner des indications.
Merci.
JC