From 6bd9fd2022da60965f817e2a0c81b2c30ec8cfcc Mon Sep 17 00:00:00 2001 From: TheCakeIsNaOH Date: Mon, 10 Oct 2022 23:20:46 -0500 Subject: [PATCH] (#493) Add documentation for the .skipAutoUninstall file --- input/en-us/faqs.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/input/en-us/faqs.md b/input/en-us/faqs.md index d3355dbcd1e..b6f090bbf93 100644 --- a/input/en-us/faqs.md +++ b/input/en-us/faqs.md @@ -331,6 +331,12 @@ The install location which is displayed can be manually set in the `ChocolateyIn If you are setting this variable in an installer package, do not hard code it, but instead get the location via checking the uninstall keys in the registry or similar. If this is hard coded for a package that runs an installer, it may display an incorrect location if the install location is changed manually, by install arguments, or via the licensed ubiquitous install directory switch. +### How do I skip the Automatic Uninstaller? + +If you are using a package, and Automatic Uninstall is misbehaving while a package is being uninstalled, it can be skipped by using the `--skip-autouninstaller` switch, or turned off by setting the `autoUninstaller` feature to `false`. + +If you are creating a package, and want or need to use the `chocolateyUninstall.ps1` while not running the Automatic Uninstaller, then include a `.skipAutoUninstall` file inside the package. If a file with that name is found, then during uninstall the Automatic Uninstaller will not be run. If a `.skipAutoUninstall` file is being included, make sure that it is included in the `files` element of the `.nuspec`, either explicitly via a `file` element, or by placing the file inside a folder that is included inside the package (like the `tools` directory). + ## Videos / Reference ### Where can I learn more?