Запуск инсталяции в отдельном процессе вылетает с ошибкой, подскажите почему ?

vashkovich
Дата: 19.05.2006 11:19:12
Итак есть код запускающий инсталяцию SQLEXPRESS
ProcessStartInfo psi = new ProcessStartInfo();
Process p = new Process();
setup_resoursename = "SQLEXPR.EXE";
setup_Arguments = " -q /norebootchk /qn reboot=ReallySuppress  addlocal=all 
instancename=SQLEXPRESS SCCCHECKLEVEL=IncompatibleComponents:1;MDAC25Version:0 SQLAUTOSTART=1 
ERRORREPORTING=2 ComponentType=3";
   
apptemp = Environment.GetFolderPath(Environment.SpecialFolder.Templates).Trim();
 psi.FileName = apptemp + "\\" + setup_resoursename ;
                if (setup_Arguments.Length != 0)
                {
                   psi.Arguments = setup_Arguments;
                }
                p.StartInfo = psi;
                p.StartInfo.RedirectStandardOutput = true;
                p.StartInfo.UseShellExecute = false;
                p.Start();
                p.WaitForExit();                

здесь  получаю  p.ExitCode = 0x00000652
в логах пишется ошибка :


The description for Event ID ( 11001 ) in Source ( MsiInstaller ) cannot be found.
 The local computer may not have the necessary registry information or message 
DLL files to display messages from a remote computer. You may be able to use 
the /AUXSOURCE= flag to retrieve this description; see Help and Support for 
details. The following information is part of the event: Product: ElZakaz -- Error
 1001. The given path's format is not supported.; (NULL); (NULL); (NULL).

При этом если в командной строке набрать
SQLEXPR.EXE-q /norebootchk /qn reboot=ReallySuppress addlocal=all instancename=SQLEXPRESS
SCCCHECKLEVEL=IncompatibleComponents:1;MDAC25Version:0 SQLAUTOSTART=1 ERRORREPORTING=2 ComponentType=3

то все прекрасно устанавливается. В чем у меня ошибка запуска установки из потока?