今天把delphi升级到10.1up2,等启动完后,提示脚本错误,提示如下图所示:
解决办法如下:打开注册表,在cmd中输入regedit,以管理员的身份运行,找到HKEY_CURRENT_USER\SOFTWARE\Embarcadero\BDS\18.0\Known IDE Packages项,找到$(BDS)\Bin\CommunityToolbar240.bpl这个子项目,将其内容由Embarcadero Community Toolbar Package 改为_Embarcadero Community Toolbar Package。重新打开delphi IDE,脚本错误的提示就被干掉了。
可以通过修改host文件来禁止IDE上网:
127.0.0.1 comapi.embarcadero.com
127.0.0.1 license.embarcadero.com
127.0.0.1 track.embarcadero.com
127.0.0.1 external.ws.sanctx.embarcadero.com
127.0.0.1 object.ws.sanctx.embarcadero.com
127.0.0.1 license.codegear.com
127.0.0.1 license-stage.codegear.com
127.0.0.1 services.server.v8.srs.sanctuary.codegear.com
127.0.0.1 LicenseRenewalServicesImpl.services.server.v8.srs.sanctuary.codegear.com
127.0.0.1 LicenseUsageServicesImpl.services.server.v8.srs.sanctuary.codegear.com
127.0.0.1 RegistrationServicesImpl.services.server.v8.srs.sanctuary.codegear.com
参考:http://www.cnblogs.com/win32pro/p/5539160.html
http://city193.blog.163.com/blog/static/341365232016102703524766/