ExtJS UI 框架设计Ext Designer V1.0.2不过期补丁 源码
原文地址:http://www.ecranesoft.com/bbs/showtopic-9420.aspx
ExtJS UI介绍:http://baike.baidu.com/view/1350145.htm
原版下载:http://www.sencha.com/products/designer/download.php
Ext Designer 是ExtJS UI 框架的可视化设计器,官方下载的可以免费使用14天,过期后,后调系统时间可以继续使用,为避免调整时间的麻烦,使用快手做了个补丁程序,用于V1.0.2版.
使用补丁前的步骤:安装原版,并正常试用一次(按提示操作进入设计界面),然后退出程序,再执行本补丁.
补丁源码
代码
import win.reg;
import fsys;
io.open();
try{
reg = win.reg("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ExtDesigner.Editor.1\DefaultIcon")
path = reg.queryValue();
path = string.replace(string.match(path,"\Z*"),"@/48x48.ico","");
targetFile1 = path ++ "\libion-1.0.2.0.dll";
targetFile2 = fsys.getSpecial(0x001c /*_CSIDL_LOCAL_APPDATA*/) ++ "\Ext JS, Inc\Ext Designer\libion-1.0.2.0.dll";
//io.print(targetFile1,targetFile2);
file1 = io.open(targetFile1,"r+b");
file2 = io.open(targetFile2,"r+b");
size1 = file1.seek("end");
size2 = file2.seek("end");
if(size1!=642560||size2!=642560){
io.print("目标程序版本与补丁程序不匹配!");
}
else{
file1.seek("set",31209);
file1.write('\xB3\x01');
file2.seek("set",31209);
file2.write('\xB3\x01');
io.print("补丁完成!");
}
}
catch(e){
io.print("目标程序没有正确安装并正常执行过一次,或者版本不匹配!");
}
if(file1) {file1.close();}
if(file2) {file2.close();}
execute("pause");
io.close();