Archive: SetPluginsDir instruction?


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


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


Thanks scully, I didn't know about that plugin :D
I will try it out tonight.

-Stu