Jump to content

Realplay10, Nero Auto install question


Guest 17901
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...