Merge pull request #101 from bluechipps/fileinstall_fix_v2

FileInstall (v2) requires either overwrite parameter or to pass a non-existence check
pull/105/head
Clive Galway 1 year ago committed by GitHub
commit 7f5cdacdff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,13 +9,13 @@ class AutoHotInterception {
if (A_IsCompiled) {
dllFile := A_LineFile "\..\Lib\" bitness "\" dllName
DirCreate("Lib")
FileInstall("Lib\AutoHotInterception.dll", "Lib\AutoHotInterception.dll")
FileInstall("Lib\AutoHotInterception.dll", "Lib\AutoHotInterception.dll", 1)
if (bitness == "x86") {
DirCreate("Lib\x86")
FileInstall("Lib\x86\interception.dll", "Lib\x86\interception.dll")
FileInstall("Lib\x86\interception.dll", "Lib\x86\interception.dll", 1)
} else {
DirCreate("Lib\x64")
FileInstall("Lib\x64\interception.dll", "Lib\x64\interception.dll")
FileInstall("Lib\x64\interception.dll", "Lib\x64\interception.dll", 1)
}
} else {
dllFile := A_LineFile "\..\" bitness "\" dllName
@ -261,4 +261,4 @@ class AutoHotInterception {
this.parent.Instance.RemoveContextCallback(this.id)
}
}
}
}

Loading…
Cancel
Save