mr_jrt
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by mr_jrt
-
-
Hello all.
I've been playing with these lately and wanted to ensure that if needed I could uninstall them and use the stock installers for a standard install if it was required in the future for some reason. The problem I found was that the cleanup inf command didn't work 100% - it leaves two registry keys behind:
HKLM,"SOFTWARE\Classes\Installer\Products\%NetFX_Client_InstallerCode%"
HKLM,"SOFTWARE\Classes\Installer\Products\%NetFX_Extended_InstallerCode%"
...and these cause any subsequent install to look in the %windir%\Installer directory for installation sources, which after cleanup is empty, so you get a screwed up dialogue box with blank buttons and Chinese lettering all over it! Removing these two keys resolves the issue, so I added them to the NETFX40.INF file's cleanup:*** OnePiece_Microsoft.NET_Framework_v4.0.30319.1031_True_AddOn_ENU_6E4EB23427B081EA39CC2BAD22C4EC75/NETFX40.INF Wed Apr 15 21:03:50 2015--- OnePiece_Microsoft.NET_Framework_v4.0.30319.1031_True_AddOn_ENU_6E4EB23427B081EA39CC2BAD22C4EC75_JT/NETFX40.INF Sat Sep 19 21:20:01 2015****************** 16403,16408 ****--- 16403,16409 ---- [NETFX40.Installer.Reg.CleanUp]+ HKLM,"SOFTWARE\Classes\Installer\Products\%NetFX_Client_InstallerCode%" HKLM,"SOFTWARE\Classes\Installer\Features\%NetFX_Client_InstallerCode%" HKLM,"SOFTWARE\Classes\Installer\UpgradeCodes\%NetFX_Client_UpgradeCodes%" HKLM,"%KEY_WIN_CURVER%\Installer\Folders","%16422%\Microsoft.NET\"****************** 17221,17226 ****--- 17222,17228 ---- HKLM,"%KEY_WIN_CURVER%\Uninstall\%NetFX_Client_ProductCode%.KB3032662" HKLM,"%KEY_WIN_CURVER%\Uninstall\%NetFX_Client_ProductCode%.KB3037578" + HKLM,"SOFTWARE\Classes\Installer\Products\%NetFX_Extended_InstallerCode%" HKLM,"SOFTWARE\Classes\Installer\Features\%NetFX_Extended_InstallerCode%" HKLM,"SOFTWARE\Classes\Installer\UpgradeCodes\%NetFX_Extended_UpgradeCodes%" HKLM,"%KEY_WIN_CURVER%\Installer\Folders","%10%\Microsoft.NET\%Framework%\%URTVersion%\ASP.NETWebAdminFiles\Security\Users\App_LocalResources\"
Now that it works, I also took the liberty of adding in a key outside of the addon to access the cleanup a bit more easily:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft .NET Framework 4.0]"DisplayIcon"=hex(2):25,00,57,00,49,00,4e,00,44,00,49,00,52,00,25,00,5c,00,4d,\ 00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,2e,00,4e,00,45,00,54,00,\ 5c,00,46,00,72,00,61,00,6d,00,65,00,77,00,6f,00,72,00,6b,00,5c,00,76,00,34,\ 00,2e,00,30,00,2e,00,33,00,30,00,33,00,31,00,39,00,5c,00,53,00,65,00,74,00,\ 75,00,70,00,43,00,61,00,63,00,68,00,65,00,5c,00,45,00,78,00,74,00,65,00,6e,\ 00,64,00,65,00,64,00,5c,00,44,00,69,00,73,00,70,00,6c,00,61,00,79,00,49,00,\ 63,00,6f,00,6e,00,2e,00,69,00,63,00,6f,00,00,00"DisplayName"="Clean up Microsoft .NET Framework 4.0""DisplayVersion"="4.0.30319.1031""EstimatedSize"=dword:0000cff1"NoModify"=dword:00000001"NoRepair"=dword:00000001"UninstallString"="cmd /c \"RUNDLL32.exe advpack.dll,LaunchINFSection NETFX40.inf,NETFX40.CleanUp && reg DELETE \"\"\"\"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Microsoft .NET Framework 4.0\"\"\"\" /f\"""VersionMinor"="0""VersionMajor"="4""HelpLink"="http://www.wincert.net/forum/topic/7697-addon-net-40-framework-true-addon"
Thanks for making these addons!
[Addon] .NET framework 1.1-2.0-3.0-3.5 GDR/QFE TRUE addons
in WPI, nLite and RVM Addons
Posted · Edited by mr_jrt
Hello all.
I've been playing with these lately and wanted to ensure that if needed I could uninstall them and use the stock installers for a standard install if it was required in the future for some reason. The problem I found was that the cleanup inf command didn't work 100% when installed alongside other versions of .Net as mscoree.dll in system32 gets shared (you end up removing the v4 copy of the DLL and get an "unable to initialise fusion" error), so if you remove this DLL when you clean up .Net 2.0 you will be unable to reinstall .Net 2.0 (even in the shared 3.5 installers) as you will get weird errors in the new install (which will fail). I've only looked at the v3.5 addon as this is the one I'm using.
Leaving this DLL behind resolves the issue (aka. the normal .Net install will then succeed), so I figure it's the lesser of two evils and have split it out from the NETFX20.INF file's cleanup so it is installed, but not removed:
I also took the liberty of adding in a key outside of the addon to access the cleanup a bit more easily:
Thanks for making these addons!