Add/Remove program window freezes with windows XP
I uninstall my program using add remove program windows on windows XP.
In the uninstallation I create the process notepad, which I want to
keep open even after the uninstallation is complete.
Strangely, the uninstallation completes, but the Add Remove program
window freezes, till I close the notepad manually.
I tried creating notepad with _spawnl, and also with CreateProcess().
I tried CreateProcess with different values of creation flags like
nothing seems to be working out. The call is as follows
"path of notepad.exe",
"path of notepad.exe", // Command line.
NULL, // Use parent's environment block.
NULL, // Use parent's starting directory.
&si, // Pointer to STARTUPINFO structure.
&pi ) // Pointer to PROCESS_INFORMATION structure.
For CREATE_PRESERVE_CODE_AUTHZ_LEVEL: CreateProcess works but add
remove window freezes.
For CREATE_BREAKAWAY_FROM_JOB: CreateProcess fails!
The same code works absolutely fine with Windows 2000.
It seems that windows XP add/remove program monitors which all process
had been created by uninstallation. And the Add/Remove program
window remains frozen till all the created processes are finished.
While it is
not the case with windows 2000.
I would appreciate any suggestions or feedbacks.