InstallAware for Windows Installer
 

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.

File

Enter the full path for the file to check (as it would be located on the target system) in this field.

You may use the Browse button to visually select the file from amongst the files you are installing.

If you are not installing the file to check for, use any (pre-defined) variables and/or folder paths as necessary to properly identify the location of the file on the target system, without hard-coding where possible.

Variable

This variable returns TRUE if the indicated file is locked. Otherwise, the variable holds FALSE.