|
发表于 2009-6-1 12:31:23
|
显示全部楼层
官方版本就带中文界面,也没有这个picaview插件,附送个安装代码
;清空以前的快捷方式信息
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\XnView_is1","Inno Setup: Selected Tasks")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\XnView_is1","Inno Setup: Deselected Tasks")
;######################
run("xnview-win-full.exe")
WinWaitActive("Setup - XnView","Welcome to the XnView Setup Wizard")
Send("!n")
WinWaitActive("Setup - XnView","License Agreement")
Send("!a")
Send("!n")
WinWaitActive("Setup - XnView","Select Destination Location")
ControlSetText("Setup - XnView","","[CLASSNN:TEdit1]",@ProgramFilesDir & "\XnView")
Send("!n")
If WinExists("Folder Exists","") Then
Send("!y")
EndIf
WinWaitActive("Setup - XnView","Select Components")
ControlCommand("Setup - XnView","","[CLASSNN:TNewComboBox1]","SelectString", 'Full installation')
Send("!n")
WinWaitActive("Setup - XnView","Select Start Menu Folder")
ControlSetText("Setup - XnView","","[CLASSNN:TNewEdit1]","XnView")
Send("!n")
WinWaitActive("Setup - XnView","Select Additional Tasks")
Send("!q")
Send("!n")
WinWaitActive("Setup - XnView","Ready to Install")
Send("!i")
WinWaitActive("Setup - XnView","Completing the XnView Setup Wizard")
Send("!f")
;自定义设置
FileCopy("xnview.ini",@AppDataDir & "\XnView\",9)
FileCopy("default.bar",@AppDataDir & "\XnView\",9)
;##########
;设置文件关联
Run(@ProgramFilesDir & "\xnview\xnview.exe")
WinWaitActive("XnView","")
Send("!to")
WinWaitActive("选项","")
ControlCommand("选项","","[CLASSNN:ListBox1]","SelectString",'关联')
ControlClick("选项","","[CLASSNN:Button3]","left",1)
ControlClick("选项","","[CLASSNN:Button25]","left",1)
WinWaitActive("XnView","")
Send("^q")
WinWaitClose("XnView","")
;############ |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?加入
×
|