S
Support
Hello:
I have an application that I wish to update upon login via login script but
since the application is in the start-up menu, I cannot override the exe,
so, I wrote a function that iterates through all the instances of this
application and kills the one instance that is not itself and then shuts
itself down.
The idea is that in a batch file , I could run <applicationname> shutdown
which would create a new instance of the application but detect the other
instance that was activated in the start-up menu and "shut it down"
Question 1: when I do: process.kill() the first instance, will the first
instance ever get to the Mybase.closing handle so that I can close and
dispose all objects appropriately.
Question 2: should I do some form of remoting instead ?
Thanks
Terry
I have an application that I wish to update upon login via login script but
since the application is in the start-up menu, I cannot override the exe,
so, I wrote a function that iterates through all the instances of this
application and kills the one instance that is not itself and then shuts
itself down.
The idea is that in a batch file , I could run <applicationname> shutdown
which would create a new instance of the application but detect the other
instance that was activated in the start-up menu and "shut it down"
Question 1: when I do: process.kill() the first instance, will the first
instance ever get to the Mybase.closing handle so that I can close and
dispose all objects appropriately.
Question 2: should I do some form of remoting instead ?
Thanks
Terry