Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Registering/Unregistering in bulk (http://forums.winamp.com/showthread.php?t=253242)

cdenvir 14th August 2006 02:50

Registering/Unregistering in bulk
 
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

JasonFriday13 14th August 2006 03:23

With plugins, anything in NSIS is possible.

Something like this:
code:

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



All times are GMT. The time now is 04:46.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.