Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Checking if another application is installed
Forum Updated to NodeBB v4.3 + New Features

Checking if another application is installed

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 4.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    misker
    wrote on 15 Feb 2013, 01:03 last edited by
    #1

    Does Qt have a way to check to see if another application is already installed? I'm writing a desktop Qt application that talks to R, and would like to check if it's installed. Perhaps QProcess is the best way to go, but I'm not sure and am open to suggestions.
    Thanks.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on 15 Feb 2013, 01:48 last edited by
      #2

      You can look for its executable in the default location R would install or the usual locations for the system. Look for a configuration file or registry key the R installer/program creates (a Start menu entry for example) or its uninstaller entry. There's no foolproof generic method that I am aware of... if all else fails ask the user to locate it.

      On Windows try under:
      HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\R.exe
      HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\R

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        Zarko Markovic
        wrote on 15 Feb 2013, 10:34 last edited by
        #3

        Take a look at: "http://qt.gitorious.org/qt-solutions/qt-solutions/trees/master/qtsingleapplication":http://qt.gitorious.org/qt-solutions/qt-solutions/trees/master/qtsingleapplication

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on 15 Feb 2013, 10:44 last edited by
          #4

          QtSingleApplication is not going to do anything to help you detect if an application is installed. QtSingleApplication only helps to detect if another instance of the application is already running.

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            Zarko Markovic
            wrote on 15 Feb 2013, 10:49 last edited by
            #5

            [quote author="Andre" date="1360925083"]QtSingleApplication is not going to do anything to help you detect if an application is installed. QtSingleApplication only helps to detect if another instance of the application is already running. [/quote]

            My brain somehow saw already running instead of already installed, my bad sorry to jump in :)

            1 Reply Last reply
            0

            1/5

            15 Feb 2013, 01:03

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved