MAN
Members-
Posts
12 -
Joined
-
Last visited
MAN's Achievements
Seeker (1/7)
0
Reputation
-
hi i wrote script for unattended installation of photoshop here are lines : Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) Run('K:\cs3\Setup.exe') WinWait("Adobe Photoshop CS3 Installer: System Check","" , 3) If Not WinActive("Adobe Photoshop CS3 Installer: System Check","") Then WinActivate("Adobe Photoshop CS3 Installer: System Check","") WinWaitActive("Adobe Photoshop CS3 Installer: System Check","") If WinExists("Adobe Photoshop CS3 Installer: System Check")=1 Then Exit(0) if not (8) WinWait("Adobe Photoshop CS3 Installer: License Agreement","") If Not WinActive("Adobe Photoshop CS3 Installer: License Agreement","") Then WinActivate("Adobe Photoshop CS3 Installer: License Agreement","") WinWaitActive("Adobe Photoshop CS3 Installer: License Agreement","") Send("{TAB}{TAB}{ENTER}") WinWait("Adobe Photoshop CS3 Installer: Summary","") If Not WinActive("Adobe Photoshop CS3 Installer: Summary","") Then WinActivate("Adobe Photoshop CS3 Installer: Summary","") WinWaitActive("Adobe Photoshop CS3 Installer: Summary","") Send("{TAB}{TAB}{TAB}{ENTER}") WinWait("Adobe Photoshop CS3 Installer: System Check","") the problem i have is if internet explorer is open the main setup ( cs3.exe) can not continue so i want if this happen the script exit from memory and if this does not happen ( internet explorer is not open ) and set up can continue normally the script continue the rest of lines so i want the script execute those red lines if it found this window( Adobe Photoshop CS3 Installer: System Check) which means explorer is open and script should exit otherwise continue from the blue line{ WinWait("Adobe Photoshop CS3 Installer: License Agreement","")} up to end and compelete installation plz help me really confused ps. i added If WinExists("Adobe Photoshop CS3 Installer: System Check")=1 Then Exit(0) if not (8) but it doesnot bypass the red lines if the set up must continue correctly and script should remain
-
hi i have created unattended installation for a software i want to add function to script so if at any point of installation the user exit the installation the script exit from memory too these are the lines Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) Run("Setup.exe") WinWait("Welcome to the MathWorks Installer","") If Not WinActive("Welcome to the MathWorks Installer","") Then WinActivate("Welcome to the MathWorks Installer","") WinWaitActive("Welcome to the MathWorks Installer","") Send("{ENTER}") WinWait("License Information","") If Not WinActive("License Information","") Then WinActivate("License Information","") WinWaitActive("License Information","") Send("amir{TAB}ali{TAB}") WinWait("Program Manager","") If Not WinActive("Program Manager","") Then WinActivate("Program Manager","") WinWaitActive("Program Manager","") WinWait("License Information","") If Not WinActive("License Information","") Then WinActivate("License Information","") WinWaitActive("License Information","") Send("17-07731-23692-10568-44296-41368-55398-00447-58644-32358-48493-42354-15944-24217-41086-64008-44383-18129-65052-07135-50759-18518-30316-49442-20496-07027-48539-37608-12364-29464-62082-53145{TAB}{TAB}{TAB}{ENTER}") WinWait("MathWorks Account","") If Not WinActive("MathWorks Account","") Then WinActivate("MathWorks Account","") WinWaitActive("MathWorks Account","") Send("{SPACE}{TAB}{TAB}{SPACE}{ENTER}") WinWait("License Agreement","") If Not WinActive("License Agreement","") Then WinActivate("License Agreement","") WinWaitActive("License Agreement","") Send("{SPACE}{ENTER}") WinWait("Installation Type","") If Not WinActive("Installation Type","") Then WinActivate("Installation Type","") WinWaitActive("Installation Type","") Send("{ENTER}") WinWait("Folder Selection","") If Not WinActive("Folder Selection","") Then WinActivate("Folder Selection","") WinWaitActive("Folder Selection","") If WinExists("Folder Selection")=2 Then Exit(0) If ProcessExists("Setup.exe")=0 Then Exit(0) WinWait("Confirmation","") If Not WinActive("Confirmation","") Then WinActivate("Confirmation","") WinWaitActive("Confirmation","") Send("{ENTER}") i have added those two red lines but they do not work i donot know no where to add those lines or even they are correct or not can someone guide me or modify script that way? many thanks
-
sorry where should i add this command in which line?? and something else the install process have more than one windows ( one after one)and every windows has its own name do i have to write this command for every windows?
-
hi again excuse me i have another quesyion too( seems good place to learn) i want to add line to the script so that when at any point of installation i exit the the script exit too can u tell me what should i add to script? thanks
-
vowww man works like a charm tthanks so much
-
thats little hard for me i am not expert
-
hi i have created unattended installation for a software here is the lines Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) Run('C:\Documents and Settings\amir\Desktop\New Folder\setup.exe') WinWait("Welcome to the MathWorks Installer","") If Not WinActive("Welcome to the MathWorks Installer","") Then WinActivate("Welcome to the MathWorks Installer","") WinWaitActive("Welcome to the MathWorks Installer","") Send("{ENTER}") WinWait("License Information","") If Not WinActive("License Information","") Then WinActivate("License Information","") WinWaitActive("License Information","") Send("amir{TAB}ali{TAB}") WinWait("Program Manager","") If Not WinActive("Program Manager","") Then WinActivate("Program Manager","") WinWaitActive("Program Manager","") WinWait("License Information","") If Not WinActive("License Information","") Then WinActivate("License Information","") WinWaitActive("License Information","") Send("xxx{TAB}{TAB}{TAB}{ENTER}") WinWait("MathWorks Account","") If Not WinActive("MathWorks Account","") Then WinActivate("MathWorks Account","") WinWaitActive("MathWorks Account","") Send("{SPACE}{TAB}{TAB}{SPACE}{ENTER}") WinWait("License Agreement","") If Not WinActive("License Agreement","") Then WinActivate("License Agreement","") WinWaitActive("License Agreement","") Send("{SPACE}{ENTER}") WinWait("Installation Type","") If Not WinActive("Installation Type","") Then WinActivate("Installation Type","") WinWaitActive("Installation Type","") Send("{ENTER}") WinWait("Folder Selection","") If Not WinActive("Folder Selection","") Then WinActivate("Folder Selection","") WinWaitActive("Folder Selection","") WinWait("Confirmation","") If Not WinActive("Confirmation","") Then WinActivate("Confirmation","") WinWaitActive("Confirmation","") Send("{ENTER}") but the problem is i want to put it on cd so when the autorun start and after that script it perform the installation from there but the autoit script gives me error i have changed the path with the command srcdir this way : <SrcDir>\Run('<SrcDir>\setup.exe') so the script must execute setup.exe from cd but is doesnot and gives me error unable to execute the external program the system cannot find the file specified can someone help me plz ? th very much
-
so no idea what should i do?
-
hi thanks yes the loop is another problem but is there any way for example to define 1 minutes for it and after that it exit not exit in 10 second? P.S just try what you said still it exit after 10 second but why?
-
hi i have plugin for multimedia builder ( mmb) with the name of send.exe this plugin has been created with autoit ver 2 and it use in combinitaion with mmb to automate the set up ( simulating keys strike) but the problem is after the execution of this send.exe it only last 10 seconds and then exit from memory so sometimes befor the apps get to specified windows the send.exe exit so the key strike will not perform this is the script of this send.exe file HideAutoItWin, On SetTitleMatchMode, 2 SetWinDelay,500 SetKeyDelay,1 Repeat, 20 IfWinExist,%2%,,GOTO, SEND SLEEP,500 EndRepeat GOTO, Exit SEND: WinRestore, %2% WinActivate, %2% Send, %1% Exit: REM SEND how should i modify this script so after make it as send.exe it does not exit in 10 seconds for example it last for 1 min thanks so much one of the friends suggest raising the sleep or reapet but did not work still the send.exe exit after 10 sceonds
-
idont think it is something realated to the autoit version i am just asking for help on how to modify this script in away i have asked thanks
-
hi i have plugin for multimedia builder ( mmb) with the name of send.exe this plugin has been created with autoit ver 2 and it use in combinitaion with mmb to automate the set up ( simulating keys strike) but the problem is after the execution of this send.exe it only last 10 seconds and then exit from memory so sometimes befor the apps get to specified windows the send.exe exit so the key strike will not perform this is the script of this send.exe file HideAutoItWin, On SetTitleMatchMode, 2 SetWinDelay,500 SetKeyDelay,1 Repeat, 20 IfWinExist,%2%,,GOTO, SEND SLEEP,500 EndRepeat GOTO, Exit SEND: WinRestore, %2% WinActivate, %2% Send, %1% Exit: REM SEND, #{ALTDOWN}#{PRINTSCREEN}#{ALTUP} how should i modify this script so after make it as send.exe it does not exit in 10 seconds for example it last for 1 min thanks so much