diff --git a/msi-builder/uninstall.bat b/msi-builder/uninstall.bat index 9d80a2121..8f5c21a79 100644 --- a/msi-builder/uninstall.bat +++ b/msi-builder/uninstall.bat @@ -1,5 +1,13 @@ @echo off SET InstallDir=%~1 +:: Stop and remove any running instance +finch.exe vm stop -f +finch.exe vm remove -f + +:: Just in case +wsl --terminate lima-finch +wsl --unregister lima-finch + :: Delete files and directories if they exist if exist "%InstallDir%\lima\" rmdir /s /q "%InstallDir%\lima\" \ No newline at end of file