Skip to content
⌘ NSIS Forum Archive

AccessControl plugin update

6 posts

Afrow UK#

AccessControl plugin update

Just to let everyone know I rebuilt the plugin without error message boxes. No doubt it has been scaring users in the past for all installers that use the plugin.
Error messages are just pushed to the stack like before.



-Stu
matzo#
Just to let everyone know I rebuilt the plugin without error message boxes. No doubt it has been scaring users in the past for all installers that use the plugin.
Thanks. I have been waiting for that.
Anders#
I uploaded a new version that fixes SDDL SID Strings parsing and should work on WinNT4+, platforms that use the emulated function only supports some of them and they are listed in the readme...
simplix#
Anders, if it's not difficult for you, please add 64-bit version of AccessControl plugin or some instructions for compiling, because I get many errors when building. Thank you!
Anders#
Originally Posted by simplix View Post
Anders, if it's not difficult for you, please add 64-bit version of AccessControl plugin or some instructions for compiling, because I get many errors when building. Thank you!
I don't know if this plugin actually works correctly when compiled as 64-bit (I know I have done some 64-bit work on the code but I don't remember how much I tested) but I am able to compile it without warnings by using some tricks.

You are probably missing the 64-bit pluginapi.lib. I think Afrow UK likes to build plugins that link with it so he probably set it up this way. You don't need this .lib, you just need api.h and the files in ExDLL from the NSIS source.

REM I'm doing this in the root of the AccessControl source so I'm using . for that directory.
set SRCROOT=.
set NSISTRUNK=%SRCROOT%/../../../../SCM-CO/NSIS/trunk
REM /Zl only sets _VC_NODEFAULTLIB in VS2005+
set CL=/DUNICODE /D_UNICODE /D_VC_NODEFAULTLIB /Fe"%SRCROOT%/AMD64/AccessControl.dll" /I"%NSISTRUNK%\Source\exehead" /FI"%NSISTRUNK%\Contrib\ExDLL\pluginapi.c"
md "%SRCROOT%/AMD64" 2>nul
call cl /LD /W3 /O1 /Osy /GF /Gz /GS- /GR- /GL /Zl "%SRCROOT%/Contrib/AccessControl/AccessControl.cpp" /link /OPT:REF /OPT:ICF,99 /MERGE:.rdata=.text /OPT:NOWIN98 /NODEFAULTLIB kernel32.lib user32.lib advapi32.lib