Hi.
I'm just wondering if there's a way to register or unregister all the files in a directory. I need something like a function which is able to read all of the files within a dir and list the ones with an extension of *.dll. I can then run a loop though each of the filenames registering each file.
Is this possible??
Thanks for the help
Chris
Registering/Unregistering in bulk
2 posts
With plugins, anything in NSIS is possible.
Something like this:
Something like this:
FindFirst $0 $1 "$INSTDIR\plugins\*.dll"
loop:
StrCmp $1 "" done
RegDLL "$INSTDIR\plugins\$1"
;UnRegDLL "$INSTDIR\plugins\$1" ; UnRegDLL for uninstaller
FindNext $0 $1
Goto loop
done:
FindClose $0