|
|
#1 | |||
|
Junior Member
Join Date: May 2011
Posts: 2
|
NSIS Plugin documentation
Hello,
I am trying to build an NSIS plugin but there is not much documentation on how to proceed. Nevertheless, I've found Jim Parks example and started from there: http://nsis.svn.sourceforge.net/view...n=&view=markup. With Eclipse CDT, I succeded to build my dll using as source files: MySourceFile.c, pluginapi.c and as include files: api.h, nsis_tchar.h and pluginapi.h. From EclipsesNSIS, I am able to access the exported functions of the dll. First weird thing is that when I decide to upgrade my dll with a new function, build it and copy back the dll in the NSIS plugins directory, when I restart EclipseNSIS, the autocompletion will not detect the new functions added, though, when compiling the nsi script, it will detect it. Second thing is that I am not able to push and pop the stack correctly, here follows my plugin code: Quote:
I call it from my nsi script as follows: Quote:
I've tried calling it as follows: Quote:
Please help |
|||
|
|
|
|
|
#2 |
|
Junior Member
Join Date: May 2011
Posts: 2
|
Hello guyz,
finally I switched to Visual Studio Express 2010 and followed this tutorial: http://clseto.mysinablog.com/index.p...icleId=1910084 and it worked directly. I stil don't see why it didn't work with the Eclipse CDT environment. Kind regards, Tanguy Mezzano |
|
|
|
|
|
#3 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
|
|
|
|
|
|
#4 | ||
|
Major Dude
|
Quote:
) I was totally desperated about it.So I took working plugin and created my own from it's sources. As time had passed I found what to do. Quote:
Cool looking installers with custom design: www.graphical-installer.com Create Setup Pages easily: www.install-designer.com Build installers in Visual Studio 2005-2022: www.visual-installer.com or RAD Studio 2009 - 11 Alexandria: www.rad-installer.com |
||
|
|
|
|
|
#5 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
The nounload plugin parameter was deprecated a couple of NSIS versions ago. The new plugin model doesn't use the parameter.
|
|
|
|
|
|
#6 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
The new plugin model is optional, and so is /NOUNLOAD
IntOp $PostCount $PostCount + 1 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|