How to NetFileEnum for files being installed?

Got a problem you cannot solve? Try here.
Immelman
Posts: 14
Joined: Thu Jan 11, 2007 4:15 am

How to NetFileEnum for files being installed?

Postby Immelman » 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.

Immelman
Posts: 14
Joined: Thu Jan 11, 2007 4:15 am

Is this what support is like after purcahasing the software?

Postby Immelman » Fri Jan 12, 2007 1:58 am

Seems like people aren't interested in the previous query.

Is there a product support desk I can contact?

jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Postby jimo » Fri Jan 12, 2007 8:11 am

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.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com

Tinus
Posts: 207
Joined: Tue Jun 20, 2006 8:42 am
Location: Germany

Postby Tinus » Fri Jan 12, 2007 12:29 pm

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...
Martin Rothschink
InstallAware MVP

AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 194 guests