Class UninstallInstaller
- Namespace
- FishMMO.Installer
- Assembly
- FishMMO-Installer.dll
The Uninstall screens: removing PostgreSQL, and deleting the secrets file.
public static class UninstallInstaller
- Inheritance
-
UninstallInstaller
- Inherited Members
Remarks
Nothing here is undoable. Removing PostgreSQL deletes the cluster data directory, and that directory is every account, character, guild, item and audit row the deployment has ever had. There is no recycle bin and no second copy. The confirmation flow is therefore the feature, not the packaging around it:
- Resolve the real commands and the real paths for this machine and show them.
- Say which services are running that will break the moment the database is gone.
- Offer a dump first, and stop dead if the dump is asked for and fails.
- Require a typed phrase nobody types by reflex — not a keypress.
- Run the steps in order, stop at the first real failure, and report every outcome, so a half-done uninstall is visible rather than silent.
The command and path resolution lives in UninstallPlanner, which touches nothing and can be asserted on its own. This file is the part that talks to the operator and runs what the planner decided.
Methods
DeleteSecretsFile()
Deletes the secrets and environment file that every FishMMO process reads its database credentials from.
public static Task DeleteSecretsFile()
Returns
Remarks
The key names are listed because knowing what has to be re-entered is useful. The values are never printed: a password or an API key on a terminal ends up in scrollback, in a screen recording, and in whatever the terminal logs.
UninstallPostgreSQL()
Removes PostgreSQL and its cluster data, after showing exactly what will run and taking a typed confirmation.
public static Task UninstallPostgreSQL()