16
九月
0

Google Chrome silent install

autoit-logo

Although Google Chrome provides a near-to-silent installer to us, but it will display a noisy screen in the last, which prompts to to set Google Chrome to default browser or not, import Internet Explorer bookmarks or not….etc.

So how to make it silent install? I’m using AutoIt v.3 to solve it.

here is my AutoIt v.3 script.


;prompts a welcome dialog
MsgBox(64, "dialog name", "welcome string")
Run("chromeinstall.exe")
WinWaitActive("Welcome")
; when the welcome screen of GC comes out, let's remove those checkboxes
Send("{TAB}{TAB}{SPACE}{TAB}{SPACE}")
Send("{TAB}{TAB}{SPACE}")
Send("{TAB}{SPACE}")
Send("{TAB}")
Send("{TAB}{SPACE}")
Send("{TAB}{TAB}{TAB}{SPACE}")
Send("{TAB}{TAB}{TAB}{TAB}{SPACE}")
;wait for 3 seconds, then close chrome.
Sleep(3000)
ProcessClose("chrome.exe")
$PID = ProcessExists("chrome.exe")
; Will return the PID or 0 if the process isn't found.
If $PID Then ProcessClose($PID)

相關的文章:

  1. Using AutoIt to create Application Shortcuts from Google Chrome
  2. Google Chrome Standalone installer
Post your comment




/R/e/f/l/y /N/e/t/w/o/r/k/