mkevenaar / chocolatey-packages

My chocolatey packages
https://mkevenaar.github.io/chocolatey-packages/
Apache License 2.0
42 stars 66 forks source link

(iobit-uninstaller) Make uninstall silent #178

Closed slycordinator closed 1 year ago

slycordinator commented 1 year ago

(iobit-uninstaller) Added silent uninstaller options and helper function to close all iobit-uninstaller exes/services Added tools/helpers.ps1 with Close-Iobit function Close-Iobit function closes the main executable for iobit-uninstaller, then stops the iobit uninstall monintor service followed by any process of iobit-uninstaller's executables

Added tools/chocolateyUninstall.ps1 for uninstallation It sources the helpers.1 function and calls the Close-Iobit function prior to running the autouninstaller.

Description

Added tools/helpers.ps1 with Close-Iobit function

Added tools/chocolateyUninstall.ps1 for uninstallation

Motivation and Context

Uninstaller isn't silent; it normally sends you a survey upon uninstallation As well, it's not even if you use the silent options, because it will spawn a lock on the unins000.dat file and can give popups warning about processes trying to access it. And in the case that this happens, clicking OK causes the uninstaller to exit with errors. So, by using the silent options and closing all of the other processes/services, it avoids those problems.

How Has this Been Tested?

I've installed the package several times, finding it worked. And it's had no effect on the program; it's just changing the uninstallation to not show the survey or have any popups Though, I haven't done this in the test environment. I'm currently on a computer that I can't get the test environment to work on.

Screenshot (if appropriate, usually isn't needed):

Types of changes

Checklist:

AppVeyorBot commented 1 year ago

:white_check_mark: Package verification completed without issues. PR is now pending human review

mkevenaar commented 1 year ago

@slycordinator your changes have been merged, thank you for your contribution!