zhaoyun 发表于 2016-3-16 07:09:23

学习了。。。。。。。。。。。。

stefcc 发表于 2016-3-17 11:41:05

相当不错,谢谢分享

kaka_wistron 发表于 2016-3-17 14:25:32

有中文版的吗

chishingchan 发表于 2016-3-17 15:33:52

回复 7# 131738


注册表基本上与原版安装一样,在安装时也注册了文件:
Source: "{app}\AutoItX\AutoItX3.dll"; DestDir: "{app}\AutoItX"; Check: "Not Is64BitInstallMode"; Flags: regserver 32bit
Source: "{app}\AutoItX\AutoItX3_x64.dll"; DestDir: "{app}\AutoItX"; Check: "Is64BitInstallMode"; Flags: regserver 64bit

131738 发表于 2016-3-17 16:26:36

回复131738


注册表基本上与原版安装一样,在安装时也注册了文件:
Source: "{app}\AutoItX\AutoIt ...
chishingchan 发表于 2016-3-17 15:33 http://www.autoitx.com/images/common/back.gif

通过网上搜索, 基本明白了你帖子的意图, 使用 Inno Setup 制作了一个 AutoIt 中文安装包, 是吗........

wangms 发表于 2016-3-17 22:28:29

回复 8# afan
A版,用户Include目录其实可以在SciTE使用时,在编辑器设置进行设置,这里设置包含将这些信息写到注册表里并且立即生效。

afan 发表于 2016-3-17 23:33:16

回复afan
A版,用户Include目录其实可以在SciTE使用时,在编辑器设置进行设置,这里设置包含将这些信息 ...
wangms 发表于 2016-3-17 22:28 http://www.autoitx.com/images/common/back.gif


    是的,这是对于使用 SciTE 编辑器的且进行了相关设置的,如不是,脚本如有必要的udf就会出错。

wangms 发表于 2016-3-17 23:59:44

回复 22# afan

是的,还有根本就不用SciTE 编辑器的用户,那就得手工来进行注册表的用户Include目录设置,麻烦。

wangms 发表于 2016-3-18 09:20:05

本帖最后由 wangms 于 2016-3-18 09:28 编辑

回复 1# chishingchan


    请问楼主,您这里的注册表安装信息是怎么获得的?是用什么第三方工具从Autoit3安装文件中获得的?另ISS 脚本 Files 段需要完整的文件列表,是在Iss脚本向导中一个一个文件(不会是这样的吧,那不如压缩软件来的方便)加入的吗?

chishingchan 发表于 2016-3-18 13:02:58

回复 24# wangms


    注册表信息是使用 Total Uninstall 6 截取官方安装版(A 及 S)的导出的注册表;再使用自己编写的 REG2ISS.au3 进行转换,文件的列表也是使用自己编写的 Files2iss.au3 进行转换(特殊功能需手动添加)。ISS 本身带压缩功能,安装复制文件也挺快的,你试安装就知道。

chishingchan 发表于 2016-3-18 13:04:14

回复 21# wangms


    官方安装版的注册表修改真的是不包含 Include 目录信息的!

chishingchan 发表于 2016-3-18 13:09:19

回复 21# wangms


   我XP系统平时使用影子保护,没有安装 AutoIt 使用,就算安装过重启也会还原。所以我一般安装在 D 盘上,再配上 INF 脚本文件,每次安装 inf 脚本就等于安装过 AutoIt 了!

setup.inf
AdvancedINF=2.5, "您需要一个新版本的 ADVPACK.DLL 文件"
Signature="$CHICAGO$"


AddReg=添加注册表
DelReg=删除注册表
CopyFiles=复制文件
DelFiles=删除文件
RenFiles=重命名文件
UpdateInis=快捷更新
RegisterOCXs=注册组件


;01=脚本路径
;30=C:\
;24=X:\
;10=X:\WINDOWS
;17=X:\WINDOWS\Inf
;18=X:\WINDOWS\Help
;20=X:\WINDOWS\Fonts
;11=X:\WINDOWS\System32
;12=X:\WINDOWS\System32\Drivers
;52=X:\WINDOWS\System32\Spool\Drivers\W32X86
;53=X:\Documents and Settings\当前用户
;16410=X:\Documents and Settings\当前用户\Application Data
;16422=X:\Program Files
;16427=X:\Program Files\Common Files
;16409=桌面
;16390=收藏夹
;16389=我的文档
;16397=我的音乐
;16423=图片收藏
;16398=我的视频
;16395=开始菜单
;16386=程序菜单
;16391=启动菜单
;
;复制文件=11

[注册组件]
;"目标文件名"

