It is currently Tue, 25 Nov 2014 19:53:20 GMT



 
Author Message
 Add/Remove program window freezes with windows XP

Hi,

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
CREATE_BREAKAWAY_FROM_JOB and
CREATE_PRESERVE_CODE_AUTHZ_LEVEL ,
nothing seems to be working out. The call is as follows
CreateProcess( NULL,
        "path of notepad.exe",
        "path of notepad.exe", // Command line.
        NULL,            
        NULL,            
        FALSE,            
        CREATE_PRESERVE_CODE_AUTHZ_LEVEL,
        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.
Shrish



 Fri, 04 Nov 2005 16:17:12 GMT   
 
   [ 1 post ] 

Similar Threads

1.Add remove program windows freezes

Hi, 

I uninstall a program using add remove program windows. In the
uninstallation I invoke a dll, where I spawn notepad.

I want to uninstall the program and leave the the notepad open after
uninstallation is completed. Strangely, the Add Remove program window
freezes, till I close the notepad. Aftre I close the notepad it
behaves normally.

I tried spawning with _spawnl, and also with CreateProcess(). I also
tried CreateProcess with different values of creation flags like
CREATE_BREAKAWAY_FROM_JOB and CREATE_PRESERVE_CODE_AUTHZ_LEVEL ,
nothing seems to be working out. The call is as foloows

CreateProcess( NULL,
        "path of notepad.exe",
        "path of notepad.exe", // Command line.
        NULL,            
        NULL,            
        FALSE,            
        //CREATE_BREAKAWAY_FROM_JOB,        //::createprocess fails      
                                CREATE_PRESERVE_CODE_AUTHZ_LEVEL,  //createproces succeds.
add/remove window freezes
        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 workss but add
remove window freezes.

For CREATE_BREAKAWAY_FROM_JOB: CreateProcess fails!

The same code works absolutely fine with Windows 2000.

Any Ideas??
Shrish

2. Add Remove program windows freezes

3. Removing Windows updates from Add/Remove programs list?

4. Can't find uninstall Windows XP in ADD/Remove programs

5. Windows XP Add/Remove Programs WinMX

6. Add/Remove Program in Windows XP

7. Windows XP Hot Fix in Add or Remove Programs

8. windows xp hotfix (add/remove programs)

9. Add/Remove Programs Windows XP Hotfix

10. Add Remove Programs on Windows XP Pro


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software