Guest 17901 Posted September 6, 2004 Share Posted September 6, 2004 I have a question I cant dissolve. When I use AutoIt to create a self install application such as Nero (version 6.3.1.20) & Realplay10, the visible text in the AutoIt Window Spy was the same during the software install. I cant decide capture the exact window, the windows were the: WinWait ( "Nero Burning ROM Installation Wizard"), WinActivate ( "Nero Burning ROM Installation Wizard "), I cant send the correct key commands between two windows because the visible text was the same. Please tell me how to dissolve this problem. Attached a InstNero.au3, Nero installation script. You can check it. ; AutoIt Version: 3.x ; ; language: Chinese ; ; Platform: Win9x/Me/2K/XP ; ; Author: Xiaoguang Fu (xgfu@21cn.com, QQ: 2154096) ; ; Note: Install Nero 6.3.1.20 and Chinese LanguagePack ; ; If FileExists("C:\Program Files\Ahead\Nero\Nero.exe") Then $ver = FileGetVersion("C:\Program Files\Ahead\Nero\Nero.exe") MsgBox(0, "Version Information", "Your Nero Version is: "&$ver, 2 ) EndIf Sleep ( 3000 ) Run ( "Nero63120.exe" ) ; Installation Wizard WinWait ( "Nero Burning ROM安装向导" ) WinActivate ( "Nero Burning ROM安装向导" ) Send ( "{ENTER}" ) ; Lisence Agreement WinWait ( "Nero Burning ROM安装向导" ,"许可证协议。" ) WinActivate ( "Nero Burning ROM安装向导" ,"许可证协议。" ) Send ( "{TAB}" ) Send ( "{UP}" ) Send ( "{ENTER}" ) ; Customer Information WinWait ( "Nero Burning ROM安装向导" , "客户信息。" ) WinActivate ( "Nero Burning ROM安装向导" , "客户信息。" ) Send ( "{ENTER}" ) ; After Long Filecopy Installation Process, I can't send the key command below: Sleep( 30000 ) ; Installation Complete, Problem exist between these two windows. WinWait ( "Nero Burning ROM安装向导") WinActivate ( "Nero Burning ROM安装向导") ; These command can't send correctly. Send ( "{TAB}" ) Send("{SPACE}") Send ( "{TAB}" ) Send("{SPACE}") Send ( "{TAB}" ) Send("{SPACE}") Send ( "{TAB}" ) Send ( "{ENTER}" ) ; Installation LanguagePack Run ( "NBR63120CHS.exe" ) WinWait ( "Nero语言包安装向导" ) WinActivate ( "Nero语言包安装向导" ) Send ( "{ENTER}" ) WinWait ( "Nero语言包安装向导" , "许可证协议。" ) WinActivate ( "Nero语言包安装向导" , "许可证协议。" ) Send ( "{TAB}" ) Send ( "{UP}" ) Send ( "{TAB 2}" ) Send ( "{ENTER}" ) Sleep ( 10000 ) WinWait ( "Nero语言包安装向导" ) WinActivate ( "Nero语言包安装向导" ) Send ( "{ENTER}" ) DirCreate ( @ProgramsCommonDir&"\光盘软件" ) FileCopy ( @ProgramsCommonDir&"\Nero\Nero 6 Ultra Edition\Nero Burning ROM.lnk", @ProgramsCommonDir&"\光盘软件\Nero Burning ROM.lnk",1) MsgBox ( 4096, "恭喜", "Nero 6.3.1.20 中文版已成功安装注册。" , 2 ) Exit Link to comment Share on other sites More sharing options...
ezzetabi Posted September 6, 2004 Share Posted September 6, 2004 Nero have its installations arguments... RegWrite() in the registry the serial number and Run() Nero60015.exe /Silent /Noreboot That will install with no question of any kind. Also languages pack have similar arguments. Link to comment Share on other sites More sharing options...
konan Posted September 6, 2004 Share Posted September 6, 2004 you are from china ?Why don't you go to www.JUJUMao.com ?The best way to install nero automate is use /Silent /Norebootthen write reg file. you can get more information of silent istall from http://www.cctips.com/Unattended/applications.htmor read 电脑爱好者第13期 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now