Check

Check

Check user's rights, locked files, open windows etc.

Description
Optionally, you may add comments here describing the purpose of this element.
What Check
You can select the following resource types to be checked.
Locked File - The command will detect if the file, specified in the Name field is locked by another application.
Exact Window Name - Presence of a window with the specified title in the Name field.
Window Name Substring - Presence of a window, the title of which contains the specified substring.
Process - A process is running with the specified file name.
Directory Exists - The command will detect if the specified directory exists. Use Name for specifying the directory name.
File Exists - The command will detect if the specified file exists. Use Name for specifying the filename.
Windows version - You can specify unsupported Windows versions for your setup. Versions are specified by comma separation. Possible values: 95,98,ME, NT,2000,XP,2003,VISTA,WIN7.
Mutex - The command will detect if the mutex with the specified name exists.
Negation of Condition
Checked => Checks negation of the condition ( 0 => 1, 1 => 0 ).
Name
The string that describes the resource being checked.
for Locked File - #setuppath#\myapp.exe 
for Exact Window Name - My Application 
for Window Name Substring - App 
for Process - myapp.exe 
for File Exists - #setuppath#\myapp.exe 
for Directory Exists - #setuppath#
for Windows Version - 95,98,ME 
for Mutext - specify the name of the mutex 
Result variable
The result of the check will be stored in the variable you name here. You can use this variable further as #varname#.
for Locked File - will be set to 1 if the file is locked, zero if not.
for Exact Window Name - will be set to 1 if the such window was found, zero if not.
for Window Name Substring - will be set to 1 if the window with this substring was found, zero if not.
for Process - will be set to 1 if there is such process, zero if not.
for File Exists - will be set to 1 if the file exists, zero if not.
for Directory Exists - will be set to 1 if the directory exists, zero if not.
for Windows Version - will be set to 1 if the user has unsupported Windows version, zero if not.
for Mutex - will be set to 1 if the mutex exists, zero if not.
Error Message
Optionally specify a text message here. The user will see a warning message box with 'Retry' or 'Cancel' actions.
Close My Application and press 'Retry' button