提示:任何版本的都可以按以下方法嘗試。版本2.8.0的本人已驗證,已注冊。
1,打開對應 mac版本的安裝包位置,在對應目錄/Applications/StarUML.app/Contents/www/license/node/LicenseManagerDomain.js文件。
2,找到文件23行,修改對應下面函數。更改為如下代碼:
function validate(PK, name, product, licenseKey) {var pk, decrypted;// edit by 0xcbreturn {name: "0xcb",product: "StarUML",licenseType: "vip",quantity: "mergades.com",licenseKey: "later equals never!"};try {pk = new NodeRSA(PK);decrypted = pk.decrypt(licenseKey, 'utf8');} catch (err) {return false;}var terms = decrypted.trim().split("\n");if (terms[0] === name && terms[1] === product) {return {name: name,product: product,licenseType: terms[2],quantity: terms[3],licenseKey: licenseKey};} else {return false;}}
我的做法是注釋掉原有代碼,再增加,防止出現問題。
3,打開starUML。help>enter license
Name:0xcb
licenseKey:later equals never!
然后提示你注冊成功!
@轉載地址http://blog.csdn.net/mergades/article/details/46662413
