Vinfall 修订了这个 Gist . 跳至此修订
1 file changed, 13 insertions
allow-nwjs-game.bat(文件已创建)
@@ -0,0 +1,13 @@ | |||
1 | + | @echo off | |
2 | + | echo "Delete reg to allow Electron/NW.js..." | |
3 | + | ||
4 | + | reg delete "HKEY_LOCAL_MACHINE\Software\Policies\Chromium\ExtensionAllowedTypes" /f | |
5 | + | reg delete "HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\ExtensionAllowedTypes" /f | |
6 | + | reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\ExtensionAllowedTypes" /f | |
7 | + | if %errorlevel%==0 ( | |
8 | + | echo ExtensionAllowedTypes policy deleted. | |
9 | + | ) else ( | |
10 | + | echo ExtensionAllowedTypes policy deletion failed! | |
11 | + | ) | |
12 | + | ||
13 | + | pause |
更新
更早