【已解决】第 4 版-AutoIt v3.3.14.2有没有绿化程序?
本帖最后由 真乏味 于 2016-5-15 15:10 编辑2016.05.10:
第 4 版-AutoIt v3.3.14.2有没有绿化程序?
就像以前的"3.3.11.X 汉化版(SVN.R1071)"有个AU3TOOL.exe,重装系统后运行“AU3TOOL.exe /s”绿化,就不用重新安装了。
补充:系统:WinXP 32位。
;===========================================
2016.05.14:
解决方法1:感谢2楼的回答
使用A大的“AuVerManage_1.2” http://www.autoitx.com/thread-50343-1-2.html
但,如果安装的au3程序目录发生改变的话,会有点小问题,比如开始将“第 4 版-AutoIt v3.3.14.2”安装在“G:\AU3_3314\AutoIt3”目录下,重装系统后将AutoIt3文件夹剪切到了“D:\1\”目录下,程序路径变成“D:\1\AutoIt3”,这时运行A大的“AuVerManage_1.2”后,SciTE的变量还在原来的目录(G:\AU3_3314\AutoIt3)。
不过自己改一下注册表就可以解决:1.按Win+R,输入regedit,确定,打开了“注册表编辑器”,2.搜索原目录“G:\AU3_3314\AutoIt3”(不含引号),替换成新目录“D:\1\AutoIt3”(不含引号),一共是2处地方。
解决方法2:感谢6楼的回答
用6楼的代码保存成setup.inf,将setup.inf放到au3程序安装目录下,鼠标右键点击setup.inf,点安装。
但,使用这个方法有几个新问题:
1.如何让双击.au3文件时默认用SciTE编辑而不是运行
2.如何卸载(当然可以用A大的“AuVerManage_1.2”,不过安装时用了.inf文件,卸载也想用一下.inf文件)。
期待各位的答复。
;===========================================
2016.05.15:
测试系统:WinXPsp3 32位。
解决方法:
1a.使用A大的“AuVerManage_1.2” http://www.autoitx.com/thread-50343-1-2.html
或者
1b.用6楼的代码保存成setup.inf,将setup.inf放到au3程序安装目录下,鼠标右键点击setup.inf,点安装。
以上两种方法目的相同,使用一种即可,目的是把au3程序关联注册到系统中。
2.如果"编译脚本"或“运行脚本”或“编辑脚本”时出现错误,例如:
请打开“AuVerManage_1.2”,点编辑菜单:
将里面的内容改成:*Edit |编辑脚本(SCITE) |"D:\1\AutoIt3\SciTE\SciteToolBar.exe" "%1"
Compile |编译脚本(带进度) |"D:\1\AutoIt3\Aut2Exe\Aut2Exe.exe" /in "%l"
GUICompile |编译脚本(带选项) |"D:\1\AutoIt3\AutoIt3.exe" "D:\1\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /ShowGui /in "%l"
Open |编辑脚本(记事本) |"C:\WINDOWS\system32\notepad.exe" "%1"
Run |运行脚本 |"D:\1\AutoIt3\AutoIt3.exe" "%1" %*
其中前面的*表示用鼠标双击.au3文件时用SCITE编辑脚本,如果需要双击运行的话就把*放到Run前面。
"D:\1\AutoIt3"是我的安装目录,把它改成你自己的安装目录。
然后点击“保存并刷新列表”,再点击“应用当前”即可。
;===========================================
感谢即即、chishingchan、131738、afan。 回复 1# 真乏味
用A大的工具可以满足你的要求。
http://www.autoitx.com/thread-50343-1-2.html http://www.autoitx.com/thread-50343-1-2.html 这个可以有的哟~~{:face (125):} 回复 2# 即即
谢谢啊,我试试看。。 自用的脚本,请放在 AutoIt3 目录下,右击运行即可!
Signature="$CHICAGO$"
AddReg=添加注册表
UpdateInis=添加快捷方式
[添加快捷方式]
Setup.ini,Progman.Groups,,"Dir=""%16407%\AutoIt v3"""
Setup.ini,Dir,,"""AutoIt 帮助文件"","""""""%1%\AutoIt.chm""""""",,,,""%1%"",,"""""
Setup.ini,Dir,,"""AutoIt 窗口信息"","""""""%1%\Au3Info.exe""""""",,,,""%1%"",,"""""
Setup.ini,Dir,,"""SciTE 脚本编辑器"","""""""%1%\SciTE\SciTE.exe""""""",,,,""%1%\SciTE"",,"""""
Setup.ini,Dir,,"""编译脚本"","""""""%1%\Aut2Exe\Aut2exe.exe""""""",,,,""%1%\Aut2Exe"",,"""""
Setup.ini,Dir,,"""检查更新"","""""""%1%\AutoIt3.exe""""" """"%1%\Extras\AutoUpdateIt\AutoUpdateIt.au3"""""",,,,""%1%\SciTE"",,"""""
Setup.ini,Dir,,"""运行脚本"","""""""%1%\AutoIt3.exe""""""",,,,""%1%"",,"""""
Setup.ini,Progman.Groups,,"Dir2=""%16400%"""
Setup.ini,Dir2,,"""AutoIt 窗口信息"","""""""%1%\Au3Info.exe""""""",,,,""%1%"",,"""""
[添加注册表]
;AutoItX3.dll
HKCR,"AppID\AutoItX3.DLL","AppID",,"{6E8109C4-F369-415D-AF9A-2AEEFF313234}"
HKCR,"AppID\{6E8109C4-F369-415D-AF9A-2AEEFF313234}",,,"AutoItX3"
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",,,"%1%\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",,,"%1%\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",,,"%1%\AutoItX\AutoItX3.dll"
HKCR,"TypeLib\{F8937E53-D444-4E71-9275-35B64210CC3B}\1.0\FLAGS",,,"0"
HKCR,"TypeLib\{F8937E53-D444-4E71-9275-35B64210CC3B}\1.0\HELPDIR",,,"%1%\AutoItX"
;Setup
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,"AutoIt3Script",,,"AutoIt v3 脚本"
HKCR,"AutoIt3Script\DefaultIcon",,,"%1%\Icons\au3script_v10.ico"
HKCR,"AutoIt3Script\Shell",,,"Run"
HKCR,"AutoIt3Script\Shell\Compile with Options",,,"选项编译"
HKCR,"AutoIt3Script\Shell\Compile with Options\Command",,,"""%1%\SciTE\..\AutoIt3.exe"" ""%1%\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3"" /ShowGui /in ""%%l"""
HKCR,"AutoIt3Script\Shell\Compile",,,"编译脚本"
HKCR,"AutoIt3Script\Shell\Compile\Command",,,"""%1%\Aut2Exe\Aut2Exe.exe"" /in ""%%l"""
HKCR,"AutoIt3Script\Shell\Edit",,,"编辑脚本"
HKCR,"AutoIt3Script\Shell\Edit\Command",,,"""%1%\SciTE\SciTE.exe"" ""%%1"""
HKCR,"AutoIt3Script\Shell\Open",,,"打开脚本"
HKCR,"AutoIt3Script\Shell\Open\Command",,,"""%1%\SciTE\SciTE.exe"" ""%%1"""
HKCR,"AutoIt3Script\Shell\Run",,,"运行脚本"
HKCR,"AutoIt3Script\Shell\Run\Command",,,"""%1%\AutoIt3.exe"" ""%%1"" %%*"
HKCR,"AutoIt3XScript",,,"AutoIt v3 编码脚本"
HKCR,"AutoIt3XScript\DefaultIcon",,,"%1%\Icons\au3script_v10.ico"
HKCR,"AutoIt3XScript\Shell",,,"Run"
HKCR,"AutoIt3XScript\Shell\Run",,,"运行脚本"
HKCR,"AutoIt3XScript\Shell\Run\Command",,,"""%1%\AutoIt3.exe"" ""%%1"" %%*"
HKCU,"Environment","SCITE_USERHOME",0x20000,"%16412%\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",,"%1%\Aut2Exe\Icons"
HKCU,"SOFTWARE\AutoIt v3\Aut2Exe","LastScriptDir",,"My Documents"
HKLM,"SOFTWARE\AutoIt v3\AutoIt","InstallDir",,"%1%"
HKLM,"SOFTWARE\AutoIt v3\AutoIt","Version",,"v3.3.14.2"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Au3Info.exe",,,"%1%\Au3Info.exe"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Au3Info_x64.exe",,,"%1%\Au3Info_x64.exe"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Aut2Exe.exe",,,"%1%\Aut2Exe\Aut2Exe.exe"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Aut2Exe_x64.exe",,,"%1%\Aut2Exe\Aut2Exe_x64.exe"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AutoIt3.exe",,,"%1%\AutoIt3.exe"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AutoIt3_x64.exe",,,"%1%\AutoIt3_x64.exe"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\SciTE.exe",,,"%1%\SciTE\SciTE.exe"
HKLM,"SYSTEM\CurrentControlSet\Control\Session Manager\Environment","PSModulePath",0x20000,"%1%\AutoItX"
补充:将以上代码保存为 setup.inf 后右击 setup.inf 选择安装。 本帖最后由 真乏味 于 2016-5-14 18:28 编辑
回复 7# chishingchan
谢谢您的回复啊,试了下您的方法,效果不错。
但还有几个问题想请教:
1.如何让双击.au3文件时默认用SciTE编辑而不是运行
2.如果您还有用来卸载的.inf文件麻烦也发一下吧。
再次感谢。 本帖最后由 131738 于 2016-5-14 18:43 编辑
回复chishingchan
谢谢您的回复啊,试了下您的方法,效果不错。
但还有几个问题想请教:
1.如何让双击 ...
真乏味 发表于 2016-5-14 17:58 http://www.autoitx.com/images/common/back.gif
1.如何让双击.au3文件时默认用SciTE编辑而不是运行
安装第一界面不是有个单选框吗? 不过 Afan 的版本管理可能没有照顾到这个注册表修改.
解决方法: SciTE 窗口工具菜单中打开 "编辑器设置", 第一选项页顶部有这个选项设置.......... 本帖最后由 afan 于 2016-5-14 19:00 编辑
1.如何让双击.au3文件时默认用SciTE编辑而不是运行
安装第一界面不是有个单选框吗? 不过 Afan 的版 ...
131738 发表于 2016-5-14 18:42 http://www.autoitx.com/images/common/back.gif
肯定有的,而且非常简单快捷… 本帖最后由 131738 于 2016-5-14 19:02 编辑
补充:将以上代码保存为 setup.inf 后右击 setup.inf 选择安装。
chishingchan 发表于 2016-5-13 22:38 http://www.autoitx.com/images/common/back.gif
你的这个 inf 文件能用于 NSIS 工具中吗? 特别是 72 行的 "Environment" 的注册能否不重启系统而立即生效?
afan 发表于 2016-5-14 18:52 http://www.autoitx.com/images/common/back.gif
呵呵, 抱歉, 我没注意到........ 肯定有的,而且非常简单快捷…
afan 发表于 2016-5-14 18:52 http://www.autoitx.com/images/common/back.gif
怎么截图不在了......... 怎么截图不在了.........
131738 发表于 2016-5-14 19:04 http://www.autoitx.com/images/common/back.gif
截图字太模糊不贴也罢呵呵~ 知道功能存在就行了… 截图字太模糊不贴也罢呵呵~ 知道功能存在就行了…
afan 发表于 2016-5-14 20:03 http://www.autoitx.com/images/common/back.gif
原来这样啊, 知道了.......
页:
[1]
2