I have set the environment variables for JAVA_HOME, MYSQL_HOME
now i want to set the path for them. How to set it ?
How to use EnvVarUpdate function to set the path ?
Thanks
Setting path for environment variables
8 posts
Have a look at the this page
Originally posted by ComperioHi,
Have a look at the this page
I've found this page and tried to append a string to the PATH. I'm confused about the duration of this function on VISTA. It takes 5 minutes until my setup continues running.
There are no problems on XP.
Any idea?
It waits for all applications to respond that they got the modification. There's probably a hung or misbehaving application on your Vista installation. Try reducing the timeout to avoid it.
Originally posted by kichikHi kichik,
It waits for all applications to respond that they got the modification. There's probably a hung or misbehaving application on your Vista installation. Try reducing the timeout to avoid it.
thank you for your fast replay.
This code is the reason for the long duration, right?
; "Export" our change SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000Why it is required to inform all other apps about my new PATH settings? I've changed the timeout value to 5 and now it does the work that I have expected.Bye
If you don't inform other applications, they'll only update the environment when you restart them or the entire computer.
Originally posted by kichikSo if I add a new value to the environment for the app that I just install, it is not required to inform the other apps because the new PATH value has no effect for them.
If you don't inform other applications, they'll only update the environment when you restart them or the entire computer.
Thank you for your help so far.
BTW:
If I unterstood the value of "/TIMEOUT=5000" parameter should cause SendMessage to wait for 5000 ms. But in my case it waits 5 Minutes. If I set the value to 1000 it waits 1 Minute. Could this be a bug in SendMessage?
It waits up to 5 seconds per application.