Archive: Named Pipes in NSIS


Named Pipes in NSIS
  Is there a way to listen and write on a named pipe from a NSIS installer? If so please post some sample code.


Definitely yes!
You can call WinAPI functions directly from NSIS using System plugin, but it is difficult.
Create plugin using C/C++ that is the easiest way.


And I am assuming you can pass data back from the plugin into NSIS right?
Something like a return "123ABC"


Pass parameters between plugin and NSIS via Stack.
NSIS has great support for it!
Plugin can be called with parameters and Pop hem in plugin [keep order!]
Use Pop in you NSIS code to get data from stack pushed by plugin.


MyPlugin::Start $0 $INSTDIR "Hello" 1245

Pop$0 ; result from plugin
>

Great. Thanks!