How to NetFileEnum for files being installed?
Posted: Thu Jan 11, 2007 5:03 am
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.
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.