arnes_king Posted May 27, 2010 Posted May 27, 2010 Hi everyone , I want to add to my windows xp cd some programs that i everytime install , i install often my xp again because i have more pc-s and when friends need help i do that , and i want to add some programs like ccleaner , firefox , google chrome , windows live messenger etc. but the latest versions , and i want to make them silent instal so i dont have to touch anything . I know that some programs like ccleaner and firefox i can download silent addons , but i want to know how to make for every program a silent addon myself . I am trieyng it with ccleaner , i saw the AUTOIT method and it doesnt seem to hard , and i am starting the script writer and everything is perfect , i compile the script and it works . Then first i used winrar to add the script and the setup to a rarsfx exe file . I do it so and then i use nlitw addon maker to make from the rarsfx exe an addon . I insert the addon with nlite to hotfixes and then i try it on virtual pc . Everything goes good to the "instaling start menu items" and then registering components , when its at half way in the "registering components " setup it comes to ccleaner and it executes the rarsfx file and then the script is launched , now the script need to launch the ccleanersetup.exe but nothing happens,the script wont launch it and the instal stands ... Now i am trieng when i got the script and the setup , i make the entries.ini file myself and then the svcpack folder and insert everything there , then i used powerarchiever to make a cab file and i inserted it again to the winxp image . Now i am waiting to see if it will work now , but i dont think that it will , i dont know where i am doing a mistake and why the script wont launch the setup when instaling windows . Please when someone can help me and explain all over from the beggining how to make it i would be very thankfull .Here is the script : Opt("WinWaitDelay",100)Opt("WinTitleMatchMode",4)Opt("WinDetectHiddenText",1)Opt("MouseCoordMode",0)$SF_1 = "ccsetup232.exe"If WinExists ( $SF_1 ) Then ExitAutoItWinSetTitle ( $SF_1)Run('ccsetup232.exe')WinWait("Installer Language","Please select a lang")If Not WinActive("Installer Language","Please select a lang") Then WinActivate("Installer Language","Please select a lang")WinWaitActive("Installer Language","Please select a lang")Send("{TAB}{SPACE}")WinWait("CCleaner v2.32 Setup","Welcome to the CClea")If Not WinActive("CCleaner v2.32 Setup","Welcome to the CClea") Then WinActivate("CCleaner v2.32 Setup","Welcome to the CClea")WinWaitActive("CCleaner v2.32 Setup","Welcome to the CClea")Send("{ALTDOWN}n{ALTUP}")WinWait("CCleaner v2.32 Setup ","Please review the li")If Not WinActive("CCleaner v2.32 Setup ","Please review the li") Then WinActivate("CCleaner v2.32 Setup ","Please review the li")WinWaitActive("CCleaner v2.32 Setup ","Please review the li")Send("{ALTDOWN}a{ALTUP}")WinWait("CCleaner v2.32 Setup ","Choose Install Locat")If Not WinActive("CCleaner v2.32 Setup ","Choose Install Locat") Then WinActivate("CCleaner v2.32 Setup ","Choose Install Locat")WinWaitActive("CCleaner v2.32 Setup ","Choose Install Locat")Send("{ALTDOWN}n{ALTUP}")WinWait("CCleaner v2.32 Setup","Select any additiona")If Not WinActive("CCleaner v2.32 Setup","Select any additiona") Then WinActivate("CCleaner v2.32 Setup","Select any additiona")WinWaitActive("CCleaner v2.32 Setup","Select any additiona")Send("{ALTDOWN}{ALTUP}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{SPACE}{ALTDOWN}i{ALTUP}")WinWait("CCleaner v2.32 Setup ","Completing the CClea")If Not WinActive("CCleaner v2.32 Setup ","Completing the CClea") Then WinActivate("CCleaner v2.32 Setup ","Completing the CClea")WinWaitActive("CCleaner v2.32 Setup ","Completing the CClea")Send("{SPACE}{TAB}{ALTDOWN}f{ALTUP}") Quote
ricktendo Posted May 27, 2010 Posted May 27, 2010 You have to compile the script to .exe in order for it to run without autoit installedBTW check out this silent switch addon making vid it may help some Quote
arnes_king Posted May 27, 2010 Author Posted May 27, 2010 (edited) Hi , ricktendo and thanks for your quick repply .I never watched the video tutorials but i think that it is that way harder and because of that i am trieyng it with autoit . I would watch the tutorials now and try it but i have a limit on my internet trafic and i dont have much more so i cant watch vids that are long and download larger files till 01.6. when i dont want to reach my limit , so i will do it in a few days .And i didnt wrote it but i have compiled the script and everything and i dont know what is causing the problem . Maybe because i dont use the normal windows xp instalation , i am using a modified with nlite windows xp , maybe i should try it with my normal not modified . It just stops the whole instalation when it comes to that point where it extracts the cab and launches the script but for some reson the script wont launch the ccsetup.exe .Do you have any other ideas what can i try or what may cause the problem ?EDIT: I watched the first video but its not of some help for me , i want to make the silent instal addons with autoit . IT works all perfect when i launch it when its packed together with winrar to rarsfx.exe , i tried it a hundred times and its normal when i launch the rarfx.exe it extracts (i checked the option to extract it to a temporary folder) and launches the script , the script then launches the setup.exe but when i test it while instaling windows it wont .I will upload now a 7z with all files i used before and after the finished addon , all in folders , please download it and see if something is not good .Ok , here is the download link of my files and folders : http://www.2shared.com/file/qx6KsjSu/my_silent_ccleaner.html Edited May 27, 2010 by arnes_king Quote
Kelsenellenelvian Posted May 28, 2010 Posted May 28, 2010 Are you compiling the script into an .exe after creating it?(Note Windows DOES NOT handle au3 files alone... You MUST compile them with auto-it into an .exe first) Quote
arnes_king Posted May 28, 2010 Author Posted May 28, 2010 Thanks for your repplies and yes like i sayed i have compiled it to an exe file and after 2 full days and 2 full nights i have made it , it has instaled without any problems , i didnt used addon maker , i made all myself to be sure that everything is ok but it didnt worked and then finally i looked at the ENTRIES_*****.ini file and there was the problem , it was named ENTRIES_ccleaner.ini and i didnt thinked that it matters with the name and the compiled script in SVCPACK folder was named cccleaner and i tried everything in this 2 days and nights and nothing worked and now i was looking at the entry file and i renamed it to the same as the compiled exe script cccleaner i didnt thinked that this will fix the problem but it has , i just tried it out on my virtual pc and IT WORKS , finnaly :D i am so happy . Thanks for your forum without it i would never find a good tutorial for this , now i can get all my favorite programs silent autoinstalled Just one more question , how can i make a program to insert the license key automaticlly , can it be done with autoit and script writer like this , i mean when i activate script writer and when i type the cd key during the instalation will autoit record what i tipped for the key and will the script insert it during the instalation like i do or is there another way ??Again thank you all very much Quote
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.