[快捷更新]
Setup.ini,Progman.Groups,,"Dir=""%16409%"""
Setup.ini,Dir,,"""窗口信息工具"",""""""%01%\Au3Info.exe"""""",,,,""%01%"",,""AutoIt v3 窗口信息工具"""
Setup.ini,Progman.Groups,,"Dir1=""%16409%"""
Setup.ini,Dir1,,"""窗口信息"",""""""%01%\CV.exe"""""",,,,""%01%"",,""CV 窗口信息工具"""
Setup.ini,Progman.Groups,,"Dir2=""%16409%"""
Setup.ini,Dir2,,"""Autoit3 反编译"",""""""%01%\Autoit3 Decompiler.exe"""""",,,,""%01%"",,""Autoit3 Decompiler v1.9"""
Setup.ini,Progman.Groups,,"Dir3=""%16409%"""
Setup.ini,Dir3,,"""运行 SciTE"",""""""%01%\SciTE\SciteToolBar.exe"""""",,,,""%01%"",,"""""
;Setup.ini,Progman.Groups,,"Dir=""%16409%"""
;Setup.ini,Dir,,"""快捷方式名"",""""""目标"""" 参数"",,,,""起始位置"",,""备注"""
;
;更新文件名,"节名",[旧键值],[新键值][,0|1|2|3]

[重命名文件]
;新文件名,旧文件名

[删除文件]
;目标文件名[,,,1]

[复制文件]
;目标文件名[,源文件名][,临时文件名][,1|2|4|8|16|32]

[删除注册表]

