Old 21st March 2005, 19:01   #1
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
SetPluginsDir instruction?

I've always wanted this but I keep forgetting to ask for it (I end up helping others instead!) This should probably go on the request tracker, but I'm more familiar with this forum I'll post it on there too if you think it's a good idea.

Anyway, basically I want to be able to set my installer's $PLUGINSDIR. I like to keep files that my installer uses local to it (ie in a subfolder in $EXEDIR) rather than have a directory created in $TEMP everytime my installer is ran.
To be more clear, it's not an installer but more a utility like WinZip except it updates computer games.

I could just use CallInstDLL, but it's not so clean (you have to extract all the DLL's manually etc)

So, say if I wanted to place plugins in $EXEDIR\Cache, I'd have...
SetPluginsDir "$EXEDIR\Cache"
...in my script (compile time instruction outside Sections and Functions.)
To use the default path (with indiscrete folder names) we'd have to simply omit the instruction from the script.

Cheers

-Stu
Afrow UK is offline   Reply With Quote
Old 22nd March 2005, 12:30   #2
scully13
Senior Member
 
Join Date: Apr 2004
Posts: 130
This will do the trick although you do have to use CallInstDLL once to change $PLUGINSDIR. However, after you've set the $PLUGINSDIR you just use the normal methods for the other DLLs.

Change Variable Plugin
scully13 is offline   Reply With Quote
Old 22nd March 2005, 12:46   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Thanks scully, I didn't know about that plugin
I will try it out tonight.

-Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump