Jump to content

Req : Enhancement to environment vars


Recommended Posts

Posted

Benjamin,

Please take a look at this ini

[Environment]Test = HKCU:Control Panel\Desktop\MenuShowDelay

[Var Test]

description.0 = Faster menu display (0.1 second) [Actual value : %Test%]

command.0  = regedit /s %reg%\UI-StartMenu-Gobal-MenuShowDelay.reg

test.0.0  = HKCU:Control Panel\Desktop\MenuShowDelay?=100

test.eval.0  = 0

disabled.0  = if.true

selected.0  = if.false

As you can see I initialise a var Test that will contain the registry key value (here menushowdelay) and use this var to display actual value in the item description.

Is it possible to do the same thing with program version, I've tried but it's not working.

The idea beyong is to display actual prog/DLL version in the description, as an help for users to evaluate if they should really upgrade or not.

Hope I'm enougth clear :D


Posted

Do you mean something like this:

[environment]
wmp.dll.version = %SystemRoot%\System32\wmp.dll?version

This could a bit tricky. What if the user don't want this string to be interpreted as "reading file version"?

Of course, we could ignore this like we do with HKLM: and HKCU:

Or I could (as I mentioned once) add scripting capability ;)

[environment]
wmp.dll.version = file.version(%SystemRoot%\System32\wmp.dll)

[application xyz]
...
test.0.0 = wmp.dll.version[><=!]1.2.3.4

But last thing I wont do the next time because lag of time and because it would need a big code rewrite and also a lot of knowledge ;)

Benjamin

Posted

Scripting could be good definitely, but as you mention need a big rewriting ;)

I was thinking more to something like your 1st example or like you do for the testings in the test.x

I don't see what other uses users can do with such vars, so this could be a good starting point

Regards

XPect

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...