5
5
6
6
; @Ahk2Exe-SetCompanyName Expertcoderz
7
7
; @Ahk2Exe-SetDescription EC Autoclicker
8
- ; @Ahk2Exe-SetVersion 1.0.0
8
+ ; @Ahk2Exe-SetVersion 1.0.1
9
9
10
10
FILE_EXT := " .ac-profile"
11
11
REG_KEY_PATH := " HKCU\Software\Expertcoderz\Autoclicker"
@@ -826,7 +826,8 @@ Please try again later, or update EC Autoclicker manually if this error reoccurs
826
826
)" , " Update" , " Iconx 262144 "
827
827
return
828
828
}
829
- if verNumMatch.1 = FileGetVersion (" ." ) {
829
+ local thisVersion := SubStr (FileGetVersion (A_ScriptFullPath ), 1 , StrLen (FileGetVersion (A_ScriptFullPath )) - 2 )
830
+ if verNumMatch.1 = thisVersion {
830
831
add_log(" Version is up to date with the latest release" )
831
832
if isManual
832
833
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
838
839
(
839
840
A newer version of EC Autoclicker ({}) is available.
840
841
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 " {
842
843
local DOWNLOAD_FILE_NAME := " EC-Autoclicker-New.exe"
843
844
if A_ScriptName = DOWNLOAD_FILE_NAME {
844
845
MsgBox " Please rename EC Autoclicker to something else before updating it." , " Update" , " Iconx 262144"
0 commit comments