ricktendo Posted August 2, 2007 Share Posted August 2, 2007 hi all , i am making this little guide to help making autoit scripts , to avoid the troubles of finding switches and so on .....==============================================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/board/index.php?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 herehttp://www.autoitscript.com/cgi-bin/getfil...it-v3-setup.exeand we need the Scite tool , to use the script recorder::Scite---------http://www.autoitscript.com/cgi-bin/getfil...iTe4AutoIt3.exeinstall both programs ,,, now go to :Start >>programs>>autoit V3>>scite>>Script Writeru 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 pic3- click the "A" buttononce 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 windows2- 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 ExitAutoItWinSetTitle ( $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 :no: , i used taskkill to get rid of those processes and i succeded :thumbup ---------------------------------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 processI found this useful when I cant find any silent switches for my installers :thumb_yello: Quote Link to comment Share on other sites More sharing options...
Helmi Posted August 2, 2007 Share Posted August 2, 2007 The pics aren't showing up, unfortunately...(I'd like to use this!) Quote Link to comment Share on other sites More sharing options...
ricktendo Posted August 2, 2007 Author Share Posted August 2, 2007 I think I got it correct Quote Link to comment Share on other sites More sharing options...
xms3500 Posted September 23, 2007 Share Posted September 23, 2007 A great tutorial ricktendo64, but I'm having a little bit of trouble, when Autoit is recording the install at the end it has finish that you would normally click, I have tried Alt+F with no luck but if I hit Enter, the programbox disappears, but when I compile the script and run the .exe autoit created, everything goes well until the end, theprogram dialog box doesn't close.I was wondering have you got any ideas?? Quote Link to comment Share on other sites More sharing options...
dkrus Posted December 5, 2007 Share Posted December 5, 2007 Is there a guide for making the RARsfx ? So it installs automatically when I click it without having to hit install button? Quote Link to comment Share on other sites More sharing options...
ricktendo Posted December 5, 2007 Author Share Posted December 5, 2007 Is there a guide for making the RARsfx ? So it installs automatically when I click it without having to hit install button?In the advanced SFX options there is a settingRun your installer silently add the switchOr you can add it manually like this in the comment section;The comment below contains SFX script commandsSetup=Program.exe /SSilent=1Overwrite=1Edit: You may wanna check extract to temp folder also Quote Link to comment Share on other sites More sharing options...
dkrus Posted December 5, 2007 Share Posted December 5, 2007 (edited) cool thanks Rick, just tried it worked perfect Edited December 5, 2007 by dkrus Quote Link to comment Share on other sites More sharing options...
legnireb Posted January 9, 2008 Share Posted January 9, 2008 Hi ricktendo64 Very Good Guide.I made a silent install of irfanview410 as a Test and everything go right, by following this excellent guide.But now i have a problem i dont know how to resolve, and i ask for your help...I compiled the au3 file to "exe" file.How do i now make a cab file from this "exe" file to put in nlite addons?Can anyone help please?I'm new in those things...Thanks in advanced...Sorry about my poor english... Quote Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted January 9, 2008 Share Posted January 9, 2008 http://www.wincert.net/forum/index.php?showtopic=2356 Quote Link to comment Share on other sites More sharing options...
legnireb Posted January 9, 2008 Share Posted January 9, 2008 hi Kelsenellenelvian!Thanks for your help...Just only more one question...when i finished instaling the programm Irfarview410.exe and i recorded with Autoit ScriptWritter last window terminated with a "Finish".Ok, after instalation, If i want to copy a dll file to the instalation folder of the aplication how did i proceed in the au3 file?can you help...ths... Quote Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted January 9, 2008 Share Posted January 9, 2008 ummmm I really don't know auto-it much m8. Quote Link to comment Share on other sites More sharing options...
legnireb Posted January 10, 2008 Share Posted January 10, 2008 hi Kelsenellenelvian!I made a silent install for iview410.exe.I added it to nlite addons, hotfixes etc.Made iso fileAnd run Virtual Pc 2004.But the program was not installed.What can be wrong?Can you help...I send the addon to be analised...Here is the ini:[general]BuildDate = 7 Janeiro de 2008Description = IView 4.10Language = EnglishTitle = Irfan View 4.10Version = 4.10Website = [EditFile]I386\SVCPACK.INF,SetupHotfixesToRun,AddProgram[AddProgram]Irfan.exe /SAnd here the script:Opt("WinWaitDelay",100)Opt("WinTitleMatchMode",4)Opt("WinDetectHiddenText",1)Opt("MouseCoordMode",0)$SF_1 = "iview410_setup.exe"If WinExists ( $SF_1 ) Then ExitAutoItWinSetTitle ( $SF_1)Run('E:\incoming\nlite_guide\irfan\iview410_setup.exe')WinWait("IrfanView Setup","Create IrfanView sho")If Not WinActive("IrfanView Setup","Create IrfanView sho") Then WinActivate("IrfanView Setup","Create IrfanView sho")WinWaitActive("IrfanView Setup","Create IrfanView sho")Send("{ALTDOWN}n{ALTUP}")WinWait("IrfanView Setup","What's new in this v")If Not WinActive("IrfanView Setup","What's new in this v") Then WinActivate("IrfanView Setup","What's new in this v")WinWaitActive("IrfanView Setup","What's new in this v")Send("{ALTDOWN}n{ALTUP}")WinWait("IrfanView Setup","Do you want to assoc")If Not WinActive("IrfanView Setup","Do you want to assoc") Then WinActivate("IrfanView Setup","Do you want to assoc")WinWaitActive("IrfanView Setup","Do you want to assoc")Send("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ALTDOWN}n{ALTUP}")WinWait("IrfanView Setup","* Instantly find you")If Not WinActive("IrfanView Setup","* Instantly find you") Then WinActivate("IrfanView Setup","* Instantly find you")WinWaitActive("IrfanView Setup","* Instantly find you")Send("{SHIFTDOWN}{SPACE}{SHIFTUP}{TAB}{SHIFTDOWN}{SPACE}{SHIFTUP}{TAB}{TAB}{ALTDOWN}n{ALTUP}")WinWait("IrfanView Setup","Press the ""Next"" but")If Not WinActive("IrfanView Setup","Press the ""Next"" but") Then WinActivate("IrfanView Setup","Press the ""Next"" but")WinWaitActive("IrfanView Setup","Press the ""Next"" but")Send("{ALTDOWN}n{ALTUP}")WinWait("IrfanView Setup","Open IrfanView &FAQs")If Not WinActive("IrfanView Setup","Open IrfanView &FAQs") Then WinActivate("IrfanView Setup","Open IrfanView &FAQs")WinWaitActive("IrfanView Setup","Open IrfanView &FAQs")Send("{SHIFTDOWN}{SPACE}{SHIFTUP}{ALTDOWN}d{ALTUP}")WinWait("IrfanView Frequently Asked Questions - Windows Internet Explorer","Favorites Command Ba")If Not WinActive("IrfanView Frequently Asked Questions - Windows Internet Explorer","Favorites Command Ba") Then WinActivate("IrfanView Frequently Asked Questions - Windows Internet Explorer","Favorites Command Ba")WinWaitActive("IrfanView Frequently Asked Questions - Windows Internet Explorer","Favorites Command Ba")Send("{ALTDOWN}{F4}{ALTUP}")Thanks for your help... Quote Link to comment Share on other sites More sharing options...
Sm0k3r Posted January 10, 2008 Share Posted January 10, 2008 Change thisRun('E:\incoming\nlite_guide\irfan\iview410_setup.exe')to thisRun('iview410_setup.exe') Quote Link to comment Share on other sites More sharing options...
legnireb Posted January 10, 2008 Share Posted January 10, 2008 HI Sm0k3r!thanks for your help...Another problem i had ..is that i also add RVMUPDATEPACK2.1.11.7z in nlite addons and Programaddons_Adobe_Reader_8.1.1.cab.Only adobe 8.1.1 succeed to instal.RVMUPDATEPACK did'nt succeed...I don't Know why not...Can you give me a help...ths... Quote Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted January 11, 2008 Share Posted January 11, 2008 How do you know it didn't install? Its not supposed to have a glaring banner or anything... Quote Link to comment Share on other sites More sharing options...
legnireb Posted January 11, 2008 Share Posted January 11, 2008 hi Kelsenellenelvian!I think it not installed because i went to windows folder and i thought the updates were there...i did not see anything there...perhaps i made a confusion...if it is normal how do we know that run ok?where can we go to see that them were installed ok?sorry about this but i am realy confused... Quote Link to comment Share on other sites More sharing options...
chaox2 Posted January 15, 2008 Share Posted January 15, 2008 (edited) HI Sm0k3r!thanks for your help...Another problem i had ..is that i also add RVMUPDATEPACK2.1.11.7z in nlite addons and Programaddons_Adobe_Reader_8.1.1.cab.Only adobe 8.1.1 succeed to instal.RVMUPDATEPACK did'nt succeed...I don't Know why not...Can you give me a help...ths...RVMUPDATEPACK2.1.11.7z isn't nlite addons, you must use RVM integrator to add it.after integrate RVMUPDATEPACK2.1.11.7z to your windows directory, you can use nlite to add programs, then make an iso Edited January 15, 2008 by chaox2 Quote Link to comment Share on other sites More sharing options...
legnireb Posted January 21, 2008 Share Posted January 21, 2008 hi everybody..Can anyone tell me where i can download Universal silent switch installer?Ths in advance... Quote Link to comment Share on other sites More sharing options...
Yza_K Posted March 19, 2008 Share Posted March 19, 2008 Maybe if u wanna look the last source...Autoit Ita Source. Quote Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted March 19, 2008 Share Posted March 19, 2008 http://www.wpiw.net/downloads/ussf.exe Quote Link to comment Share on other sites More sharing options...
steviewonder Posted March 19, 2008 Share Posted March 19, 2008 What would be the path to have script run exe fromsource cd?$INSTALLLOCATION =In case it's drive E instead of D, sorry I'm a newb at this Quote Link to comment Share on other sites More sharing options...
w0lfm4n Posted March 28, 2008 Share Posted March 28, 2008 I found this useful when I cant find any silent switches for my installers :thumb_yello:$SF_1 = "app.exe"If WinExists ( $SF_1 ) Then ExitAutoItWinSetTitle ( $SF_1)is this added after the script or before Quote Link to comment Share on other sites More sharing options...
ricktendo Posted March 28, 2008 Author Share Posted March 28, 2008 I don't think it matters where you put it, its just a variable. But put it at the begging Quote Link to comment Share on other sites More sharing options...
steviewonder Posted March 28, 2008 Share Posted March 28, 2008 Thanks I got it figured out Quote Link to comment Share on other sites More sharing options...
wilson Posted July 9, 2008 Share Posted July 9, 2008 after i finish this script and i get the execute script file,so how can i do for this to make cab nlite addon ?Its that just put the execute script file and the installation file together and make the cab file. At the ini file call the execute script file?can show me the step please Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.