Jump to content
Sign in to follow this  
spymare

chromium autoupdater

Recommended Posts

spymare

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")

Share this post


Link to post
Share on other sites
wakillon

Sure, this is very basic...


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.