Page 1 of 1

How can I get 'File in use' information during uninstallatio

Posted: Mon Jul 19, 2010 11:49 pm
by abhimudgal1
When I try to uninstall, it remove all the files including the file which are open in editor or used by other applications, in that case I want to display error and terminate the uninstallation.
How can I get 'File in use' information during uninstallation?

thanks in advance

Re: How can I get 'File in use' information during uninstall

Posted: Tue Jul 20, 2010 7:53 pm
by mills
Your best bet will be to write the functionality into a dll, then use Call DLL Function.

Both of these links suggest the same basic approach:

http://stackoverflow.com/questions/8764 ... -is-in-use
http://social.msdn.microsoft.com/Forums ... 8437956bc8