Skip to content
⌘ NSIS Forum Archive

calling a dll

3 posts

I_Need_help2#edited

calling a dll

Hi
I’m new to NSIS and getting it to do things slowly!

The thing I can’t get my head around is calling an external dll!

Location is installed on my test system and will be preexisting on all system the installer is run on.

In VB.net i would do the following:


Dim Loc As LOCATION.Dirs

Loc = New LOCATION.Dirs
myfolder = Loc.PROG

and after this myfolder contains the path returned to myfolder.

I’m trying

System::Call "LOCATION:😁irs(t "PROG") t .r1"
MessageBox MB_OK|MB_ICONSTOP "Prog $1."

The above just returns a number not the path.
Afrow UK#
Is the dll .NET? If so then you have to write a non .NET wrapper to call it. This could be a dll or a command-line executable.

Stu