Esempio n. 1
0
        private void SignFile(string filePathToSign, string outputPath)
        {
            if (InvokeRequired)
            {
                Invoke(new MethodInvoker(() => SignFile(filePathToSign, outputPath)));
                return;
            }

            Signer        signer = new Signer(filePathToSign, outputPath);
            InstallerForm form   = new InstallerForm(signer, WorkingPath);

            // Add the form to the list so that we can monitor it's progress
            _processForms.Push(form);
            form.Show(this);
        }
Esempio n. 2
0
        private void BuildInstaller(string installerType, string configuration)
        {
            if (InvokeRequired)
            {
                Invoke(new MethodInvoker(() => BuildInstaller(installerType, configuration)));
                return;
            }

            Installer     installerBuilder = new Installer(WorkingPath, installerType, textBox_Label.Text, configuration);
            InstallerForm form             = new InstallerForm(installerBuilder, WorkingPath);

            // Add the form to the list so that we can monitor it's progress
            _processForms.Push(form);
            form.Show(this);
        }