I found the cause of the problem, and it is in the registry loader. depending on how many entries are in the registry settings to install, the buffer overrun would occur.
I haven't found a work around yet.