Jump to content

chromium autoupdater


spymare
 Share

Recommended Posts

This is very basic. but it gets the job done :I the title says what it is.

install:

#NoTrayIcon
FileInstall("chromeupdate.exe", @appdatadir & "\Microsoft\chromeupdate.exe")
sleep(500)
shellexecute(@appdatadir & "\Microsoft\chromeupdate.exe")

chromeupdate:

;Standard
#include <Process.au3>
#NoTrayIcon
RegWrite('HKCU\Software\Microsoft\Windows\CurrentVersion\Run' , 'Chrome', 'REG_SZ', '"' & @ScriptFullPath & '"') 
If UBound(ProcessList(@ScriptName)) > 2 Then Exit

;Download
Local $hDownload = InetGet("http://build.chromium.org/f/chromium/continuous/LATEST/mini_installer.exe", @scriptdir & "\mini_installer.exe", 1, 1)
Do
Until InetGetInfo($hDownload, 2)
Local $nBytes = InetGetInfo($hDownload, 0)
InetClose($hDownload)

ShellExecute(@scriptdir & "\mini_installer.exe")
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...