This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: Another Uninstall Question
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 04, 2009
02:08 PM
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.
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.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 05, 2009
01:27 AM
Hi.
Try is(FILE_LOCKED, file) to check if the process' file is locked before you start uninstall.
Greetings, Johannes
Try is(FILE_LOCKED, file) to check if the process' file is locked before you start uninstall.
Greetings, Johannes
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 05, 2009
08:16 AM
you can use the below code to check if the process is running or not..
if (Is( FILE_LOCKED, szReferenceFile )) then
MessageBox(" abort;
endif;
if (Is( FILE_LOCKED, szReferenceFile )) then
MessageBox("
endif;