AHK_H: self including MSVCR100.dll

Ask for help, how to use AHK_H, etc.
Getfree
Posts: 231
Joined: 12 Oct 2014, 18:00

AHK_H: self including MSVCR100.dll

29 Nov 2016, 16:18

I'm looking for a way to include MSVCR100.dll together with the AHK executable in one bundle so that it doesn't complain if it's not installed in the system.

This dependency on a DLL that may or may not be on the user's computer is quite inconvenient.

Is there a way to embed that DLL in the executable or something like that?

I thought of using FileInstall but that wouldn't work because AHK_H doesn't even start if that DLL is not in the same directory.

Any ideas?
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: AHK_H: self including MSVCR100.dll

29 Nov 2016, 18:37

For the exe you can't, for the dll it is possible (see commented out section).
The problem is though that exe (MSVCRT) and dll (MSVCR100) will not be compatible and can lead to memory access violation.

I have it done in the past but got complains about this problem so reverted it.
guest3456
Posts: 3463
Joined: 09 Oct 2013, 10:31

Re: AHK_H: self including MSVCR100.dll

29 Nov 2016, 19:47

in what instances does a machine NOT already have MSVCR100.dll ?

Getfree
Posts: 231
Joined: 12 Oct 2014, 18:00

Re: AHK_H: self including MSVCR100.dll

29 Nov 2016, 20:51

My new installation of Windows 7 x64 doesn't have it.
Getfree
Posts: 231
Joined: 12 Oct 2014, 18:00

Re: AHK_H: self including MSVCR100.dll

29 Nov 2016, 22:50

This is really a dead-end for me. AHK_H is not guaranteed to start executing. Which means I'd need an auxiliary installation program that makes sure MSVCR100.dll is present.

On a different approach...
Would there be any issues if I use AHK_L instead and from there I load AHK.dll?
guest3456
Posts: 3463
Joined: 09 Oct 2013, 10:31

Re: AHK_H: self including MSVCR100.dll

29 Nov 2016, 23:26

a few options

1. distribute a zip instead of a sole exe?
2. use ahkL and fileinstall the msvrt100 and then load AHK.dll and dynamically pass your script

Getfree
Posts: 231
Joined: 12 Oct 2014, 18:00

Re: AHK_H: self including MSVCR100.dll

30 Nov 2016, 00:01

Yes, now I'm trying with AHK_L + AHK.dll.
It seems, though, that the communication between threads won't be as easy as in AHK_H.
Getfree
Posts: 231
Joined: 12 Oct 2014, 18:00

Re: AHK_H: self including MSVCR100.dll

30 Nov 2016, 17:59

Cool thing this Enigma box. But it seems like an overkill for most AHK issues.
The whole point of AHK for me is simplicity of development and deployment. Adding a virtualization layer complicate things unnecessarily.

Return to “Ask for Help”

Who is online

Users browsing this forum: No registered users and 33 guests