Skip to content

Commit a96788b

Browse files
authored
fix: stop Finch on uninstall (runfinch#818)
Issue #, if available: Fixes runfinch#794 *Description of changes:* - The uninstall script runs on upgrade, and this makes the uninstall script stop/remove Finch's VM *Testing done:* - [x] I've reviewed the guidance in CONTRIBUTING.md #### License Acceptance By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. Signed-off-by: Justin Alvarez <[email protected]>
1 parent 0bf9148 commit a96788b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: msi-builder/uninstall.bat

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
@echo off
22
SET InstallDir=%~1
33

4+
:: Stop and remove any running instance
5+
finch.exe vm stop -f
6+
finch.exe vm remove -f
7+
8+
:: Just in case
9+
wsl --terminate lima-finch
10+
wsl --unregister lima-finch
11+
412
:: Delete files and directories if they exist
513
if exist "%InstallDir%\lima\" rmdir /s /q "%InstallDir%\lima\"

0 commit comments

Comments
 (0)