XPect Posted September 27, 2004 Share Posted September 27, 2004 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.regtest.0.0 = HKCU:Control Panel\Desktop\MenuShowDelay?=100test.eval.0 = 0disabled.0 = if.trueselected.0 = if.falseAs 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 Link to comment Share on other sites More sharing options...
BenjaminKalytta Posted September 27, 2004 Share Posted September 27, 2004 Do you mean something like this:[environment]wmp.dll.version = %SystemRoot%\System32\wmp.dll?versionThis 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.4But 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 Link to comment Share on other sites More sharing options...
XPect Posted September 27, 2004 Author Share Posted September 27, 2004 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.xI don't see what other uses users can do with such vars, so this could be a good starting pointRegardsXPect Link to comment Share on other sites More sharing options...
BenjaminKalytta Posted September 27, 2004 Share Posted September 27, 2004 Ok, it's possible now.Example:[environment]wmp.dll.version = %SystemRoot%\System32\wmp.dll?versionBenjamin Link to comment Share on other sites More sharing options...
XPect Posted September 27, 2004 Author Share Posted September 27, 2004 Your the best Work like a charm, very helpfullThanks againXPect Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now