Need to check if application instance is running



  • Avatar

    You can check if a specific process is running with the processTest rule:

    Though that will not tell you whether the process was launched for the exact same path that you want to write to, though it probably is.

    You can also use the isFileLocked to detect whether a specific file is locked. This will be useful mostly for Windows, as in most cases OS X and Linux will let you overwrite a file in use.

    On Windows you can also set the property replaceLockedFilesOnReboot and if any files are in use, the user will be prompted for a reboot at the end of the installation and when that happens the files will be replaced during the Windows boot process

  • Avatar

    Can I pass in a full path to the processTest so it only detects the process from that particular path?

  • Avatar

    how can i test if "clientinstalldir/index.html" is running..?? i want to abort installation or uninstallation if "clientinstalldir/index.html" is opened in any of the browsers(like firefox or chrome or Internet Explorer) if the "clientinstalldir/index.html" is opened in any of the browser then i want to give warning to user saying "Quit all browsers before installation or uninstallation"

Please sign in to leave a comment.