Ejemplo n.º 1
0
        public static ActionResult InstallCRTAction(Session session)
        {
            //This can be successfully executed only from UISequence
                //extract CRT msi into temp directory
                string CRTMsiFile = Path.ChangeExtension(Path.GetTempFileName(), ".exe");
                string CRTMsiId = "vcredist_x86.exe".Expand();//Expand() is needed to normalize file name into file ID

                session.SaveBinary(CRTMsiId, CRTMsiFile);

                //install CTR
                Process.Start(CRTMsiFile,"/passive /install").WaitForExit();

            return ActionResult.Success;
        }