@echo off echo "Delete reg to allow Electron/NW.js..." reg delete "HKEY_LOCAL_MACHINE\Software\Policies\Chromium\ExtensionAllowedTypes" /f reg delete "HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\ExtensionAllowedTypes" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\ExtensionAllowedTypes" /f if %errorlevel%==0 ( echo ExtensionAllowedTypes policy deleted. ) else ( echo ExtensionAllowedTypes policy deletion failed! ) pause