Envoriment Variables Thread last updated on 2004-04-06 13:26:27

Posted by member 2018 on 2004-04-01 00:48:16

how do you use windows ENVVARs with LS i need it to build a theme where i don't know what drive will be used. i.e. Bart's PEbuilder http:\\www.nu2.nu\pebuilder\

TIA

Posted by member 7 on 2004-04-01 04:53:10 link

If an $evar$ can't be found in step.rc the windows variables are checked. That means that you can use any windows %var% as a $var$ as long as there is no name conflict.

Posted by member 1 on 2004-04-01 12:38:24 link

what does a website have to do with what drive is used?

Posted by member 125450 on 2004-04-01 22:39:50 link

I built a Bart PE Disk with Litestep all I had to do was copy the contents of the Litestep folder to the root of the Bart CD
and made a theme the links to the apps in the bart file tree.
What you want to do is remove the netloadmodle entries from step.rc in litestep folder and use Loadmodule in your theme.
You also have set an Evar for the modules directory.
If you would like a copy of SilverFleep modified for Bart
let me know

Posted by member 125450 on 2004-04-01 22:41:57 link

It's not the site,(site was just a reference) it's the drive of the CD-Rom the Bootable CD with a copy of windows XP embedded on it. Wonderful tool.

Posted by member 7223 on 2004-04-02 06:00:49 link

hmm, I need an evar with current userid

Posted by member 37809 on 2004-04-02 07:40:01 link

Smurth: you mean $Username$ ?

Posted by member 99 on 2004-04-02 11:55:24 link

If you set it up so that the themes folder is under the $LiteStepDir$, it shouldn't matter what drive it's on. It'll all be picked up automatically from the path to litestep.exe.

If you install the themes under the user-specific folders, it should be picked up automatically from wherever those have been set.

I don't see how that could be a problem...

Posted by member 125450 on 2004-04-02 13:06:31 link

There is a program dir on the root of a Bart PE CD and in order to link to the utilities on the disk you would need a drive letter, that is why I I used the root for the LS intall so I can just use $LitestepDir$ instead of tring the set a var for the drive letter.
I would assume his theme is going to be geared for use as a mobile tech.

Posted by member 1 on 2004-04-02 18:14:09 link

but that drive letter would depend on your own specific machine so it should be configured in themeevars.rc or just be hard coded.

Posted by member 2018 on 2004-04-02 19:32:34 link

but i will use this disk on computers i don't own and may not know the setup of. so a being able to ref the unknown CD drive letter is important. i hate hardcoding anything i don't have the more dynamic the theme vars the better less i have to setup.

TechRonin: i would love to see it pls send it. email is in my profile. TIA

Posted by member 2018 on 2004-04-02 19:32:43 link

Double post sorry, i blame ls.net for logging me out. :P

Posted by member 125450 on 2004-04-02 21:15:06 link

The pupose of the Embedded is to troubleshoot PC's that can't boot there own os ie I go to a client and his CD-ROM is Q:\ due some tinking he did before calling me, my cd will boot to XP regardless of his OS and litestep will run and give me access to apps on cd without caring about what drive it is running off.

Posted by member 1 on 2004-04-02 22:52:57 link

ahhh...see...now that explains it a little better. the other option would be to install it under %windir% or %tempdir%. There should also be one for Program Files...just can't think of it. That would depend on the OS you booted making it a dynamic evar again.

Posted by member 7223 on 2004-04-03 02:32:15 link

tnl: I means UserID; not UserName:
Username: Smurth
UserID: S-1-5-21-xxxxxxxxxx-xxxxxxxxx-xxxxxxxxx-1001

Posted by member 1316 on 2004-04-05 13:55:14 link

so, you're looking for a variable for the cd-rom drive? I don't think one exists...

Posted by member 2018 on 2004-04-05 23:11:01 link

it doesn't exists but however since bartPE boots from the cdrom %systemdrive% works quite well.

Posted by member 7223 on 2004-04-06 00:39:05 link

UserID! Not cd-rom or systemdrive !!!

Posted by member 2018 on 2004-04-06 02:02:17 link

smurth: I know of no such windows or LS evar for that but than i don't have IIS installed either. you can always use CMD.exe and run 'set' it will show you all windows' Evars.

Posted by member 7223 on 2004-04-06 13:26:27 link

Thanks varbalshadow, I didn't know that. But there's no what I'm looking for...