本帖最后由 早春新柳 于 2011-4-3 17:42 编辑
先关闭卡巴自我保护,退出卡巴。打开卡巴程序文件夹,卡巴斯基默认安装位置在“C:\Program Files\Kaspersky Lab\卡巴斯基安全部队2011”依次打开,找到“Skin”文件夹打开“layout”文件夹可以看到一个名字为“piw.ini”的文件,用记事本查找:
;------------- ConfigureWizard.ActivationBegin -------------
在行:“[ConfigureWizard.ActivationBegin_Ctrls]”的本段代码段中找到下面2段代码:
ActivateBetaKIS = $Radio f("PIW_Radio") a(la) xy(0,35) use($PersonalOnly && !IsRelease && !$IsActiveKeyBeta ) visible(!$HasReserveKey && !$IsSubscription && !LockActivationCode) v(wizPagesMask("ActivationProgress,ActivationEnd"))
ActivateTrial = $Radio f("PIW_Radio") a(la) xy(0,35) use($PersonalOnly && !$IsActiveKeyTrial && !bAlreadyTrialled && !$IsActiveKeyCommercial && IsRelease && !$IsSubscription && !LockActivationCode) v(wizPagesMask("ActivationProgress,ActivationEnd"))
然后在这2段代码中间之间增加2行代码:
ActivationChooseKey = $Radio f("PIW_Radio") a(la) xy(0,35) v(wizPagesMask("ActivationChooseKey ,ActivationEnd"))
ActivationChooseKey.Descr = a(la) $RadioCommentShiftXY f("PIW_Normal")
这2行代码是按钮主题功能及说明的配置文件,加入上面2行代码即可在卡巴激活向导界面中增加导入key功能按钮,能够在卡巴激活界面中启动导入key的功能。
在Skin文件夹依次打开“loc\zh-Hans-CN”文件夹,
找到“piw.loc”文件并用记事本打开,找到代码字段行:
[ConfigureWizard.ActivationBegin_Ctrls]
在代码:
RefreshSubscription ="更新订阅服务状态"
ActivateCommercial = "激活商用版本(&C)"
之间增加一行代码:
ActivationChooseKey = "使用授权许可文件(KEY)激活"
亦可以将[ConfigureWizard.ActivationBegin_Ctrls]字段中的 a(la) xy(0,35) 数值
除下面2项 中a(la) xy(0,35) 保持不变外
ActivateTrial = $Radio f("PIW_Radio") a(la) xy(0,35) use($PersonalOnly && !$IsActiveKeyTrial && !bAlreadyTrialled && !$IsActiveKeyCommercial && IsRelease && !$IsSubscription && !LockActivationCode) v(wizPagesMask("ActivationProgress,ActivationEnd"))
ActivateTrialKIS = $Radio f("PIW_Radio") a(la) xy(0,35) use(!$IsInitMode && $IsKAV && !bKISAlreadyTrialled && $PersonalOnly && IsRelease && !LockActivationCode && (!$IsActiveKeyTrial || !(global.KeyState & #eKeyAboutExpiration)) && env("HideUpgradeTab") != "1") v(wizPagesMask("ActivationProgress," + $MUBasePages)) onok(if(ctl.selected, (wizMask = wizPagesMask("ActivationProgress," + $MUBasePages))); true)
将其余的 a(la) xy(0,35) 数值 修改为 a(la) xy(0,0),这样使激活界面显得更为紧凑美观。
下面是更改前后代码比较:
官方原版:
[ConfigureWizard.ActivationBegin_Ctrls]
@=sz(p,p) v($WizActPages) onok((ctl.RemoveKey.selected) ? (if(msg("LicenseRemoveKeyWarning", #m_yesno) && checkPassword(#pwdc_SaveSettings), (removeKey() )) ) : ((ctl.ActivateCommercial.selected) ? (if(f_IsPossibleAddKey(), true, false) ) : true ) )
RefreshSubscription = $Radio f("PIW_Radio") a(la) xy(0,0) v(wizPagesMask("ActivationProgress,ActivationEnd")) visible($IsRefreshSubAvail)
ActivateCommercial = $Radio f("PIW_Radio") a(la) xy(0,0) use($PersonalOnly) visible(!$HasReserveKey && !$IsSubscription) v(wizPagesMask("ActivationProgress,ActivationServerForm,ActivationEnd"))
ActivateCommercial_Desc = t(richedit) at(readonly,nofocus,noborder) a(la) f("PIW_Normal") xy($RadioCommentShift,8) use($PersonalOnly) visible(!$HasReserveKey && !$IsSubscription && !LockActivationCode)
ActivationCode = t(edit) at(serial) a(as) ta(r) sz(180,a) xy(5,-3,) v(strActivationCode) oninit(if(LockActivationCode,strActivationCode=settings.Ins_ActivationCode)) enable(!LockActivationCode && ctl.ActivateCommercial.selected) visible(!$HasReserveKey && !$IsSubscription && !LockActivationCode)
ActivationCode_Desc = t(richedit) at(readonly,nofocus,noborder) a(la) sz(a,a) xy($RadioCommentShift,5) f("PIW_Normal") onclick(url($WhatIsCustomerIdLink)) visible(!$HasReserveKey && !$IsSubscription)
ActivateBetaKAV = $Radio f("PIW_Radio") a(la) xy(0,35) use($PersonalOnly && !IsRelease && !$IsActiveKeyBeta ) visible(!$HasReserveKey && !$IsSubscription && !LockActivationCode) v(wizPagesMask("ActivationProgress,ActivationEnd"))
ActivateBetaKIS = $Radio f("PIW_Radio") a(la) xy(0,35) use($PersonalOnly && !IsRelease && !$IsActiveKeyBeta ) visible(!$HasReserveKey && !$IsSubscription && !LockActivationCode) v(wizPagesMask("ActivationProgress,ActivationEnd"))
ActivateTrial = $Radio f("PIW_Radio") a(la) xy(0,35) use($PersonalOnly && !$IsActiveKeyTrial && !bAlreadyTrialled && !$IsActiveKeyCommercial && IsRelease && !$IsSubscription && !LockActivationCode) v(wizPagesMask("ActivationProgress,ActivationEnd"))
ActivateTrial_Desc = a(la) $RadioCommentShiftXY f("PIW_Normal") use($PersonalOnly && !$IsActiveKeyTrial && !bAlreadyTrialled && !$IsActiveKeyCommercial && IsRelease && !$IsSubscription && !LockActivationCode)
ActivateTrialKIS = $Radio f("PIW_Radio") a(la) xy(0,35) use(!$IsInitMode && $IsKAV && !bKISAlreadyTrialled && $PersonalOnly && IsRelease && !LockActivationCode && (!$IsActiveKeyTrial || !(global.KeyState & #eKeyAboutExpiration)) && env("HideUpgradeTab") != "1") v(wizPagesMask("ActivationProgress," + $MUBasePages)) onok(if(ctl.selected, (wizMask = wizPagesMask("ActivationProgress," + $MUBasePages))); true)
ActivateTrialKIS_Desc = a(la) $RadioCommentShiftXY f("PIW_Normal") use(ctl.ActivateTrialKIS.visible)
RevertToCommercialKAV = $Radio f("PIW_Radio") a(la) xy(0,35) use(!$IsInitMode && $PersonalOnly && ($IsActiveKeyTrial || $HasNoKeys) && isMUTrialKIS()) v(wizPagesMask($MUBasePages)) onok(if(ctl.selected, (startRevertToKAV(); wizMask = wizPagesMask("ModularUpgradeBegin,ModularUpgradeSearchProgress,ModularUpgradeProgress,ModularUpgradeRebootApp"))); true)
RevertToCommercialKAV_Desc = a(la) $RadioCommentShiftXY f("PIW_Normal") use(!$IsInitMode && $PersonalOnly && ($IsActiveKeyTrial || $HasNoKeys) && isMUTrialKIS())
Later = $Radio f("PIW_Radio") a(la) xy(,35) use($IsInitMode) visible(PiwFlags != #fPiwActivation) v(0)
Later_Desc = a(la) $RadioCommentShiftXY f("PIW_Normal") use($IsInitMode) visible(PiwFlags != #fPiwActivation)
;RemoveKey = $Radio f("PIW_Radio") a(la) xy(,35) v(0) visible(PiwFlags == #fPiwActivation && !$HasNoKeys && !bSubscriptionOnly)
修改后:〔 a(la) xy(0,35) 〕
[ConfigureWizard.ActivationBegin_Ctrls]
@=sz(p,p) v($WizActPages) onok((ctl.RemoveKey.selected) ? (if(msg("LicenseRemoveKeyWarning", #m_yesno) && checkPassword(#pwdc_SaveSettings), (removeKey() )) ) : ((ctl.ActivateCommercial.selected) ? (if(f_IsPossibleAddKey(), true, false) ) : true ) )
RefreshSubscription = $Radio f("PIW_Radio") a(la) xy(0,0) v(wizPagesMask("ActivationProgress,ActivationEnd")) visible($IsRefreshSubAvail)
ActivateCommercial = $Radio f("PIW_Radio") a(la) xy(0,0) use($PersonalOnly) visible(!$HasReserveKey && !$IsSubscription) v(wizPagesMask("ActivationProgress,ActivationServerForm,ActivationEnd"))
ActivateCommercial_Desc = t(richedit) at(readonly,nofocus,noborder) a(la) f("PIW_Normal") xy($RadioCommentShift,8) use($PersonalOnly) visible(!$HasReserveKey && !$IsSubscription && !LockActivationCode)
ActivationCode = t(edit) at(serial) a(as) ta(r) sz(180,a) xy(5,-3,) v(strActivationCode) oninit(if(LockActivationCode,strActivationCode=settings.Ins_ActivationCode)) enable(!LockActivationCode && ctl.ActivateCommercial.selected) visible(!$HasReserveKey && !$IsSubscription && !LockActivationCode)
ActivationCode_Desc = t(richedit) at(readonly,nofocus,noborder) a(la) sz(a,a) xy($RadioCommentShift,5) f("PIW_Normal") onclick(url($WhatIsCustomerIdLink)) visible(!$HasReserveKey && !$IsSubscription)
ActivateBetaKAV = $Radio f("PIW_Radio") a(la) xy(0,35) use($PersonalOnly && !IsRelease && !$IsActiveKeyBeta ) visible(!$HasReserveKey && !$IsSubscription && !LockActivationCode) v(wizPagesMask("ActivationProgress,ActivationEnd"))
ActivateBetaKIS = $Radio f("PIW_Radio") a(la) xy(0,35) use($PersonalOnly && !IsRelease && !$IsActiveKeyBeta ) visible(!$HasReserveKey && !$IsSubscription && !LockActivationCode) v(wizPagesMask("ActivationProgress,ActivationEnd"))
ActivationChooseKey = $Radio f("PIW_Radio") a(la) xy(0,35) v(wizPagesMask("ActivationChooseKey ,ActivationEnd"))
ActivationChooseKey.Descr = a(la) $RadioCommentShiftXY f("PIW_Normal")
ActivateTrial = $Radio f("PIW_Radio") a(la) xy(0,35) use($PersonalOnly && !$IsActiveKeyTrial && !bAlreadyTrialled && !$IsActiveKeyCommercial && IsRelease && !$IsSubscription && !LockActivationCode) v(wizPagesMask("ActivationProgress,ActivationEnd"))
ActivateTrial_Desc = a(la) $RadioCommentShiftXY f("PIW_Normal") use($PersonalOnly && !$IsActiveKeyTrial && !bAlreadyTrialled && !$IsActiveKeyCommercial && IsRelease && !$IsSubscription && !LockActivationCode)
ActivateTrialKIS = $Radio f("PIW_Radio") a(la) xy(0,35) use(!$IsInitMode && $IsKAV && !bKISAlreadyTrialled && $PersonalOnly && IsRelease && !LockActivationCode && (!$IsActiveKeyTrial || !(global.KeyState & #eKeyAboutExpiration)) && env("HideUpgradeTab") != "1") v(wizPagesMask("ActivationProgress," + $MUBasePages)) onok(if(ctl.selected, (wizMask = wizPagesMask("ActivationProgress," + $MUBasePages))); true)
ActivateTrialKIS_Desc = a(la) $RadioCommentShiftXY f("PIW_Normal") use(ctl.ActivateTrialKIS.visible)
RevertToCommercialKAV = $Radio f("PIW_Radio") a(la) xy(0,35) use(!$IsInitMode && $PersonalOnly && ($IsActiveKeyTrial || $HasNoKeys) && isMUTrialKIS()) v(wizPagesMask($MUBasePages)) onok(if(ctl.selected, (startRevertToKAV(); wizMask = wizPagesMask("ModularUpgradeBegin,ModularUpgradeSearchProgress,ModularUpgradeProgress,ModularUpgradeRebootApp"))); true)
RevertToCommercialKAV_Desc = a(la) $RadioCommentShiftXY f("PIW_Normal") use(!$IsInitMode && $PersonalOnly && ($IsActiveKeyTrial || $HasNoKeys) && isMUTrialKIS())
Later = $Radio f("PIW_Radio") a(la) xy(,35) use($IsInitMode) visible(PiwFlags != #fPiwActivation) v(0)
Later_Desc = a(la) $RadioCommentShiftXY f("PIW_Normal") use($IsInitMode) visible(PiwFlags != #fPiwActivation)
;RemoveKey = $Radio f("PIW_Radio") a(la) xy(,35) v(0) visible(PiwFlags == #fPiwActivation && !$HasNoKeys && !bSubscriptionOnly)
修改后:〔 a(la) xy(0,0) 〕\〔 a(la) xy(0,20) 〕
[ConfigureWizard.ActivationBegin_Ctrls]
@=sz(p,p) v($WizActPages) onok((ctl.RemoveKey.selected) ? (if(msg("LicenseRemoveKeyWarning", #m_yesno) && checkPassword(#pwdc_SaveSettings), (removeKey() )) ) : ((ctl.ActivateCommercial.selected) ? (if(f_IsPossibleAddKey(), true, false) ) : true ) )
RefreshSubscription = $Radio f("PIW_Radio") a(la) xy(0,0) v(wizPagesMask("ActivationProgress,ActivationEnd")) visible($IsRefreshSubAvail)
ActivateCommercial = $Radio f("PIW_Radio") a(la) xy(0,0) use($PersonalOnly) visible(!$HasReserveKey && !$IsSubscription) v(wizPagesMask("ActivationProgress,ActivationServerForm,ActivationEnd"))
ActivateCommercial_Desc = t(richedit) at(readonly,nofocus,noborder) a(la) f("PIW_Normal") xy($RadioCommentShift,8) use($PersonalOnly) visible(!$HasReserveKey && !$IsSubscription && !LockActivationCode)
ActivationCode = t(edit) at(serial) a(as) ta(r) sz(180,a) xy(5,-3,) v(strActivationCode) oninit(if(LockActivationCode,strActivationCode=settings.Ins_ActivationCode)) enable(!LockActivationCode && ctl.ActivateCommercial.selected) visible(!$HasReserveKey && !$IsSubscription && !LockActivationCode)
ActivationCode_Desc = t(richedit) at(readonly,nofocus,noborder) a(la) sz(a,a) xy($RadioCommentShift,5) f("PIW_Normal") onclick(url($WhatIsCustomerIdLink)) visible(!$HasReserveKey && !$IsSubscription)
ActivateBetaKAV = $Radio f("PIW_Radio") a(la) xy(0,0) use($PersonalOnly && !IsRelease && !$IsActiveKeyBeta ) visible(!$HasReserveKey && !$IsSubscription && !LockActivationCode) v(wizPagesMask("ActivationProgress,ActivationEnd"))
ActivateBetaKIS = $Radio f("PIW_Radio") a(la) xy(0,0) use($PersonalOnly && !IsRelease && !$IsActiveKeyBeta ) visible(!$HasReserveKey && !$IsSubscription && !LockActivationCode) v(wizPagesMask("ActivationProgress,ActivationEnd"))
ActivationChooseKey = $Radio f("PIW_Radio") a(la) xy(0,0) v(wizPagesMask("ActivationChooseKey ,ActivationEnd"))
ActivationChooseKey.Descr = a(la) $RadioCommentShiftXY f("PIW_Normal")
ActivateTrial = $Radio f("PIW_Radio") a(la) xy(0,20) use($PersonalOnly && !$IsActiveKeyTrial && !bAlreadyTrialled && !$IsActiveKeyCommercial && IsRelease && !$IsSubscription && !LockActivationCode) v(wizPagesMask("ActivationProgress,ActivationEnd"))
ActivateTrial_Desc = a(la) $RadioCommentShiftXY f("PIW_Normal") use($PersonalOnly && !$IsActiveKeyTrial && !bAlreadyTrialled && !$IsActiveKeyCommercial && IsRelease && !$IsSubscription && !LockActivationCode)
ActivateTrialKIS = $Radio f("PIW_Radio") a(la) xy(0,20) use(!$IsInitMode && $IsKAV && !bKISAlreadyTrialled && $PersonalOnly && IsRelease && !LockActivationCode && (!$IsActiveKeyTrial || !(global.KeyState & #eKeyAboutExpiration)) && env("HideUpgradeTab") != "1") v(wizPagesMask("ActivationProgress," + $MUBasePages)) onok(if(ctl.selected, (wizMask = wizPagesMask("ActivationProgress," + $MUBasePages))); true)
ActivateTrialKIS_Desc = a(la) $RadioCommentShiftXY f("PIW_Normal") use(ctl.ActivateTrialKIS.visible)
RevertToCommercialKAV = $Radio f("PIW_Radio") a(la) xy(0,0) use(!$IsInitMode && $PersonalOnly && ($IsActiveKeyTrial || $HasNoKeys) && isMUTrialKIS()) v(wizPagesMask($MUBasePages)) onok(if(ctl.selected, (startRevertToKAV(); wizMask = wizPagesMask("ModularUpgradeBegin,ModularUpgradeSearchProgress,ModularUpgradeProgress,ModularUpgradeRebootApp"))); true)
RevertToCommercialKAV_Desc = a(la) $RadioCommentShiftXY f("PIW_Normal") use(!$IsInitMode && $PersonalOnly && ($IsActiveKeyTrial || $HasNoKeys) && isMUTrialKIS())
Later = $Radio f("PIW_Radio") a(la) xy(,35) use($IsInitMode) visible(PiwFlags != #fPiwActivation) v(0)
Later_Desc = a(la) $RadioCommentShiftXY f("PIW_Normal") use($IsInitMode) visible(PiwFlags != #fPiwActivation)
;RemoveKey = $Radio f("PIW_Radio") a(la) xy(,35) v(0) visible(PiwFlags == #fPiwActivation && !$HasNoKeys && !bSubscriptionOnly)
“loc\zh-Hans-CN”文件夹中“piw.loc”文件文件修改方法:
在Skin文件夹依次打开“loc\zh-Hans-CN”文件夹,
找到“piw.loc”文件并用记事本打开,找到代码字段行:
[ConfigureWizard.ActivationBegin_Ctrls]
在代码:
RefreshSubscription ="更新订阅服务状态"
ActivateCommercial = "激活商用版本(&C)"
之间增加一行代码:
ActivationChooseKey = "使用授权许可文件(KEY)激活"
下面是更改前后代码比较:
官方原版:
[ConfigureWizard.ActivationBegin_Ctrls]
RefreshSubscription ="更新订阅服务状态"
ActivateCommercial = "激活商用版本(&C)"
ActivateCommercial_Desc = (LockActivationCode)? "输入激活码:" : "输入<a onclick(url(\"" + $ActCodeHint + "\"))>激活码</a>:"
ActivationCode_Desc = (LockActivationCode)? "您的激活码已经自动添加。请点击“下一步”按钮继续。" : "如果您没有激活码,请<a onclick(buy(0))>在线购买</a>。"
ActivateBetaKAV = "激活卡巴斯基反病毒软件测试版(&B)"
ActivateBetaKIS = "激活卡巴斯基安全部队测试版(&V)"
ActivateTrial = "激活试用版本(&T)"
ActivateTrial_Desc = "购买之前试用程序的全部功能。"
ActivateTrialKIS = "激活卡巴斯基安全部队试用版"
ActivateTrialKIS_Desc = "购买之前试用卡巴斯基安全部队的全部功能。"
RevertToCommercialKAV = "返回卡巴斯基反病毒软件商业版"
RevertToCommercialKAV_Desc = "停止使用卡巴斯基安全部队试用版,返回卡巴斯基反病毒软件商业版。"
Later = "稍后激活(&A)"
Later_Desc = "激活之前,无法使用程序的全部功能。"
RemoveKey = "删除授权"
修改后:
[ConfigureWizard.ActivationBegin_Ctrls]
RefreshSubscription ="更新订阅服务状态"
ActivationChooseKey = "使用授权许可文件(key)激活"
ActivateCommercial = "激活商用版本(&C)"
ActivateCommercial_Desc = (LockActivationCode)? "输入激活码:" : "输入<a onclick(url(\"" + $ActCodeHint + "\"))>激活码</a>:"
ActivationCode_Desc = (LockActivationCode)? "您的激活码已经自动添加。请点击“下一步”按钮继续。" : "如果您没有激活码,请<a onclick(buy(0))>在线购买</a>。"
ActivateBetaKAV = "激活卡巴斯基反病毒软件测试版(&B)"
ActivateBetaKIS = "激活卡巴斯基安全部队测试版(&V)"
ActivateTrial = "激活试用版本(&T)"
ActivateTrial_Desc = "购买之前试用程序的全部功能。"
ActivateTrialKIS = "激活卡巴斯基安全部队试用版"
ActivateTrialKIS_Desc = "购买之前试用卡巴斯基安全部队的全部功能。"
RevertToCommercialKAV = "返回卡巴斯基反病毒软件商业版"
RevertToCommercialKAV_Desc = "停止使用卡巴斯基安全部队试用版,返回卡巴斯基反病毒软件商业版。"
Later = "稍后激活(&A)"
Later_Desc = "激活之前,无法使用程序的全部功能。"
RemoveKey = "删除授权"
☞ 更多卡巴斯基精华应用技巧及相关工具集萃请点击( 我的网盘)
|