KSP-ModularManagement / KSPe

Extensions and utilities for Kerbal Space Program
http://ksp.lisias.net/add-ons/KSPAPIExtensions
Other
11 stars 5 forks source link

Instrument the KSPe Install Checker to detect when the user deleted the Add'On Directory and kill yourself from `GameData` #65

Closed Lisias closed 5 months ago

Lisias commented 9 months ago

Users willing to remove KSPe are being bitten by 000_KSPe.dll that is usually left behind after deleting GameData/000_KSPe.

Instrument the KSPe.InstallChecker (aka 000_KSPe.dll) to detect when the main distribution is removed, and then remove 001_KSPe.dll to avoid KSPe from being installed on the rig.

The 000_KSPe.dll itself will linger on GameData, as It can't remove itself while running and once it's not running, it can't remove itself neither. This thing should be left on a completely dormant way, and a message on KSP.log should be issue telling the user that he can remove the file manually if desired.

Lisias commented 5 months ago

Implemented on commit https://github.com/net-lisias-ksp/KSPe/commit/237b9574569bf7e7bb8adfa757b288e09eb23688