How to know/identify that installation is done
From my application, I install some other package that are out of my control. Every installers behaviour is not the same. e.g
Case I with editplus installer
1 From my application I start the editplus installation
2 Store the main process id and wait for exit.
3 Once parent/main process get kill.
4 From the task manager list I check all the process whose parent id is equivalent to the one I stored.
5 If any child process exist then again wait for exit. (Now in this case there is no child process created. Goto step 7. )
6 Once all the child process get kill then contiune with some actions.
7 Continue with rest of the action
Case II with Photoshop
1 From my application I start the Photoshop installation
2 Store the main process id and wait for exit.
3 Once parent/main process get kill.
4 From the task manager list I check all the process whose parent id is equivalent to the one I stored.
5 If any child process exist then again wait for exit. (Now in this case there are two child processes get created. Goto step 6. )
6 Once all the child process get kill then contiune with some actions.
7 Continue with rest of the action
Case III with winamp lite
1 From my application I start the winamp lite installation
2 Store the main process id and wait for exit.
3 Once parent/main process get kill.
4 From the task manager list I check all the process whose parent id is equivalent to the one I stored.
5 If any child process exist then again wait for exit. (Now in this case there are two child processes get created. Goto 6.)
6 Once all the child process get kill then contiune with some actions.(but in this case, one process remains active, so could not goto step 7.)
7 Continue with rest of the action
In the above case I could not go to step 7 because one installer process remains active. How do I know/get notify that the installation is done/complete.
Regards,
Shiby Chacko
|