Пример #1
0
        public void Install()
        {
            // Args for install
            var setupArgs = "-a -f";

            MhwSetup.LaunchAndWaitForExit(setupArgs);

            // See if the printer is now installed.
            LoadPrintToFaxState();
        }
Пример #2
0
        public void Install()
        {
            var setupArgs = "-a -d";

            // Launch setup process with args to install.
            MhwSetup.LaunchAndWaitForExit(setupArgs);

            // Reset previous settings.
            ResetSettings();

            // Verify the printer is now installed and set state.
            if (LoadPrinterInstalled())
            {
                InitRadioButtons();
                SetPromptOrDefaultState();
            }
        }
Пример #3
0
        public void Uninstall()
        {
            // Args to perform uninstall
            var setupArgs = "-a -u -d";

            StopMonitoring();

            // Reset previous settings.
            ResetSettings();

            // Launch setup process with args to uninstall.
            MhwSetup.LaunchAndWaitForExit(setupArgs);

            // Verify the printer is now uninstalled and set state.
            if (LoadPrinterInstalled())
            {
                SetPromptOrDefaultState();
            }
        }