GammaLauncher icon indicating copy to clipboard operation
GammaLauncher copied to clipboard

Clean old folders in install directory

Open tebjan opened this issue 2 years ago • 2 comments

Uninstalling vvvv leaves a folder there, if one is sure that nothing was changed manually in a vvvv install folder, one could press a button to move those directories into the bin.

image

tebjan avatar Mar 17 '22 11:03 tebjan

Hey, yes noticed that as well, I could actually delete this folder when the uninstaller successfully exits, but shouldn't/couldn't it be taken care of by the uninstaller?

sebescudie avatar Mar 18 '22 08:03 sebescudie

This might be the first thought, of course. But the installer is only allowed to remove files that it put there itself. We don't know what a user did or whether some files are changed, so we cannot just delete this folder as it could potentially destroy user work.

so the cleanup has to be an active user decision, which is better placed in the launcher. also, the installer would only be allowed to manage its own specific version, but in this case, one just wants to clean all.

tebjan avatar Mar 23 '22 11:03 tebjan

This feature will be part of the next release!

There is a quirk though. It looks like the Launcher has to run in elevated mode to delete files in Program Files, which makes sense.

But apparently, a non-elevated program cannot send messages (like a drag and drop action) to an elevated one. Windows Explorer is usually not elevated, which means that the feature that allows to open a document by dropping it on the Launcher will not work in elevated mode.

sebescudie avatar Dec 24 '23 13:12 sebescudie