Mike,
It's very easy to use The following displays a Wait dialog, searches for
coolapp.exe and if detected, sets the default installation folder to the
folder where coolapp.exe is located in.
Display Wait Dialog - Please wait...
Set Variable %SEARCH_FILE% to FUNCTION:Search For File("coolapp.exe")
Close Wait Dialog
If %_SB_ERRORCODE% Not Equals "0" Then
! Previous version detected
Set Variable %_SB_INSTALLDIR% to "%SEARCH_FILE%"
Else
! No previous version available
End
HTH,
Friedrich