紫光华宇拼音输入法 v5.0P 增强版 DIY脚本

紫光华宇拼音输入法 v5.0P 增强版 DIY脚本 - 故障解答 - 电脑教程网

紫光华宇拼音输入法 v5.0P 增强版 DIY脚本

日期:2007-07-24   荐:
[Setup] 
AppName=紫光华宇拼音输入法增强版 
AppVerName=紫光华宇拼音输入法 v5.0P 增强版 
DefaultDirName={sys}\ime\Unispim 
OutputBaseFilename=unispim5 
Compression=lzma/ultra 
LicenseFile=embedded\License.txt 
WizardImageFile=embedded\WizardImage.bmp 
WizardSmallImageFile=embedded\WizardSmallImage.bmp 
InternalCompressLevel=ultra 
ShowLanguageDialog=yes 
AppPublisher=tracky's BLOG 
AppPublisherURL=http://vip.hanzify.org/tracky/
AppSupportURL=http://vip.hanzify.org/tracky/
AppUpdatesURL=http://vip.hanzify.org/tracky/
DisableDirPage=true 
DefaultGroupName=紫光华宇拼音输入法 
InfoBeforeFile={app}\使用说明.txt 
[Files] 
Source: {sys}\unispim5.ime; DestDir: {sys}; Components: upim; Flags: restartreplace uninsrestartdelete 
Source: {app}\license.rtf; DestDir: {app}; Components: upim; Flags: ignoreversion 
Source: {app}\readme.html; DestDir: {app}; Components: upim; Flags: ignoreversion 
Source: {app}\bcoc5.dat; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 


Source: {app}\bg-aqua1.bmp; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\bg-aqua2.bmp; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\bg-diamond1.bmp; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\bg-diamond2.bmp; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\bg-float.bmp; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\bg-luna1.bmp; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\bg-luna2.bmp; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\bg-web1.bmp; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\bg-web2.bmp; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\chnsym.ini; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\hzfreq.dat; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\hzpy.dat; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\hzrad.dat; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\instupim.exe; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\j2f.dat; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\skin-aqua.utd; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\skin-diamond.utd; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\skin-luna.utd; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\skin-web.utd; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\spewords.ini; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\syswl.dat; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 


Source: {app}\unispim5.chm; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\unispimsp.ini; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\upcfgwiz5.exe; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\upimcfg5.exe; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\upimrad.exe; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\usp-abc.ini; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\usp-cstar.ini; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\usp-dos.ini; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\usp-mspy.ini; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\usp-pyjj.ini; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\usp-upim.ini; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\usp-zrm.ini; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\uwadd.exe; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\wlbackup.exe; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\wlimport.exe; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\wlman.exe; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\wlmerge.exe; DestDir: {app}; Components: upim; Flags: restartreplace ignoreversion 
Source: {app}\imetool\imetool.exe; DestDir: {app}\IMETool; Flags: ignoreversion; Components: ime 
Source: {app}\imetool\indicdll.dll; DestDir: {app}\IMETool; Flags: ignoreversion; Components: ime 
Source: {app}\imetool\internat.exe; DestDir: {app}\IMETool; Flags: ignoreversion; Components: ime 
Source: {app}\imetool\readme.txt; DestDir: {app}\IMETool; Flags: ignoreversion; Components: ime 
Source: {app}\使用说明.txt; DestDir: {app}; Flags: ignoreversion 
Source: {app}\usrwl.dat; Flags: ignoreversion; DestDir: {tmp}; Components: lib 
Source: embedded\License.txt; DestDir: embedded 
Source: embedded\WizardImage.bmp; DestDir: embedded 
Source: embedded\WizardSmallImage.bmp; DestDir: embedded 
[INI] 
Filename: {app}\tracky's BLOG.url; Section: InternetShortcut; Key: URL; String: http://vip.hanzify.org/tracky/ 
Filename: {app}\IMETool\Silence 的工具箱.url; Section: InternetShortcut; Key: URL; String: http://www.mympc.org/ 
[Run] 
Filename: {app}\instupim.exe; Parameters: /s; StatusMsg: 安装输入法... 
Filename: {app}\wlmerge.exe; Parameters: /r 
Filename: http://vip.hanzify.org/tracky/; Flags: shellexec 
[UninstallRun] 
Filename: http://vip.hanzify.org/tracky/; Flags: shellexec 


