PDA

View Full Version : Update system without having to reboot



NewsArchive
03-20-2010, 04:11 AM
Hi all,

We have an issue we're we need to update the environment variables on
the system without having the user reboot the system. We have found a
workaround where we simply go into Computer -> Advanced -> Environment
Variables and add a new test variable and click ok all the way back out.
This will cause the system to be correctly initialized with the path
and other env variables we use.

Can anyone tell me the proper way to do this programmatically?

Thanks,
Ken

NewsArchive
03-23-2010, 02:44 AM
> Hi all,
>
> We have an issue we're we need to update the environment variables on
> the system without having the user reboot the system. We have found a
> workaround where we simply go into Computer -> Advanced -> Environment
> Variables and add a new test variable and click ok all the way back out.
> This will cause the system to be correctly initialized with the path and
> other env variables we use.
>
> Can anyone tell me the proper way to do this programmatically?
>
> Thanks,
> Ken

I found in an earlier post that SetupBuilder is sending the
SendMessageTimeout() API so that should do it for this one.

Thanks,
Ken