when fixing 7068626 - it's noticed that we should refactor unregisgterDeploy in regfx.cpp: I'd suggest to structure code differently like: if (checkIfOurBinariesAreRegisteredFroDeploy()) { doRegularUninstall() if (hadShadowedJRE()) { reregisterShadowedJRE(); } } For reregister logic we can refactor registerDeploy() to extract function that will register everything given root directory. Then we can use it for reregister and registerDeploy() to avoid replicating the code to reconstruct registry keys?
|