tresans Posted November 8, 2005 Posted November 8, 2005 (edited) I have made a autoit of the Dutch Nero 7012 everything goes fine till it want to install, autoit doesnt push the Install button.my hair is falling down from scratching my head this is my autoit:All the credits goes to Dynaletik cause I changed the German letters to DutchCould someone check this please..First I registered then autoitAutoItSetOption("TrayIconHide", 1)BlockInput(1)run("SetupX.exe")WinWait("Installatiewizard voor Nero 7 Demo", "Welkom bij de installatiewizard voor Nero 7 Demo")sleep(6000)controlclick("Installatiewizard voor Nero 7 Demo", "Vol&gende >", "Button1")WinWait("Installatiewizard voor Nero 7 Demo", "Licentieovereenkomst")controlclick("Installatiewizard voor Nero 7 Demo", "&Ik ga akkoord met de voorwaarden van de Gebruiksrechtovereenkomst", "Button6")controlclick("Installatiewizard voor Nero 7 Demo", "Vol&gende >", "Button3")WinWait("Installatiewizard voor Nero 7 Demo", "Klanteninformatie")controlclick("Installatiewizard voor Nero 7 Demo", "Vol&gende >", "Button1")WinWait("Installatiewizard voor Nero 7 Demo", "Type setup")controlclick("Installatiewizard voor Nero 7 Demo", "&Aangepast", "Button3")controlclick("Installatiewizard voor Nero 7 Demo", "Vol&gende >", "Button5")WinWait("Installatiewizard voor Nero 7 Demo", "Taalselectie")controlclick("Installatiewizard voor Nero 7 Demo", "Vol&gende >", "Button3")WinWait("Installatiewizard voor Nero 7 Demo", "Aangepaste setup")controlclick("Installatiewizard voor Nero 7 Demo", "Vol&gende >", "Button5")WinWait("Installatiewizard voor Nero 7 Demo", "Klaar voor de installatie van het programma") <------- controlclick("Installatiewizard voor Nero 7 Demo", "&Installeren", "Button1")WinWait("Installatiewizard voor Nero 7 Demo", "Bestandsextensies")controlclick("Installatiewizard voor Nero 7 Demo", "Vol&gende >", "Button6")WinWait("Installatiewizard voor Nero 7 Demo", "Installatiewizard voltooid")controlclick("Installatiewizard voor Nero 7 Demo", "&Voltooien", "Button1")WinWait("Informatie over Nero 7 Demo")controlclick("Informatie over Nero 7 Demo", "&Nee", "Button2")BlockInput(0)Regards Edited November 8, 2005 by tresans
tresans Posted November 9, 2005 Author Posted November 9, 2005 Wow 25 times read no answers or am i not being patient. regardsMaybe someone could compare.
Sonic Posted November 9, 2005 Posted November 9, 2005 (edited) Why note use Send function instead ControlClick ?Just use Send("!s") where ! is ALT keyboard button and s is for "Suivant" button (because French but for english is N for next ... and i for Install ..)In fact replace letter by underlined letter in setup ...All works fine here ... http://www.msfn.org/board/index.php?s=&sho...ndpost&p=413641 Edited November 9, 2005 by sonic
MHz Posted November 9, 2005 Posted November 9, 2005 (edited) Why note use Send function instead ControlClick ?This is like taking a step backwards. Control* functions are so much more reliable. @tresansUsing the Control* functions shows that using BlockInput() is useless to use as you are not going to disturb the install. If you use Mouse* functions or Send then you could use BlockInput() as those functions can be disturbed.Use Au3Info to get the text to correct your script. The text is Case sensitive for window titles and text.Edit: Here is my silent method with AutoIt attached as for a 3rd different method._Nero_v7.0.1.2.html Edited November 9, 2005 by MHz
Dynaletik Posted November 9, 2005 Posted November 9, 2005 Yesm the BlockInput can be removed. I am not an AutoIT professional. I just wrote the german script to get Nero installed with the components I wanted, but now I use keytotimes method, because with it you can also shrink the install. Please check the installerbuttons with Au3Info like MHz said. I can't see a problem at the install step.
BoardBabe Posted November 9, 2005 Posted November 9, 2005 I wrote an autoit script also -for the Norwegian Nero 7, and noticed that the button numbers differs from the english installer.
tresans Posted November 9, 2005 Author Posted November 9, 2005 Tnx for replys gusI have checked the function button a couple of times with autoit window info but cant find anything else.I have registered the program and tried it normally but now i must register again.....wthThis is my register.reg.[HKEY_LOCAL_MACHINE\SOFTWARE\Ahead\Installation\Families\Nero 7\Info]"Serial7_1131499399"="*xxxxxxxxxxxxxxxxxxxxxxxxxxxxx""Version"="7.0.1.2""User"="Iedereen""Company"="THUIS"If I register it and close the program, i must register again.Is my register "dirty"or something else?Regards
Dynaletik Posted November 9, 2005 Posted November 9, 2005 This is what I use for registering Nero:[HKEY_LOCAL_MACHINE\SOFTWARE\Ahead\Installation\Families\Nero 7\Info]"Serial7"="*xxxxxxxxxxxxxxxxxxxxxx""User"="USER""Company"="COMPANY"
BoardBabe Posted November 9, 2005 Posted November 9, 2005 (edited) Yeh, don' include the _1131499399 part of your regfile[HKEY_LOCAL_MACHINE\SOFTWARE\Ahead\Installation\Families\Nero 7\Info]"Serial7_1131499399"="*xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" Edited November 9, 2005 by BoardBabe
tresans Posted November 9, 2005 Author Posted November 9, 2005 Its really weird ,if I type the serial in Nero it accepts ,if I import with a .REG file it writes in the registry but its keep asking for serial.Can I have a .REG file of yours without serial number (doh),yes i know whats the difference.But I really dont know how this is possible and how to solve it.regards
MHz Posted November 10, 2005 Posted November 10, 2005 I have issues with registering by adding to the registry. Nero does not like the serial if it does not generate that key number to suit. Here is what I have for starting Nero after the install.; User Info for registration window.$name = @UserName$company = 'Company'$serial = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; Execute Nero to register.$key = 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Nero.exe'$fullpath_nero = RegRead($key, '')If Not @error Then $pid = Run($fullpath_nero) $title = 'Welcome to Nero' $text = 'License Agreement'; License Agreement Window If WinWait($title, $text, 20) Then ControlCommand($title, $text, 'Button5', 'Check', '') If ControlCommand($title, $text, 'Button4', 'IsEnabled', '') Then ControlClick($title, $text, 'Button4') ; Registration Window $text = 'Registration' WinWait($title, $text) ControlSetText($title, $text, 'Edit1', $name) ControlSetText($title, $text, 'Edit3', $company) ControlSetText($title, $text, 'Edit3', $serial) If ControlCommand($title, $text, 'Button4', 'IsEnabled', '') Then ControlClick($title, $text, 'Button4') WinWaitClose($title) ProcessClose($pid) Else WinClose($title) EndIf Else WinClose($title) EndIf EndIfEndIfHaving problems with no shortcuts for silent installing. Config file seems to not work with serial. A very buggy installer.
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