Beispiel #1
0
        void ProgressDialog_Load(object sender, EventArgs e)
        {
            banner.Image = Runtime.Session.GetResourceBitmap("WixUI_Bmp_Banner");

            if (!WindowsIdentity.GetCurrent().IsAdmin() && Uac.IsEnabled())
            {
                this.waitPrompt.Text    = Runtime.Session.Property("UAC_WARNING");
                this.waitPrompt.Visible = true;
            }

            ResetLayout();

            Shell.StartExecute();
        }
        void ProgressDialog_Load(object sender, EventArgs e)
        {
            // ReSharper disable twice StringLiteralTypo
            MsiRuntime.Session["PIDPARAM"] = Process.GetCurrentProcess().Id.ToString();
            MsiRuntime.Session["EXENAME"]  = MsiRuntime.InstallDir.PathCombine(Program.Executable);

            banner.Image = Runtime.Session.GetResourceBitmap("WixUI_Bmp_Banner");

            if (!WindowsIdentity.GetCurrent().IsAdmin() && Uac.IsEnabled())
            {
                waitPrompt.Text = Runtime.Session.Property("UAC_WARNING");

                showWaitPromptTimer.Start();
            }

            ResetLayout();

            Shell.StartExecute();
        }