Skip to content
⌘ NSIS Forum Archive

WISE script -NSIS conversion

2 posts

Pyjamarama#

WISE script -NSIS conversion

Hi!
I have the source of a wise installation app.
It uses a DLL called lets say aaa.dll
I m trying to find how i could call the dll's function in NSIS.

the wise app source
...
item: Call DLL Function
Pathname=%TEMP%\%UPGDLL%
Function Name=INVALIDTARGET
Parameter=%MAINDIR%
Flags=00000110
end
...

in NSIS I tried this (after I put the aaa.dll in the plugins folder)
...
Function CustomPageB
!insertmacro MUI_HEADER_TEXT "ahaahahah" "ahahahah"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "ioB.ini"
aaa::INVALIDTARGET "d:\temp\"
FunctionEnd

When i try to compile the script it says
Invalid command: aaa::INVALIDTARGET

I know the description of my problem is not very clear.
Any help would be appreciated
thanx in advance
evilO#
Hi 🙂

To be able to use your dll you'll have to check the examples in the NSIS "Contrib" directory, and to include the header file in "Contrib\ExDLL"

And reading this thread could be useful:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.



evilO/Olive