Page 1 of 1

vcruntime error

Posted: 04 Jan 2021, 22:24
by joekingcool
if we use the encryption for the the autohotkey_H does the user of the exe need vcruntime installed on there pc? if so is there a portable way of putting the runtime with the exe like a folder next to it and point the program to it?

Re: vcruntime error  Topic is solved

Posted: 05 Jan 2021, 00:41
by joekingcool
i solved the issue, i added the vcruntime140.dll driver to same folder as the exe. and it works fine dont need c++ redist installed on pc

Re: vcruntime error

Posted: 08 Jan 2021, 03:40
by kyuuuri
Hello, if I recall correctly AHK will search the script's dir for the dll and then windows. If you share the dll on the same folder as the exe then the user won't need to download anything extra.
Another alternative is to make the user download Visual C++ Redistributable for Visual Studio 2015 or as everyone calls it vcredist2015. It's a 10mb installer that you download from Microsoft's website and takes less than a minute to install. Super easy, no need to configure stuff, download -> open -> click continue and done!

Also you can compile the source code using /MT making the dll be included with the .exe, this means that the dll will be loaded from the .exe itself.