How do you make a per user setting in w2k?
Since the litestep .rc files are the same for whoever's logged in the settings i make there will be the same for every user on the box. Do I have to install litestep to a different directory per user?
/PvC
Store the config for each user in a file. Put this file in a "knowable" directory (C:\Document and settings\Administrator\My documents\Litestep). Do this for each users. Then, simply add this to your step.rc
Include "$DocumentsDir$Litestep\UserOnly.rc
hm, is there a var for Application Data?
Josh, I don't know. But you could try this:
AppData "$StartMenu$..\Application Data"
Josh, have you take a look at
http://www.litestep.net/index.php?section=4&action=view&catId=2&id=810
There's a $username$ var. That means you could do
include "$litestepdir$$username$.rc"
or
include "$litestepdir$$username$\step.rc"
or something similar.
ilmcuts, of course, if you only need a single "per user" file, your solution is better than mine. But if you need to store many settings, then it's better to store all the "user only stuff" in a whole directory. Like I done it in my theme which is "multi-user" compliant:
http://www.litestep.net/index.php?section=2&action=details&id=83
That's why I put everything under "$DocumentsDir$Litestep\"
so do $LiteStepDir$\$username$\step.rc...gggg....
Smurth: the $username$.rc or $LiteStepDir$\$username$\step.rc can include as many files as you want...
I know, but in "$DocumentsDir$Litestep\", I use to store the "per user" wallpaper.bmp, Shortcuts.rc, DesktopArea.rc, OnRun.rc, PopupMain.rc, Settings.rc, Settings.mz, Step.mz and Modules.ini
See, the reason I ask about Application Data is that My Documents isn't really the appropriate place to store this stuff. IMO it should be under $LiteStepDir$ or Application Data\LiteStep. (the second being more established)
And if you're gonna put it under $LiteStepDir$, you should probably have $LiteStepDir$Profiles\$username$\etc. instead. $LiteStepDir$$username$ would clutter things up and, unlikely as it may be, I wouldn't trust users to not have a username like "themes" or "modules."
Application Data\Litestep sounds good :)
using win2kpro i have c:\litestep\step.rc contain the following line:
include "c:\documents and settings\$username$\application data\litestep\step.rc"
and it will load different step.rcs per user. but now how do i get a different modules.ini per user? thanks
You'll have to create a batch file or a script to copy it over. Or use modules that don't need modules.ini. :p
By the way, Litestep allows you to use windows %vars% as $evars$... that means you can just do
include "$AppData$\litestep\step.rc"
scar: use filemaster.dll and make some scripts to:
on exit/recycle
- unload the modules that still use modules.ini
- copy modules.ini to "$AppData$\Litestep\modules.ini"
on startup:
- copy "$AppData$\Litestep\modules.ini" to "$LitestepDir$modules.ini"
- reload the modules that use it (don't load them with the regular LoadModule)
if i do the things you people have suggested here, that means i cannot use lsts to change themes, right? i already tried to do all sortsa things to be able to use lsts with multiple user themes, but (among other things i discovered)lsts seems to expect the themes directory in the same folder that it is in.
hey, galois, how about multi-user support for lsts? :)
well, you could try putting a copy of lsts.exe into each user's folder. I don't know if that will work or not... you would then also need to change your popup to point to the new lsts.