Jump to content

Nologic

Member
  • Posts

    462
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by Nologic

  1. ; Google Toolbar WinWaitActive ( $Title , "Install the free Google Toolbar" ) ControlClick ( $Title , "" , "Button4" ); Deselect ControlClick ( $Title , "" , "Button2" ); Next...hopefully That should work...but thats assuming that $Title will be correct. Since I can't tell if there is the extra space or not from that screenshot...so it'll ether be: $Title = "DivX Play Bundle Setup" or $Title = "DivX Play Bundle Setup " Notice the extra trailling space at the end of the title... Oh gave a little thought to why google may have not been displayed for me...one my default browser is Firefox....second an older version of DivX Pro gets installed on my system by one of the app's I use...so could be ether of those reasons...maybe
  2. This is what I came up with...rather slim on features...but it gets you moving in the right direction....now I did not see the google bar option in the package you linked to....nor did it get installed on my system...so no idea what to say or do about it. You should how ever be able to use the window spy app that comes with AutoIt to get the control ID...then you can simply controlclick that control to deselect it. Best of luck...but I'm clueless why yours has it...but my package didn't.
  3. If you can unselect the component during normal install...then you can write an AutoIt script in which to automate the same process.
  4. Post a link to the exact file your installing...and I'll actually take a look at the script and fix what issues it may have...above all I did was clean up...didn't look to fix any thing.
  5. Updated forum script for PS CS 2....don't know if it works...and don't frankly care...just did some clean up, to where it should be easier to fix any error's that maybe in it.
  6. this & #34; should be " the board is parsing the post incorrectly.
  7. Your welcome...another tip...instead of: MouseClick("left", 65, 371) Use MouseClick("left", 65, 371, 1, 1) Hehe makes the mouse haul a**. Also WinWaitActive("SpywareBlaster") WinActivate("SpywareBlaster") Sleep(5000) As you have already said...there is redundancy in the script by activating a window that is already active...so secondline there is not needed....also...if its possible get rid of the sleep statements. Do this by checking to see if there is different visable text some where on the following window thats different from the prior. WinWait("SpywareBlaster", "Bob") ... WinWait("SpywareBlaster", "mark") Now the above winwaits are different windows...so long as "mark" wasn't on the winwait that was looking for "bob" If that fails...you could test to see if it refresh's the window title per window...if so...you could rename the first window's title to some thing else, example: WinWait("SpywareBlaster") WinSetTitle ( "SpywareBlaster", "", "Old Window" ) .... WinWait("SpywareBlaster") .... Or WinWait("SpywareBlaster") WinSetTitle ( "SpywareBlaster", "", "Old Window" ) .... WinWaitClose("Old Window" ) ... Any ways a few ideas to play with ** Update ** Also its a good idea not to hard code paths if possible. Run("C:\Program Files\Security\SpywareBlaster\spywareblaster.exe") Would be better written like so: Run( @ProgramFilesDir & "\Security\SpywareBlaster\spywareblaster.exe" ) That way should "Program Files" be set else where than C:\ the script would not fail
  8. AutoItSetOption ("CaretCoordMode", 0) Is used for where the cursor is.... Opt ("MouseCoordMode", 0) Is used for where the mouse is. AutoItSetOption or Opt...ether one works.
  9. Use AutoIT to watch for the reboot window...then to quickly close it.
  10. hmm that could also be written like so: RunWait( 'c:\installs\wrar3501.exe /s' )
  11. I'd suggest leaving stuff on the CD\DVD unless there is a really good reason. Older script...MHz has a newer more buff version of this: Global $Drive Func _FindDrive($type, $name) Local $drvs While Not $Drive $drvs = DriveGetDrive($type) If Not @error Then For $i = 1 To $drvs[0] If DriveStatus($drvs[$i] & "\") = "READY" Then If FileExists($drvs[$i] & "\" & $name) Or DriveGetLabel($drvs[$i]) = $name Then $Drive = $drvs[$i] & "\" Return $Drive EndIf EndIf Next If Not $Drive Then If StringInStr("CDROM|REMOVABLE|NETWORK", $type) Then If StringInStr("CDROM|REMOVABLE", $type) Then If MsgBox(21, "Warning", "Please insert media into a drive now") = 2 Sleep(1000) If MsgBox(36, 'Important', 'Are you sure that you want to exit?') = 6 Then Exit ElseIf $type = "NETWORK" Then If MsgBox(21, "Warning", "Please connect to a network now") = 2 Then Sleep(1000) If MsgBox(36, 'Important', 'Are you sure that you want to exit?') = 6 Then Exit EndIf EndIf Else If MsgBox(36, 'Drive Not Found', 'Drive could not be found would you like to exit?') = 6 Then Exit EndIf Sleep(2000) EndIf EndIf WEnd EndFunc Basically use some thing like this then to find the XP isntall disk: _FindDrive( "CDROM" , "WIN51" ) Which would then set the global var of $Drive to what ever drive that is....so if it was on say drive Z....then $Drive would equal Z:\ So you would then have some thing like this else where in the script RunWait ( $Drive & "SOFTWARE\Tools - CD & DVD\ASPI\ASPI_4.71.2_au3.exe" ) To launch an app on the XP CD in a sub folder of "SOFTWARE"
  12. Well not big on send key scripts...done by genrators...or really in general. Any ways some quick clean up...if you do have problems with windows losing focus...write a simple fuction...so that the code doesn't get so unreadable. If WinExists(@ScriptName) Then Exit AutoItWinSetTitle(@ScriptName) Run('DivXPlay.exe') WinWaitActive("Language selection") Send("{ENTER}") WinWaitActive("DivX Play Bundle Setup") Send("{ENTER}") WinWaitActive("DivX Play Bundle Setup ") Send ( "{TAB}{SPACE}{ENTER}{SHIFTDOWN}{+}{SHIFTUP}{DOWN 3}{SPACE}{ENTER}" ) WinWaitActive("DivX Play Bundle Setup") Send("{ENTER 2}") WinWaitActive("DivX Play Bundle Setup","Installation Complet") Send("{ENTER}")
  13. Well if I have any advice to give it would be to make sure you don't have WindowBlinds or any other OS skinning app running. A lot of my first scripts ended up using a lot of "Send" commands...which I think is horid and very prone to fail. I'm still just a beginner my self...my coding style changes a lot over time...still need to go back and redo a lot of scripts...if for no other reason than to serve as better examples of how to write install scripts.
  14. ripped code from the main script in the autoit thread...should ideally fix the problem. You can find the corrected version here [link]
  15. blah hadn't planned on supporting this script any more....but oh well. Note I don't own or have a copy of the software to test against...since this was written for my brother a while back. ; Serial Number $SN_1 = "*****-*****-*****-*****" Run ( @ProgramFilesDir & "\Softwin\BitDefender8\bdmcon.exe" ) ; Splash Screen $Title = "BitDefender 8 Professional Plus - Evaluation" WinWaitActive ( $Title ) ControlClick ( $Title , "" , "Button1" ) ; Registration $Title = "BitDefender 8 Professional Plus - Registration" WinWaitActive ( $Title ) $SN = StringSplit( $SN_1 , "-" ) ControlSetText ( $Title , "" , "Edit1" , $SN[1] ) ControlSetText ( $Title , "" , "Edit2" , $SN[2] ) ControlSetText ( $Title , "" , "Edit3" , $SN[3] ) ControlSetText ( $Title , "" , "Edit4" , $SN[4] ) ControlClick ( $Title , "" , "Button1" ) ; Online #1 $Title = "Online Registration" WinWaitActive ( $Title ) ControlClick ( $Title , "" , "Button3" ) ControlClick ( $Title , "" , "Button2" ) ; Online #2 WinWaitActive ( $Title , "OK" ) ControlClick ( $Title , "OK" , "Button1" ) EXIT
  16. Well there is a autoit script for this application...so why not just edit up the source code on that to do what you need.
  17. attach the script that you have written so far and I'll take a look at it
  18. $folder_1 = @ScriptDir & "\dlls\*.dll" $folder_2 = @ProgramFilesDir & "\Macromedia\" FileCopy( $folder_1 , $folder_2 & "Dreamweaver MX 2004\" , 1) ...
  19. Different write up for the script. ; Files To Use $FILE_0 = "setup.exe" $FILE_1 = "WatchDriverSigningPolicy.exe" $FILE_2 = "SetupCopyOEMInf.exe " $CD = DriveGetDrive( "CDROM" ) ; Check Drives For $I = 1 to $CD[0] If FileExists( $CD[$I] & "\win51ip.SP2" ) Then $iDrive = $CD[$I] & "\$oem$\" Next ; Setup = Idle ProcessSetPriority ( $FILE_0 , 0 ) ; Process Drivers Run ( $iDrive & $FILE_1 ) ProcessWait ( $FILE_1 ) RunWait ( $iDrive & $FILE_2 & $iDrive & "Drivers" ) ProcessClose ( $FILE_1 ) ; Setup = Normal ProcessSetPriority ( $FILE_0 , 2 ) ; Delete File FileDelete ( @SystemDir & "\driver.au3" ) Not sure if the ProcessWait is really needed tho...then again haven't tested this method yet ether.
  20. Updated main script [link] As for that error...BitDefender must have been installed to a different path for some reason...so you would need to alter the path info given in that script.
  21. Well more on the autoit idea...why pass it to windows at all...let autoit run the app. RunWait ( @ScriptDir & "\setup.exe /S" ) FileDelete ( @DesktopDir & "\ABC.lnk" )
  22. totoymola - How is it going....good to see you still around. MHz - Well **** is a good NFO view...its just not better than JANE...which is greatly suprior...and thanks again for showing it to me.
  23. Well you could have also placed the script dead last to be executed, then instead of start wait....you just start it...which would mean that runonce would exit as soon as the script is executed and the script would catch the window correctly like it should. Any ways good that you found a work around all the same.
  24. hmm well in the AutoIT thread I have a script for installing ****...that said I find Jane [link] to be a much better viewer\editor (thanks to Mhz for showing me it)
×
×
  • Create New...