MSFN Forum: Req : Enhancement to environment vars - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Req : Enhancement to environment vars Rate Topic: -----

#1 User is offline   XPect 

  • Junior
  • Pip
  • Group: Members
  • Posts: 80
  • Joined: 18-June 04

Posted 27 September 2004 - 01:32 AM

Benjamin,

Please take a look at this ini

Quote

[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


#2 User is offline   BenjaminKalytta 

  • Developer
  • PipPipPipPip
  • Group: Members
  • Posts: 609
  • Joined: 08-June 04

Posted 27 September 2004 - 08:40 AM

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

#3 User is offline   XPect 

  • Junior
  • Pip
  • Group: Members
  • Posts: 80
  • Joined: 18-June 04

Posted 27 September 2004 - 09:21 AM

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

#4 User is offline   BenjaminKalytta 

  • Developer
  • PipPipPipPip
  • Group: Members
  • Posts: 609
  • Joined: 08-June 04

Posted 27 September 2004 - 10:31 AM

Ok, it's possible now.

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


Benjamin

#5 User is offline   XPect 

  • Junior
  • Pip
  • Group: Members
  • Posts: 80
  • Joined: 18-June 04

Posted 27 September 2004 - 10:33 AM

Your the best :thumbup

Work like a charm, very helpfull

Thanks again

XPect

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy