Skip to content

Auto stop process before uninstalling app

PlutoTree edited this page Jan 17, 2024 · 2 revisions

Here is a simple example, but in mind that some data will be lossed if you stop process in force.

{
    "pre_uninstall": [
        "if (Get-Process -Name \"wemeetapp\" -Erroraction SilentlyContinue) {Stop-Process -Name \"wemeetapp\"}"
    ]
}
Clone this wiki locally