==============================================
here we go .....
=============================================
-----------------------
what is an Autoit Script
------------------------
it is a simple script , made to do jobs automatically , u write down the script (the script is mainly a robot that will tell the system what to do ) , then compile it , the resulting exe will do what u specifed in the code each time the program runs,
----------------------------
What is the relation between Auto it and silent install:
---------------------------
simply , u wil make the installation go smoothly , without ur interaction , the script u make will do the job ..... u may see examples in this topic :
http://www.msfn.org/...showtopic=20197
---------------------
OHH dear , shall i write scripts and think of coding
----------------------
Answer is , NO , u will see in this guide , how will we make scripts for silent installs without writing code.
------------------------
Why and when shall i use autoit for silent install ?
------------------------
when u don't find the silent switch u need , u are pushed to use the autoit method ..
==============NOW LET US GOOO!!!!================
firstly we need the program ,,, get it here
http://www.autoitscript.com/cgi-bin/getfil...it-v3-setup.exe
and we need the Scite tool , to use the script recorder::
Scite
---------
http://www.autoitscript.com/cgi-bin/getfil...iTe4AutoIt3.exe
install both programs ,,,
now go to :
Start >>programs>>autoit V3>>scite>>Script Writer
u will see this :

1- select the installation package which u r going to make the script for , it shall be an EXE which the script will call each time it runs ..........
2- make the check boxes , as made in the pic
3- click the "A" button
once we click the "A" button,the exe(which is the installation package) we specifed will run, and every movement we make on our pc using the keyboard will be recorded,
During the record of this code , Take care of :
1-Avoid Alt+tab, or navigating to othr windows
2- use " Alt+N" to choose "next" ، Alt+y to choose " Yes" , and so on ..
3- u may use the Tab button to navigate between buttons
After u completly installed the application , we have to stop the record operation by clicking the "A" button at the upper left of the screen , now u must see some code written like this ....

Now , we have to add little code to our app , to avoid hassles , and running same application again and again
-------------------------------------
$SF_1 = "app.exe"
If WinExists ( $SF_1 ) Then Exit
AutoItWinSetTitle ( $SF_1)
---------------------------------------
** u may ask , what is this attented for , the answer is , this code is just a safety measure during the testing period , i once used a script which don't have this code (or similiar) and a big trouble occourded , the compiled EXE kept running it self again and again , and at last , 101 process where running on my poor pc
get rid of those processes and i succeded
---------------------------------
replace app.exe by the installation package exe u selected when recording the script, now save the file near by ur EXE package as u see in the pic , then compile the script ....

NOW all is done we have the compiled EXE , try running it now , u will see every thing in the setup going automatically
without ur interaction , once u test and find every thing working good , u may make a RARsfx which will have the compiled EXE to run after the extraction process
This post has been edited by master_mtz: 31 July 2005 - 11:32 PM



Help

Back to top










