Closed GurliGebis closed 1 year ago
@donho this would make it a lot easier for other people get use as a base for their implementation, since it cleans up the installer A LOT 😀
from a functional point of view, it does exactly the same as the current code, but it is way cleaner and easier to read.
@GurliGebis So it's just a refactoring right?
@donho yep, refactoring and cleanup, does exactly the same as the existing code - just a lot cleaner and more readable, since all the registry logic has been refactored into a class, and then we just call it instead, making it cleaner and more readable.
This optimizes the registry work the installer does. All the registry work has been refactored into a separate RegistryKey class, which both abstracts alot away, and handles the cleanup of handles.
This has been included in the last few DLL's I have built for the notepad-plus-plus/notepad-plus-plus#13399 issue - just didn't tell anyone. So it has been tested a lot actually.
Now the installer code is way easier to understand, since it now is like this all the way: