If you install Microsoft's Software Development Kit [ a behemoth of a install !!! ], you could use the
signtool.exe to remove the digital certificate, using the following command in an elevated command prompt:
Code:
Assuming you copied shell32.dll to your C:\ and that you installed the SDK to its default location, first type:
cd C:\Program Files (x86)\Windows Kits\10\tools\bin\i386
Press Enter, then type this command:
signtool remove /s c:\shell32.dll
Theoretically you then should be able to modify the file using your application.
The problem then is, you need to sign the file again, and that is not quite as simple.
If you
right-click that shell32.dll file in its original location, and select
properties | Digital Signatures tab you can see the certification its using. These are updated automatically from time to time, depending on the timestamp Microsoft settled on.
You'll need to read the Microsoft Documentation on the SignTool, to fully appreciate that final step needed:
https://docs.microsoft.com/en-us/windows/win32/seccrypto/signtool
It is not as simple as you might hope for!