public void Install() { // Args for install var setupArgs = "-a -f"; MhwSetup.LaunchAndWaitForExit(setupArgs); // See if the printer is now installed. LoadPrintToFaxState(); }
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(); } }
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(); } }