[添加注册表]
HKCR,".a3x",,,"AutoIt3XScript"
HKCR,".au3","PerceivedType",,"text"
HKCR,".au3",,,"AutoIt3Script"
HKCR,".au3\PersistentHandler",,,"{5e941d80-bf96-11cd-b579-08002b30bfeb}"
HKCR,".au3\ShellNew","FileName",,"Template.au3"
HKCR,"AppID\AutoItX3.DLL","AppID",,"{6E8109C4-F369-415D-AF9A-2AEEFF313234}"
HKCR,"AppID\{6E8109C4-F369-415D-AF9A-2AEEFF313234}",,,"AutoItX3"
HKCR,"AutoIt3Script",,,"AutoIt3 脚本"
HKCR,"AutoIt3Script\DefaultIcon",,,"%01%\Icons\au3script_v10.ico"
HKCR,"AutoIt3Script\Shell",,,"Run"
HKCR,"AutoIt3Script\Shell\Compile with Options",,,"选项编译"
HKCR,"AutoIt3Script\Shell\Compile with Options\Command",,,"""%01%\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe"" /ShowGui /in ""%%l"""
HKCR,"AutoIt3Script\Shell\Compile",,,"直接编译"
HKCR,"AutoIt3Script\Shell\Compile\Command",,,"""%01%\Aut2Exe\Aut2Exe.exe"" /in ""%%l"""
HKCR,"AutoIt3Script\Shell\Edit",,,"编辑脚本 (SciTE)"
HKCR,"AutoIt3Script\Shell\Edit\Command",,,"""%01%\SciTE\SciteToolBar.exe"" ""%%1"""
HKCR,"AutoIt3Script\Shell\Open",,,"打开脚本"
HKCR,"AutoIt3Script\Shell\Open\Command",,,"""%01%\SciTE\SciteToolBar.exe"" ""%%1"""
HKCR,"AutoIt3Script\Shell\Run",,,"运行脚本"
HKCR,"AutoIt3Script\Shell\Run\Command",,,"""%01%\AutoIt3.exe"" ""%%1"" %%*"
HKCR,"AutoIt3Script\Shell\Tidy",,,"Tidy 整理代码"
HKCR,"AutoIt3ScriptBeta\Shell\Compile with Options\Command",,,"""%01%\SciTE\..\AutoIt3.exe"" ""%01%\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3"" /ShowGui /in ""%%l"""
HKCR,"AutoIt3ScriptBeta\Shell\Edit\Command",,,"""%01%\SciTE\SciteToolBar.exe"" ""%%1"""
HKCR,"AutoIt3ScriptBeta\Shell\Open\Command",,,"""%01%\SciTE\SciteToolBar.exe"" ""%%1"""
HKCR,"AutoIt3XScript",,,"AutoIt v3 Encoded Script"
HKCR,"AutoIt3XScript\DefaultIcon",,,"%01%\Icons\au3script_v10.ico"
HKCR,"AutoIt3XScript\Shell",,,"Run"
HKCR,"AutoIt3XScript\Shell\Run",,,"Run Script"
HKCR,"AutoIt3XScript\Shell\Run\Command",,,"""%01%\AutoIt3.exe"" ""%%1"" %%*"
HKCR,"AutoItX3.Control",,,"AutoItX3 Class"
HKCR,"AutoItX3.Control.1",,,"AutoItX3 Class"
HKCR,"AutoItX3.Control.1\CLSID",,,"{1A671297-FA74-4422-80FA-6C5D8CE4DE04}"
HKCR,"AutoItX3.Control\CLSID",,,"{1A671297-FA74-4422-80FA-6C5D8CE4DE04}"
HKCR,"AutoItX3.Control\CurVer",,,"AutoItX3.Control.1"
HKCR,"CLSID\{1A671297-FA74-4422-80FA-6C5D8CE4DE04}","AppID",,"{6E8109C4-F369-415D-AF9A-2AEEFF313234}"
HKCR,"CLSID\{1A671297-FA74-4422-80FA-6C5D8CE4DE04}",,,"AutoItX3 Class"
HKCR,"CLSID\{1A671297-FA74-4422-80FA-6C5D8CE4DE04}\InprocServer32","ThreadingModel",,"Apartment"
HKCR,"CLSID\{1A671297-FA74-4422-80FA-6C5D8CE4DE04}\InprocServer32",,,"%01%\AutoItX\AutoItX3.dll"
HKCR,"CLSID\{1A671297-FA74-4422-80FA-6C5D8CE4DE04}\ProgID",,,"AutoItX3.Control.1"
HKCR,"CLSID\{1A671297-FA74-4422-80FA-6C5D8CE4DE04}\TypeLib",,,"{F8937E53-D444-4E71-9275-35B64210CC3B}"
HKCR,"CLSID\{1A671297-FA74-4422-80FA-6C5D8CE4DE04}\VersionIndependentProgID",,,"AutoItX3.Control"
HKCR,"CLSID\{3D54C6B8-D283-40E0-8FAB-C97F05947EE8}",,,"PSFactoryBuffer"
HKCR,"CLSID\{3D54C6B8-D283-40E0-8FAB-C97F05947EE8}\InProcServer32","ThreadingModel",,"Both"
HKCR,"CLSID\{3D54C6B8-D283-40E0-8FAB-C97F05947EE8}\InProcServer32",,,"%01%\AutoItX\AutoItX3.dll"
HKCR,"Interface\{3D54C6B8-D283-40E0-8FAB-C97F05947EE8}",,,"IAutoItX3"
HKCR,"Interface\{3D54C6B8-D283-40E0-8FAB-C97F05947EE8}\NumMethods",,,"107"
HKCR,"Interface\{3D54C6B8-D283-40E0-8FAB-C97F05947EE8}\ProxyStubClsid",,,"{00020424-0000-0000-C000-000000000046}"
HKCR,"Interface\{3D54C6B8-D283-40E0-8FAB-C97F05947EE8}\ProxyStubClsid32",,,"{3D54C6B8-D283-40E0-8FAB-C97F05947EE8}"
HKCR,"Interface\{3D54C6B8-D283-40E0-8FAB-C97F05947EE8}\TypeLib","Version",,"1.0"
HKCR,"Interface\{3D54C6B8-D283-40E0-8FAB-C97F05947EE8}\TypeLib",,,"{F8937E53-D444-4E71-9275-35B64210CC3B}"
HKCR,"TypeLib\{F8937E53-D444-4E71-9275-35B64210CC3B}\1.0",,,"AutoItX3 1.0 Type Library"
HKCR,"TypeLib\{F8937E53-D444-4E71-9275-35B64210CC3B}\1.0\0\win32",,,"%01%\AutoItX\AutoItX3.dll"
HKCR,"TypeLib\{F8937E53-D444-4E71-9275-35B64210CC3B}\1.0\FLAGS",,,"0"
HKCR,"TypeLib\{F8937E53-D444-4E71-9275-35B64210CC3B}\1.0\HELPDIR",,,"%01%\AutoItX"
HKLM,"SOFTWARE\AutoIt v3\AutoIt","InstallDir",,"%01%"
HKLM,"SOFTWARE\AutoIt v3\AutoIt","Version",,"v3.3.14.2"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Au3Info.exe",,,"%01%\Au3Info.exe"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Au3Info_x64.exe",,,"%01%\Au3Info_x64.exe"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Aut2Exe.exe",,,"%01%\Aut2Exe\Aut2Exe.exe"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Aut2Exe_x64.exe",,,"%01%\Aut2Exe\Aut2Exe_x64.exe"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AutoIt3.exe",,,"%01%\AutoIt3.exe"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AutoIt3_x64.exe",,,"%01%\AutoIt3_x64.exe"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\SciTE.exe",,,"%01%\SciTE\SciTE.exe"
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\AutoItv3","DisplayIcon",,"%01%\AutoIt3.exe,0"
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\AutoItv3","DisplayName",,"AutoIt v3.3.14.2"
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\AutoItv3","DisplayVersion",,"3.3.14.2"
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\AutoItv3","EstimatedSize",0x10001,58,7F,00,00
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\AutoItv3","NoModify",0x10001,01,00,00,00
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\AutoItv3","NoRepair",0x10001,01,00,00,00
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\AutoItv3","Publisher",,"AutoIt Team"
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\AutoItv3","UninstallString",,"%01%\Uninstall.exe"
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\AutoItv3","URLInfoAbout",,"http://www.autoitscript.com/autoit3"
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SciTE4AutoIt3","DisplayIcon",,"%01%\SciTE\SciTE.exe"
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SciTE4AutoIt3","DisplayName",,"SciTE4AutoIt3 15.920.938.0"
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SciTE4AutoIt3","DisplayVersion",,"15.920.938.0"
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SciTE4AutoIt3","NSIS:StartMenuDir",,""
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SciTE4AutoIt3","Publisher",,"Jos van der Zande"
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SciTE4AutoIt3","UninstallString",,"%01%\SciTE\uninst.exe"
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SciTE4AutoIt3","URLInfoAbout",,"http://www.autoitscript.com/autoit3/scite"
HKLM,"SYSTEM\CurrentControlSet\Control\Session Manager\Environment","PSModulePath",0x20000,"%01%\AutoItX"
HKCU,"Environment","SCITE_USERHOME",0x20000,"%01%\AutoIt v3\SciTE"
HKCU,"SOFTWARE\AutoIt v3\Aut2Exe","AllowDecompile",0x10001,01,00,00,00
HKCU,"SOFTWARE\AutoIt v3\Aut2Exe","LastCompression",0x10001,02,00,00,00
HKCU,"SOFTWARE\AutoIt v3\Aut2Exe","LastExeDir",,"My Documents"
HKCU,"SOFTWARE\AutoIt v3\Aut2Exe","LastIcon",,""
HKCU,"SOFTWARE\AutoIt v3\Aut2Exe","LastIconDir",,"%01%\Aut2Exe\Icons"
HKCU,"SOFTWARE\AutoIt v3\Aut2Exe","LastScriptDir",,"My Documents"

