MSFN Forum: Help!: Create install Nero 10 unattended with autoit - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Help!: Create install Nero 10 unattended with autoit Rate Topic: -----

#1 User is offline   Mayoral 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 10-May 09

Posted 07 May 2010 - 01:02 PM

Hi guys!!!

I try to create au3 for nero 10 multimedia for a unattended install. Install nero 10 with one click. But my au3 not work fine! Can you help me!!?

; ----------------------------------------------------------------------------
;
; Nero10 - Install by Mayoral
;
; ----------------------------------------------------------------------------


Run("setup.exe")
WinWaitactive("[CLASS:#32770]")
ControlClick("InstallShield Wizard","","[CLASS:Button; TEXT:Instalar; INSTANCE:1]")
WinWaitactive("Nero 10 Lite - InstallShield Wizard", "&Siguiente")
Send("{ENTER}")
WinWaitactive("Nero 10 Lite - InstallShield Wizard", "&No")
Send("{ENTER}")
Sleep(5000)
WinWaitactive("Nero 10 Lite - InstallShield Wizard", "&Siguiente")
Send("{ENTER}")
WinWaitactive("Nero 10 Lite - InstallShield Wizard", "&Siguiente")
Send("!e")
Send("{ENTER}")
WinWaitActive("Nero 10 Lite - InstallShield Wizard", "Com&pleta")
Send("{ENTER}")
WinWaitActive("Nero 10 Lite - InstallShield Wizard", "Programa para la mejora de los productos de Nero")
ControlClick("Nero 10 Lite - InstallShield Wizard","","[CLASS:Button; TEXT:No, gracias.; INSTANCE:3]")
ControlClick("Nero 10 Lite - InstallShield Wizard","","[CLASS:Button; TEXT:&Siguiente; INSTANCE:5]")
WinWaitActive("Nero 10 Lite - InstallShield Wizard", "&Instalar")
Send("{ENTER}")


#2 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 08 May 2010 - 07:26 AM

Hi Mayoral,

I am going to guess the issue as you explained little and I am not testing Nero. So hopefully these changes I made may help. The 1st WinWaitActive does not match the following ControlClick title so I am guessing it is incorrect so I changed it from the #32770 class which IIRC is an explorer window to "InstallShield Wizard". I changed WinWaitActive functions to use the _WinWaitActive UDF which will wait for the window, activate the window and then wait until it is active. Using the UDF may help prevent the script from stalling if the window does not activate for some reason. I added use of the ProcessID for existence check and as a wait for the installation to finish. If the Run function errors or the ProcessID does not exist then the script will exit with code 1. Added TrayIconDebug option so if the script stalls, then move the mouse over the tray icon to see which line that the script has stalled at.
; ----------------------------------------------------------------------------
;
; Nero10 - Install by Mayoral
;
; ----------------------------------------------------------------------------

; shows current line processed in tray icon
Opt("TrayIconDebug", True)

$pid = Run("setup.exe")
; proceed if not error and the Process ID exists
If Not @error And ProcessExists($pid) Then
	; changed WinWaitActive functions to use _WinWaitActive UDF below to force activation
	_WinWaitactive("InstallShield Wizard")
	ControlClick("InstallShield Wizard", "", "[CLASS:Button; TEXT:Instalar; INSTANCE:1]")
	_WinWaitactive("Nero 10 Lite - InstallShield Wizard", "&Siguiente")
	Send("{ENTER}")
	_WinWaitactive("Nero 10 Lite - InstallShield Wizard", "&No")
	Send("{ENTER}")
	Sleep(5000)
	_WinWaitactive("Nero 10 Lite - InstallShield Wizard", "&Siguiente")
	Send("{ENTER}")
	_WinWaitactive("Nero 10 Lite - InstallShield Wizard", "&Siguiente")
	Send("!e")
	Send("{ENTER}")
	_WinWaitActive("Nero 10 Lite - InstallShield Wizard", "Com&pleta")
	Send("{ENTER}")
	_WinWaitActive("Nero 10 Lite - InstallShield Wizard", "Programa para la mejora de los productos de Nero")
	ControlClick("Nero 10 Lite - InstallShield Wizard","","[CLASS:Button; TEXT:No, gracias.; INSTANCE:3]")
	ControlClick("Nero 10 Lite - InstallShield Wizard","","[CLASS:Button; TEXT:&Siguiente; INSTANCE:5]")
	_WinWaitActive("Nero 10 Lite - InstallShield Wizard", "&Instalar")
	Send("{ENTER}")
	; wait for installer process to close
	ProcessWaitClose($pid)
Else
	; exit with code 1
	Exit 1
EndIf

Exit

Func _WinWaitActive($title, $text = "")
	; window: wait, activate and then wait until active
	WinWait($title, $text)
	WinActivate($title, $text)
	WinWaitActive($title, $text)
EndFunc


#3 User is offline   Mayoral 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 10-May 09

Posted 08 May 2010 - 07:51 AM

Million of thanks MHz!!!

Works perfect! :thumbup

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy