Skip to content

Commit 32dfcaf

Browse files
authored
More fixes
1 parent 6a9098b commit 32dfcaf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

EC-Autoclicker.ahk

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
;@Ahk2Exe-SetCompanyName Expertcoderz
77
;@Ahk2Exe-SetDescription EC Autoclicker
8-
;@Ahk2Exe-SetVersion 1.0.0
8+
;@Ahk2Exe-SetVersion 1.0.1
99

1010
FILE_EXT := ".ac-profile"
1111
REG_KEY_PATH := "HKCU\Software\Expertcoderz\Autoclicker"
@@ -826,7 +826,8 @@ Please try again later, or update EC Autoclicker manually if this error reoccurs
826826
)", "Update", "Iconx 262144"
827827
return
828828
}
829-
if verNumMatch.1 = FileGetVersion(".") {
829+
local thisVersion := SubStr(FileGetVersion(A_ScriptFullPath), 1, StrLen(FileGetVersion(A_ScriptFullPath)) - 2)
830+
if verNumMatch.1 = thisVersion {
830831
add_log("Version is up to date with the latest release")
831832
if isManual
832833
MsgBox "Your version of EC Autoclicker is the latest (" verNumMatch.1 ")."
@@ -838,7 +839,7 @@ Please try again later, or update EC Autoclicker manually if this error reoccurs
838839
(
839840
A newer version of EC Autoclicker ({}) is available.
840841
Your current version is {}. Would you like to update now?
841-
)", verNumMatch.1, FileGetVersion(".")), "Update", "YesNo Icon? 262144") = "Yes" {
842+
)", verNumMatch.1, thisVersion), "Update", "YesNo Icon? 262144") = "Yes" {
842843
local DOWNLOAD_FILE_NAME := "EC-Autoclicker-New.exe"
843844
if A_ScriptName = DOWNLOAD_FILE_NAME {
844845
MsgBox "Please rename EC Autoclicker to something else before updating it.", "Update", "Iconx 262144"

0 commit comments

Comments
 (0)