cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
peczes
Level 4

Another Uninstall Question

Is there a way to check to see if a process is running before allowing the uninstall to continue?

I have found that I can have my product running, and the uninstall will run and delete what it can (I do get a dialog that I need to restart to complete), but it would be nice to be able to either tell the user to close the program or do it programmatically.
Labels (1)
0 Kudos
(2) Replies
Johannes_T
Level 6

Hi.
Try is(FILE_LOCKED, file) to check if the process' file is locked before you start uninstall.
Greetings, Johannes
0 Kudos
Bineesh
Level 6

you can use the below code to check if the process is running or not..

if (Is( FILE_LOCKED, szReferenceFile )) then

MessageBox(" abort;
endif;
0 Kudos