Check File In-Use

Got a problem you cannot solve? Try here.
cpams
Posts: 1
Joined: Thu Mar 09, 2023 4:41 am

Check File In-Use

Postby cpams » Thu Mar 09, 2023 4:48 am

Hello everyone,

iam searching for a functionality to Check if a File is in use or not.
Is there a comfort function in Installaware X15 ?
I need to check file accesses for DLL's and executables while the installation is in progress.

In Installaware 12 i checked this via Call DLL Kernel and get Fileattributes and evaluate Expression, very uncomfortable.

Best Regards

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Check File In-Use

Postby FrancescoT » Tue Feb 20, 2024 7:54 am

At such purpose you may use the "Is File Locked" command.

Is File Locked

This command checks whether a given file on the target system can be opened for write operations (including deletes and overwrites).

While the setup engine automatically replaces such files (either by renaming them and marking them for deletion upon reboot, or by doing the entire replacement after a reboot if the rename fails), this command may still be useful to determine your installation strategy, to request application shutdowns before allowing the installation to proceed, etc.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

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