Jump to content

clivebuckwheat

Members
  • Posts

    6
  • Joined

  • Last visited

clivebuckwheat's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Yes indeed it was one of the WinWaitActive commands, I used the msgbox after each to figure out the issue. Now it works perfectly with SCCM and reports back success now that the script exits properly. Thanks all for the suggestions I do appreciate all the responses and your time.
  2. Thanks Guys I will try the msgbox method, as of right now I have no clue as to which Winwaitactive is hanging it up. For sccm to report success, I need the script to exit properly. Thanks again for all your suggestions.
  3. Hi I am hoping one of you can help me with a slight problem I am having. How do I make this script exit when complete, so there is no Autoit Icon in the system tray? #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.8.1 Author: CZ Script Function: Install the Sage 50 Accounting 2013-Canadian Edition software. #ce ---------------------------------------------------------------------------- $pid = ProcessExists("TSProgressUI.exe") If $pid Then ProcessClose($pid) If $CmdLine[0] = 1 And StringIsDigit($CmdLine[1]) Then Sleep($CmdLine[1] * 1000) If $CmdLine[0] = 1 And $CmdLine[1] = "/?" Then MsgBox(32, @ScriptName, "Usage: """ & @ScriptName & """ [start-in-#-of-seconds]" & _ @CRLF & @CRLF & "Example: """ & @ScriptName & """ 30" _ ) Exit EndIf $setupLogFile = "C:\setupSA2013.log" FileWriteLine($setupLogFile, "INFO: Currently in: " & @WorkingDir) $setupFile = @ScriptDir & "\setup\setup.exe" If Not FileExists($setupFile) Then $setupFileErrMsg = "ERROR: " & $setupFile & " not found." FileWriteLine($setupLogFile, $setupFileErrMsg) MsgBox(32, @ScriptName, $setupFileErrMsg & @CRLF & @CRLF & "(log file in C:\)") Exit EndIf Run($setupFile) WinWaitActive("Sage 50 Accounting 2013 - InstallShield Wizard", "Select a language") Send("{ENTER}") WinWaitActive("Installing Sage 50 Accounting 2013 Release 2...", "Type of installation") Send("{ENTER}") WinWaitActive("Installing Sage 50 Accounting 2013 Release 2...", "serial number") Send("252P1U28415294{ENTER}") WinWaitActive("Installing Sage 50 Premium Accounting 2013 Release 2...", "End User License Agreement") Send("{TAB 3}{SPACE}") Send("!i") WinWaitActive("Installing Sage 50 Premium Accounting 2013 Release 2...", "Installation successful") Send("!f") WinWaitActive("Sage 50 - Registration", "Product Registration") Send("{SPACE}") ; Activate Now WinWaitActive("Sage 50 - Product Activation", "Company Name") Send("XX{TAB 3}") ; Registered company name Send("XXXXXX-XXXXX-XXXXX{TAB}{DOWN}") ; Account I.D. Send("XXXXXXXXXXXXXXXXXXXXXX{ENTER}") ; Registration Code WinWaitActive("Sage 50 - Product Activation", "Activation Successful") Send("{ENTER}") Exit
  4. Hi I have to install an unsigned printer driver on about 200 computers, I have successfully written the script to install the driver, but the problem is the driver is unsigned, which means I get a security warning dialog box prompt mid driver install. I have wrote a little autoit script to do such a thing. I was wondeing how can I make this script lop until the security dialogs box appears and then run it and exit. Thanks for any help as I am not very skilled with autoit. My autoit script WinWait("Windows Security", "") WinActivate("Windows Security") Send("{TAB}") Send("{ENTER}") Exit(0) This is the issue below
  5. I have to install it on about 200 computers by Wednesday, I am hoping someone else has done it because I am under the gun time wise. Thanks for any help or assistance you can offer.
  6. I am one day deep into the world of Autoit and I have to tell you I am loving the power this program has. I need your help if possible. I need help with an autoit script, I wrote. Basically what it does is run a few cscript commands to start a service and activate office 2010, also resets the Administrator password via control userpasswords2 I'd like to wait until each command is done, before going on to the next, I opted to use Runwait. lastly it opens word 2010 to check the activation status. My Auto it script #include <Process.au3> Run('control userpasswords2') WinWait("User Accounts","") Send("{SPACE}{SPACE}{TAB}{TAB}{TAB}{ENTER}") Send("password{SHIFTDOWN}?{SHIFTUP}{TAB}password{SHIFTDOWN}?{SHIFTUP}{TAB}{ENTER}") Send("{TAB}{TAB}{TAB}{TAB}{TAB}{ENTER}") RunWait (@COMSPEC & " /k start w32tm /resync /nowait") RunWait (@COMSPEC & " /k start cscript "%Program Files\Microsoft Office\Office14\ospp.vbs" /osppsvcrestart) RunWait (@COMSPEC & " /k start cscript "%ProgramFiles%\Microsoft Office\Office14\ospp.vbs" /act) Run('C:\Program Files\Microsoft Office\Office14\Winword.exe') WinWait("Document1 [Compatibility Mode] - Microsoft Word","") Send("{ALTDOWN}f{ALTUP}h") The errors on compile. C:\Documents and Settings\Administrator\Desktop\AutoIt Scripts\FixLocalAutoAdminLoginStudent.au3(8,41) : ERROR: syntax error (illegal character) RunWait (@COMSPEC & " /k start cscript "% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\Administrator\Desktop\AutoIt Scripts\FixLocalAutoAdminLoginStudent.au3(9,41) : ERROR: syntax error (illegal character) RunWait (@COMSPEC & " /k start cscript "% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
×
×
  • Create New...