You are here

Please need help with NSIS PlugIn (SimpleFC.dll)

1 post / 0 new
El Tiburon
Offline
Last seen: 4 months 3 weeks ago
Joined: 2016-07-17 18:25
Please need help with NSIS PlugIn (SimpleFC.dll)

Hello dear admins and forum members,

1st of, sorry of my bad english spelling.
I hope you all can understand what I mean.

I'm trying to write a loader that creates firewall rules and then launches the program.

On this page there is a plugin for NSIS to download:
NSIS SimpleFC PlugIn

After unpacking, I have now copied the "SimpleFC.dll" into the following folder:
===================================================
File: SimpleFC.dll -> PortableApps.comLauncher\App\NSIS\Plugins
===================================================

I can not get addressed the functions in that DLL file.
I suppose I have to load this somehow in my "Custom.nsh".

I tried following:
=============================================
File: Custom.nsh -> folder MyPortableProgram\App\AppInfo
=============================================
!include "SimpleFC.nsh"
${SegmentFile}
${SegmentPre}
${SimpleFC::AddApplication} "My Notepad (no internet)" "C:\Windows\System32\Notepad.exe" 0 2 "" 1
!macroend

=========================================================
File: SimpleFC.nsh -> folder PortableApps.comLauncher\App\NSIS\Include
=========================================================
!define SimpleFC::AddApplication `!insertmacro SimpleFC::AddApplication`

!macro SimpleFC::AddApplication _NAME _PATH _SCOPE _IP_VERSION _REMOTE_ADDRESSES _STATUS
SimpleFC::AddApplication `${_NAME}` `${_PATH}` `${_SCOPE}` `${_REMOTE_ADDRESSES}` `${_STATUS}`
Pop ${0}
!macroend

Please can me someone help to find my error? I read so many things and looked to some other scripts
but don't know how I can solve this.
How I can address a DLL-File for NSIS for PortableApps Custom.nsh

Thanks to all that can help me and thanks to PortableApps Admins for this nice pease of Software. Smile
Keep up your good work
with best regards El Tiburon