Filename: {app}\instupim.exe; Parameters: /u; StatusMsg: 删除输入法... 
[UninstallDelete] 
Name: {app}; Type: filesandordirs 
[Icons] 
Name: {group}\tracky's BLOG; Filename: {app}\tracky's BLOG.url 
Name: {group}\设置工具\设置; Filename: {app}\upimcfg5.exe; WorkingDir: {app}; IconIndex: 0 
Name: {group}\设置工具\设置向导; Filename: {app}\upcfgwiz5.exe; WorkingDir: {app}; IconIndex: 0 
Name: {group}\设置工具\词库管理; Filename: {app}\wlman.exe; WorkingDir: {app}; IconIndex: 0 
Name: {group}\设置工具\偏旁部首检字; Filename: {app}\upimrad.exe; WorkingDir: {app}; IconIndex: 0 
Name: {group}\帮助文档\帮助; Filename: {app}\unispim5.chm; WorkingDir: {app} 
Name: {group}\帮助文档\软件说明; Filename: {app}\readme.html; WorkingDir: {app} 
Name: {group}\输入法设置工具\IMETool; Filename: {app}\IMETool\imetool.exe; Components: ime; WorkingDir: {app}\IMETool; IconIndex: 0 
Name: {group}\输入法设置工具\自述文件; Filename: {app}\IMETool\readme.txt 
Name: {group}\输入法设置工具\Silence 的工具箱; Filename: {app}\IMETool\Silence 的工具箱.url 
Name: {group}\{cm:UninstallProgram,紫光华宇拼音输入法}; Filename: {uninstallexe} 
Name: {group}\使用说明; Filename: {app}\使用说明.txt 
[Messages] 
BeveledLabel=紫光华宇拼音输入法 v5.0P 增强版 
FinishedRestartLabel=由于卸载了以前版本后进行安装,可能导致输入法列表中的紫光华宇拼音 v5 不可用,建议重新登录或者重新启动计算机。您想现在重新启动吗? 
[Components] 
Name: upim; Description: 紫光华宇拼音输入法 v5.0P 增强版; Flags: fixed; Types: custom compact full 
Name: ime; Description: 安装 IME Tool v2.6.4(输入法设置工具); Types: full 
Name: lib; Description: 安装附加超大词库(约 60 万词); Types: full 
[Types] 
Name: full; Description: 完整安装 
Name: compact; Description: 精简安装 
Name: custom; Description: 自定义安装; Flags: iscustom 
[Code] 
var 
isFound: Boolean; 
function InitializeSetup(): Boolean; 
var 
ResultCode: Integer; 
begin 
isFound := False; 
if RegKeyExists(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C21C537D-6438-4574-825C-FBB1CB7BB54C}') then 
begin 
  if MsgBox('找到紫光拼音 v3.0,建议您先卸载该程序再重新运行安装版本5。'#13#10'(卸载之后您的用户词库信息仍会得到保留)'#13#10#13#10'是否现在卸载?', mbConfirmation, MB_YESNO) = IDYES then 
  begin 
    if Exec(ExpandConstant('{sys}\msiexec.exe'), '/qr /x {C21C537D-6438-4574-825C-FBB1CB7BB54C}', '', SW_SHOW,ewWaitUntilTerminated, ResultCode) then 
    begin 
    isFound := True; 
    Result := True; 
    end 
    else begin 
    MsgBox('卸载失败,请使用控制面板的“添加或删除程序”功能进行卸载操作。', mbError, MB_OK); 
    Result := False; 
    end; 
  end else 
  Result := True; 
end else 
  Result := True; 
end; 
procedure CurPageChanged(CurPageID: Integer); 
begin 
if CurPageID = wpFinished then 
begin 
  if IsComponentSelected('lib') then 
  begin 


  FileCopy(ExpandConstant('{tmp}\usrwl.dat'),ExpandConstant('{userappdata}\Unispim\usrwl.dat'),False); 
  end; 
end; 
end; 
function NeedRestart(): Boolean; 
begin 
if isFound = True then 
begin 
  Result := True; 
end else 
  Result := False; 
end; 
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); 
begin 
case CurUninstallStep of 
  usPostUninstall: 
    begin 
    if MsgBox('你是否想要清除“紫光华宇拼音输入法”在注册表中的设置以及词库与短语文件?', mbConfirmation, MB_YESNO) = IDYES then 
    begin 
      RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER,'Software\Thunisoft'); 
      RegDeleteKeyIncludingSubkeys(HKEY_LOCAL_MACHINE,'Software\Thunisoft'); 
      DelTree(ExpandConstant('{userappdata}\Unispim'), True, True, True); 
    end; 
    end; 
end; 
end;
标签: