MSFN Forum: the guide of "Using autoit for silent install" - 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
  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

the guide of "Using autoit for silent install" The simplest guide u ever seen Rate Topic: -----

#21 User is offline   embe 

  • Junior
  • Pip
  • Group: Members
  • Posts: 81
  • Joined: 04-August 06

Posted 05 September 2006 - 08:39 AM

@master_mtz

man, this is really cool, perfect guide and perfect tool - I wouldn`t believe if somebody tells me this is possible....

Thousands :thumbup


#22 User is offline   Yagermeister 

  • Newbie
  • Group: Members
  • Posts: 16
  • Joined: 28-January 04

Posted 11 October 2006 - 01:24 PM

Hi,

I have used this guide to create a autoit script for Pinnacle studio 9. If i start it manually from the desktop or whereever then it starts to install and works just fine but as soon as i add the whole thing in WPI to install it just starts the installer and then hangs. Does someone perhaps know what this problem can be?

I added the script as attachment here.

Tnx in advance

Attached File(s)

  • Attached File  blaat.au3 (3.51K)
    Number of downloads: 44


#23 User is offline   MHz 

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

Posted 13 October 2006 - 11:35 PM

Yagermeister,

This is your script optimized some.
$SF_1 = "Welcome.exe"

If WinExists ( $SF_1 ) Then Exit
AutoItWinSetTitle ( $SF_1)

Run('Welcome.exe')
_WinWaitActive("Studio 9 Plus - InstallShield Wizard","Select the language ")
Send("{UP}{ENTER}")
_WinWaitActive("Studio 9","Geef de volgende inf")
Send("{TAB}blaat{TAB 3}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX{TAB 3}{SPACE}{TAB 11}{ENTER}")
_WinWaitActive("Studio 9	(Pinnacle Systems - Registratie)","")
Send("{TAB 5}{ALTDOWN}{ALTUP}{DOWN 2}{ENTER}")
_WinWaitActive("Installatie van Windows XP , Version 9.3","Licentieovereenkomst")
Send("{TAB 4}{SPACE}{TAB 3}{ENTER}")
_WinWaitActive("Installatie van Windows XP , Version 9.3","Selecteer het type i")
Send("{ENTER}")
_WinWaitActive("Installatie van Windows XP , Version 9.3","Huidige instellingen")
Send("{ENTER}")
_WinWaitActive("classname=#32770","Bezig met installere")
Send("{PAUSE 5}")
_WinWaitActive("Vraag","Moet er een shortcut")
Send("{ENTER}")
_WinWaitActive("Installatie van Windows XP , Version 9.3","Ja, ik wil mijn comp")
Send("{DOWN}{ENTER}")

Func _WinWaitActive($title, $text = "")
	WinWait($title, $text)
	If Not WinActive($title, $text) Then
		WinActivate($title, $text)
	EndIf
	WinWaitActive($title, $text)
EndFunc

An issue is that you are using a classname for a window title without setting an option to use them as below.
Opt('WinTitleMatchMode', 4)

With that window title, I'm not even sure if you should have it within the script and you just press the (PAUSE) keys 5 times? The classname title looks like an explorer window which you can just use WinClose on. I would assume by looking at it that the rest does looks normal.

Make sure that a window called "Welcome.exe" is not running when you start your script as it will exit as your first few lines will ensure that.

If possible, you may find it better to use AutoItMacroGenerator to generate a script for installations using Control*() functions. AutoItMacroGenerator is an included tool in CMenu, SendToA3X, or the Scite4AutoIt3 editor.

Edit:
SendToA3X v1.1 has now an item to tidy Au3Recorder generated scripts like the above code as shown above as easy as a wink. ;)

This post has been edited by MHz: 14 October 2006 - 01:36 AM


#24 User is offline   fozzy2005 

  • Group: Members
  • Posts: 1
  • Joined: 22-October 06

Posted 22 October 2006 - 06:50 AM

im a complete noob to all this, and ive managed to follow our instructions, is there some were that will give me a tutorial on creating a rarsfx, cant find one, and after trying to figure it out for the past hour is gettin annoying!

thanks for the tutorial :)

#25 User is offline   Inferi0r 

  • Little dude
  • PipPip
  • Group: Members
  • Posts: 180
  • Joined: 28-July 06

Posted 23 October 2006 - 09:52 AM

I have a question about silent installs maked with Autoit Scite Script Writer.

Is it possible that you don't see the install screen?

#26 User is offline   Plamdi 

  • Junior
  • Pip
  • Group: Members
  • Posts: 82
  • Joined: 22-March 06

Posted 24 October 2006 - 07:20 PM

View Postarco, on Oct 24 2006, 01:52 AM, said:

I have a question about silent installs maked with Autoit Scite Script Writer.

Is it possible that you don't see the install screen?
No it isn't, the only way to do that is by compleatly rewriting the installation package.

#27 User is offline   Core3Trio 

  • Group: Members
  • Posts: 2
  • Joined: 27-April 08

Posted 01 May 2008 - 09:45 AM

wow... thanks for the guide.. it looks like not hard for noobs like me..

but,the image in page 1 is already deleted.. could u upload another one,please?

Thanks... :D

#28 User is offline   dottbin 

  • Group: Members
  • Posts: 7
  • Joined: 12-September 08

Posted 15 October 2008 - 03:26 PM

hi mtz,
I need your help :blushing:
when I launched au3record I must flag also 'record mouse' as if I unflag it, after stopping au33record, I obtain only following lines:
Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)
Run('D:\Sotware indispensabili\WinRAR.v3.71.Regged.Italiano-YAG\WinRAR.v3.71.Regged.Italiano-YAG\wrar371it.exe')


meanwhile if I flag 'record mouse' I obtained all script as follow:
Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)
Run('D:\Sotware indispensabili\WinRAR.v3.71.Regged.Italiano-YAG\WinRAR.v3.71.Regged.Italiano-YAG\wrar371it.exe')
WinWait("WinRAR 3.71","Copyright © 1993-200")
If Not WinActive("WinRAR 3.71","Copyright © 1993-200") Then WinActivate("WinRAR 3.71","Copyright © 1993-200")
WinWaitActive("WinRAR 3.71","Copyright © 1993-200")
MouseMove(215,381)
MouseDown("left")
MouseUp("left")
WinWait("Configurazione WinRAR","Associa a WinRAR arc")
If Not WinActive("Configurazione WinRAR","Associa a WinRAR arc") Then WinActivate("Configurazione WinRAR","Associa a WinRAR arc")
WinWaitActive("Configurazione WinRAR","Associa a WinRAR arc")
MouseMove(34,95)
MouseDown("left")
MouseUp("left")
MouseMove(30,95)
MouseDown("left")
MouseUp("left")
MouseMove(201,378)
MouseDown("left")
MouseUp("left")
WinWait("Configurazione WinRAR","WinRAR è stato insta")
If Not WinActive("Configurazione WinRAR","WinRAR è stato insta") Then WinActivate("Configurazione WinRAR","WinRAR è stato insta")
WinWaitActive("Configurazione WinRAR","WinRAR è stato insta")
MouseMove(251,389)
MouseDown("left")
MouseUp("left")
WinWait("WinRAR","FolderView")
If Not WinActive("WinRAR","FolderView") Then WinActivate("WinRAR","FolderView")
WinWaitActive("WinRAR","FolderView")
MouseMove(783,14)
MouseDown("left")
MouseUp("left")


where is my mistake?
can you help me?
thank in advanced
dottBin

#29 User is offline   chyronn 

  • Still A Noob
  • Pip
  • Group: Members
  • Posts: 90
  • Joined: 12-October 04

Posted 15 October 2008 - 09:21 PM

you need to make sure the "Record Window Text" option is ticked and "Record Mouse" is unticked

#30 User is offline   dottbin 

  • Group: Members
  • Posts: 7
  • Joined: 12-September 08

Posted 16 October 2008 - 12:13 AM

thanks chyronn for your answer.
Anyway I found my mistake: during installation I used mouse instead of keyboard

now I wolud like to hide installation screen during installation. Any suggestion?

BR,
Gianni

#31 User is offline   simurqq 

  • Newbie
  • Group: Members
  • Posts: 49
  • Joined: 03-January 09

Posted 17 February 2009 - 06:50 AM

See above for Plamdi's post. I've personally tried to hide setup windows for countless number of times - no way!!!

#32 User is offline   chaoticyeshua 

  • Junior
  • Pip
  • Group: Members
  • Posts: 72
  • Joined: 30-March 06

Posted 20 February 2009 - 02:51 PM

If it's that big of a deal, you could always just move the window off screen using something like this:

WinWait("Title","Text")
WinMove("Title","Text",-1000,-1000)


This way it'll wait for the window to exist, then move it off of the screen where it is no longer visible. It will show for a split second, then be moved.

This post has been edited by chaoticyeshua: 20 February 2009 - 02:54 PM


#33 User is offline   jamesbebby 

  • Member
  • PipPip
  • Group: Members
  • Posts: 176
  • Joined: 26-February 09

Posted 04 March 2009 - 12:44 AM

hi, whats the second progarm link not workin?
cheers james :thumbup

#34 User is offline   dcduque 

  • Group: Members
  • Posts: 2
  • Joined: 07-December 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 December 2012 - 07:56 AM

Thank you! It is very useful to me, I already tried it but did not work, I guess there's some information on the images that I can't see, why can't I see the pictures?

Another thing, I am using Windows 7 (x64) it seems to have an incompatibility error with Scite, so I had to install Microsoft Visual C++ 2010 Redistributable Package (x86) and copy msvcr100.dll from C:WindowsSysWOW64 to C:WindowsSystem32 and it worked :) in case anyone has the same problem.

By the way, the error I am having is that the line which executes the installer replaces the actual name of the installer for the name of the script. I would appreciate it if anyone knows what I should do, thanks.

#35 User is offline   dcduque 

  • Group: Members
  • Posts: 2
  • Joined: 07-December 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 December 2012 - 07:58 AM

View Postjamesbebby, on 04 March 2009 - 12:44 AM, said:

hi, whats the second progarm link not workin?
cheers james :thumbup


Also had the same confusion, I downloaded the program from here: http://www.autoitscr...iTE4AutoIt3.exe

#36 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,690
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 07 December 2012 - 09:27 AM

View Postdcduque, on 07 December 2012 - 07:56 AM, said:

By the way, the error I am having is that the line which executes the installer replaces the actual name of the installer for the name of the script. I would appreciate it if anyone knows what I should do, thanks.


Post a code snippet.

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

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



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