Script auto updater

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Guest

Script auto updater

11 Oct 2016, 00:36

Hi! I was looking through some previous topics: [Func] Self script updater (https://autohotkey.com/board/topic/7255 ... t-updater/) and Very Simple Auto-Update to Push New Script Versions (https://autohotkey.com/board/topic/2987 ... -versions/)

but they both are not functioning correctly (if at all). I was wondering if anyone had any solutions or alternative methods that aren't so dated.

Thanks.
Guest

Re: Script auto updater

11 Oct 2016, 01:57

I don't understand(?) where's the code?
Spoiler
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: Script auto updater

11 Oct 2016, 02:24

The code is here. Seems like the script does a UrlDownloadToFile and extracts a copy of autohotkey.exe embedded in the file and then it runs the copy of ahk.exe, passing it the downloaded file. I don't see the point of that. But as I said, I didn't try it. You should ask the author in relevant thread.
Guest

Re: Script auto updater

11 Oct 2016, 02:37

I guess i'm too much of a noob to understand the 200 lines

nvm thx
User avatar
Capn Odin
Posts: 1352
Joined: 23 Feb 2016, 19:45
Location: Denmark
Contact:

Re: Script auto updater

11 Oct 2016, 03:11

It is only about 60 lines if you ignore the large static strings.

According to the author it is fairly easy to use.
Osi wrote:First you have to upload your script on the internet.
Second, you can download the autolauncher.ahk file. And you just have to change the url by your url.
urlscript := "http://url"
by
urlscript := "http://your_url_that_contains_ur_script"
After, you can create an executable and distributing to your users. When you change the script which has uploaded, the users can have the updates.
Please excuse my spelling I am dyslexic.
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: Script auto updater

11 Oct 2016, 03:17

Yeah, but I wouldn't run that code, I don't know what executable is really embedded there. It says "autohotkey.exe", but could just as well be something else.
User avatar
Capn Odin
Posts: 1352
Joined: 23 Feb 2016, 19:45
Location: Denmark
Contact:

Re: Script auto updater

11 Oct 2016, 03:37

Helgef wrote:Yeah, but I wouldn't run that code, I don't know what executable is really embedded there. It says "autohotkey.exe", but could just as well be something else.
True, hadn't thought about it, in the few posts he have made he doesn't seem nefarious though.
Please excuse my spelling I am dyslexic.
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: Script auto updater

11 Oct 2016, 03:59

I'm sure he isn't, I made a comment about this in his thread.
Guest

Re: Script auto updater

11 Oct 2016, 04:25

Awesome, I knew to trust my gut but disregarded the obvious 150 lines of gibberish. Now time to get hunting for whatever is installed :headwall:
Osi
Posts: 7
Joined: 18 Sep 2016, 06:02
Contact:

Re: Script auto updater

12 Oct 2016, 01:14

Hello, i reply about the script.

The script includes an executable directly in the script (it's the autohotkey.exe file).
With this file you dont have to install autohotkey to execute a script.

You can do the same thing with the following function to downloading the file everything from internet:
UrlDownloadToFile, URL, Filename
But, i wanted to have a file which is always available.
It's for that reason that i add the dll directly into the script.
Thank u,

Osi, :wave:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 172 guests