Page 1 of 1

How to NetFileEnum for files being installed?

Posted: Thu Jan 11, 2007 5:03 am
by Immelman
I would like to determine if a network machine is using the files I'm trying to replace by installing a new version of my software.

PC1 has the files required to run the application. PC2 has a shorcut to PC1's executable allowing it to run over the network. The problem is that when I install a new version on PC1 and check for the process the setup will continue because the process is being run on PC2 not PC1. The setup then starts spewing out errors that the files currently being used by PC2 cannot be replaced, which is correct but, goes ahead and replaces other files that aren't being used resulting in an corrupted installation.

Is there a script I can use that checks the "Open Files" on the machine running the setup? Similar to what VB2005 NetFileEnumFunction does.

Is this what support is like after purcahasing the software?

Posted: Fri Jan 12, 2007 1:58 am
by Immelman
Seems like people aren't interested in the previous query.

Is there a product support desk I can contact?

Posted: Fri Jan 12, 2007 8:11 am
by jimo
No, not at all tru, it just took me some time to figure out how to accomplish this with InstallAware.

Here is a very simple way to accomplish your end result,
In your setup package use Call DLL and delete your executable.

It wont delete if its inuse and no one can start it during the install if its not there.

Posted: Fri Jan 12, 2007 12:29 pm
by Tinus
jimo wrote:In your setup package use Call DLL and delete your executable.

Smart way, Jim!

Immelman should add some backup to restore the file - if the user cancels the install...