Pack DLLs inside compiled EXE

hotfix/issue-65
Clive Galway 4 years ago
parent f70941f32a
commit a7842583b8

@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased]
### Added
### Changed
- Compiled scripts now pack the required DLLs inside the EXE and unpack them on run
Both the x86 and the x64 DLL will always be packed in the EXE, but on run, only the required DLLs will be unpacked
### Deprecated
### Removed
### Fixed

@ -8,6 +8,15 @@ class AutoHotInterception {
dllName := "interception.dll"
if (A_IsCompiled){
dllFile := A_LineFile "\..\Lib\" bitness "\" dllName
FileCreateDir, Lib
FileInstall, Lib\AutoHotInterception.dll, Lib\AutoHotInterception.dll
if (bitness == "x86"){
FileCreateDir, Lib\x86
FileInstall, Lib\x86\interception.dll, Lib\x86\interception.dll
} else {
FileCreateDir, Lib\x64
FileInstall, Lib\x64\interception.dll, Lib\x64\interception.dll
}
} else {
dllFile := A_LineFile "\..\" bitness "\" dllName
}

Loading…
Cancel
Save