How can I assign a longword variable to a custom function variable?

75 views
Skip to first unread message

Ronaldo Huang

unread,
May 8, 2026, 12:04:46 AM (9 days ago) May 8
to innosetup
I want to call a function which is in a custom DLL. An error occurs when compiling it. Can anyone help to solve it? The details are below.64e75b12-3c54-491c-92df-69dbc1770a62.png

Martijn Laan

unread,
May 8, 2026, 1:29:52 AM (9 days ago) May 8
to innosetup
Hi,

See the CodeDll.iss example script for the correct method to work with DLL files. The help file also has a dedicated topic. Using GetProcAddress won't work. 

Greetings,
Martijn




-------- Original Message --------

On Friday, 05/08/26 at 06:04 Ronaldo Huang <huang2...@gmail.com> wrote:
I want to call a function which is in a custom DLL. An error occurs when compiling it. Can anyone help to solve it? The details are below.

--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/7c35787f-0f8c-4df6-89f7-35c1ea7c749dn%40googlegroups.com.

Ronaldo Huang

unread,
May 8, 2026, 4:38:06 AM (8 days ago) May 8
to innosetup
Thanks, I’ve got it. I have read the help file, but I didn't find a way to call the DLL where it is in the app path. Is there any way to do that?

Gavin Lambert

unread,
May 10, 2026, 11:56:27 PM (6 days ago) May 10
to innosetup
On Friday, May 8, 2026 at 8:38:06 PM UTC+12 Ronaldo Huang wrote:
Thanks, I’ve got it. I have read the help file, but I didn't find a way to call the DLL where it is in the app path. Is there any way to do that?

Just specify the appropriate path.  The CodeDll.iss script has an example of doing this at uninstall time.  If you want to do this at install time as well then you should use "delayload" and avoid calling it until after the installation has completed (CurStepChanged(ssPostInstall) or later). 

Ronaldo Huang

unread,
May 12, 2026, 4:12:47 AM (4 days ago) May 12
to innosetup
I have tried what you said. It still doesn't work. Anyway, I solved my issue in another way.
Reply all
Reply to author
Forward
0 new messages