chishingchan 发表于 2016-3-18 13:18:37

将文件按照ISS常量文件夹存放,经过转换文件列表、注册表,即可生成ISS脚本,再手动编辑ISS(例如控制文件名称、文件架构、库注册、图标等等)即可编译成安装包。

chishingchan 发表于 2016-3-18 13:28:58

Files2iss.au3 处理文件夹的输出结果:

chishingchan 发表于 2016-3-18 13:33:18

SciTE4AutoIt3 full installer.regWindows Registry Editor Version 5.00




@="\"C:\\Program Files\\AutoIt3\\SciTE\\..\\AutoIt3.exe\" \"C:\\Program Files\\AutoIt3\\SciTE\\AutoIt3Wrapper\\AutoIt3Wrapper.au3\" /ShowGui /in \"%l\""








@="\"C:\\Program Files\\AutoIt3\\SciTE\\..\\AutoIt3.exe\" \"C:\\Program Files\\AutoIt3\\SciTE\\AutoIt3Wrapper\\AutoIt3Wrapper.au3\" /ShowGui /in \"%l\""


@="C:\\Program Files\\AutoIt3\\SciTE\\SciTE.exe"


"DisplayIcon"="C:\\Program Files\\AutoIt3\\SciTE\\SciTE.exe"
"DisplayName"="SciTE4AutoIt3 16.306.1237.0"
"DisplayVersion"="16.306.1237.0"
"NSIS:StartMenuDir"=""
"Publisher"="Jos van der Zande"
"UninstallString"="C:\\Program Files\\AutoIt3\\SciTE\\uninst.exe"
"URLInfoAbout"="http://www.autoitscript.com/autoit3/scite"

"SCITE_USERHOME"=hex(2):43,00,3A,00,5C,00,44,00,6F,00,63,00,75,00,6D,00,65,00,\
6E,00,74,00,73,00,20,00,61,00,6E,00,64,00,20,00,53,00,65,00,74,00,74,00,69,\
00,6E,00,67,00,73,00,5C,00,41,00,64,00,6D,00,69,00,6E,00,69,00,73,00,74,00,\
72,00,61,00,74,00,6F,00,72,00,5C,00,4C,00,6F,00,63,00,61,00,6C,00,20,00,53,\
00,65,00,74,00,74,00,69,00,6E,00,67,00,73,00,5C,00,41,00,70,00,70,00,6C,00,\
69,00,63,00,61,00,74,00,69,00,6F,00,6E,00,20,00,44,00,61,00,74,00,61,00,5C,\
00,41,00,75,00,74,00,6F,00,49,00,74,00,20,00,76,00,33,00,5C,00,53,00,63,00,\
69,00,54,00,45,00,00,00


页: 1 [2] 3 4
查看完整版本: AutoIt v3.3.14.2 官方英文版安装包及脚本