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. outlook.exe does not exist
Qt 6.11 is out! See what's new in the release blog

outlook.exe does not exist

Scheduled Pinned Locked Moved Solved General and Desktop
15 Posts 6 Posters 4.9k Views 2 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.
  • VRoninV Offline
    VRoninV Offline
    VRonin
    wrote on last edited by
    #4

    @nicholaslee said in outlook.exe does not exist:

    Am I adding the environment wrongly?

    Yes, you are adding a variable named OUTLOOK while you should edit the variable called PATH to add C:\Program Files\Microsoft Office\root\Office16 to the ; separated list

    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
    ~Napoleon Bonaparte

    On a crusade to banish setIndexWidget() from the holy land of Qt

    1 Reply Last reply
    4
    • N Offline
      N Offline
      nicholaslee
      wrote on last edited by
      #5

      @VRonin Thanks for the speedy reply
      0_1531473330358_pathenvironment.PNG
      I deleted my invalid outlook variable and edited the path variable but it still gives me the same error.
      I tried to remove the last 'OUTLOOK.EXE' but still gives me same error.

      1 Reply Last reply
      0
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #6

        Does the error still reference D:\Desktop\build-Outlook-Desktop_Qt_5_0_2_MinGW_32bit-Debug\debug\Outlook.exe ?

        I tried to remove the last 'OUTLOOK.EXE'

        'OUTLOOK.EXE' and the previous slash should be removed as I wrote above

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nicholaslee
          wrote on last edited by
          #7

          Yes it still reference

          Executable D:\Desktop\build-Outlook-Desktop_Qt_5_0_2_MinGW_32bit-Debug\debug\Outlook.exe does not exist
          

          I removed \OUTLOOK.EXE

          1 Reply Last reply
          0
          • J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #8

            Also,

            your first entry is C:\QT\\5.0.2...
            The double \ is bound to cause trouble.


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            1 Reply Last reply
            1
            • VRoninV Offline
              VRoninV Offline
              VRonin
              wrote on last edited by
              #9

              Try putting C:\Program Files\Microsoft Office\root\Office16 at the beginning rather than the end of the list

              "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
              ~Napoleon Bonaparte

              On a crusade to banish setIndexWidget() from the holy land of Qt

              1 Reply Last reply
              1
              • N Offline
                N Offline
                nicholaslee
                wrote on last edited by
                #10

                @J-Hilk Tried, thats not the problem

                @VRonin Still gives me the same error

                1 Reply Last reply
                0
                • sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #11

                  Hmmm, the executable name referenced in the .pro file is qutlook not outlook.

                  Just saying in case it may be important. I have no experience with QAx* so can't even tell if that info is relevant.

                  (Z(:^

                  1 Reply Last reply
                  0
                  • N nicholaslee

                    https://doc.qt.io/Qt-5/activeqt-activeqt-qutlook-example.html

                    I followed this documentation and tried to build a outlook mail web viewer.
                    I managed to build but whenever I try to run it gives me:

                    Executable D:\Desktop\build-Outlook-Desktop_Qt_5_0_2_MinGW_32bit-Debug\debug\Outlook.exe does not exist.

                    Anyone can help me with this? Thanks

                    J.HilkJ Offline
                    J.HilkJ Offline
                    J.Hilk
                    Moderators
                    wrote on last edited by
                    #12

                    @nicholaslee said in outlook.exe does not exist:

                    Executable D:\Desktop\build-Outlook-Desktop_Qt_5_0_2_MinGW_32bit-Debug\debug\Outlook.exe does not exist.

                    Wait a moment, I think we're all on the wrong track here, you're not trying to run Microsoft's Outlook.exe, but rather your own qt program, that creates an Outlook.exe as executable file!?

                    This seems rather like a build/execute-path problem. In 90% of all cases deleting the Buildfolder, build-Outlook-Desktop_Qt_5_0_2_MinGW_32bit-Debug in your case, fixes that.


                    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                    Q: What's that?
                    A: It's blue light.
                    Q: What does it do?
                    A: It turns blue.

                    1 Reply Last reply
                    2
                    • N Offline
                      N Offline
                      nicholaslee
                      wrote on last edited by
                      #13

                      @sierdzio Got that right, my executable name is qutlook

                      This is my code, its pretty much the same as the doc from QT
                      Code --- https://github.com/nicholasleeeee/Outlook
                      QT ----- https://doc.qt.io/Qt-5/activeqt-activeqt-qutlook-example.html

                      @J-Hilk I tried deleting and rebuilding but the same error persist.
                      Basically what I want to do is to integrate MS Outlook into my app.

                      JonBJ 1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #14

                        Hi,

                        You should rather avoid using an already taken name for your application. Depending on what you installed as protections on your machine, that can trigger them into detecting that as some form of attack since the application already exists. And also, as you could realise with this thread, it confuses people.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • N nicholaslee

                          @sierdzio Got that right, my executable name is qutlook

                          This is my code, its pretty much the same as the doc from QT
                          Code --- https://github.com/nicholasleeeee/Outlook
                          QT ----- https://doc.qt.io/Qt-5/activeqt-activeqt-qutlook-example.html

                          @J-Hilk I tried deleting and rebuilding but the same error persist.
                          Basically what I want to do is to integrate MS Outlook into my app.

                          JonBJ Offline
                          JonBJ Offline
                          JonB
                          wrote on last edited by JonB
                          #15

                          @nicholaslee
                          It is unclear why you should ever receive the message:

                          Executable D:\Desktop\build-Outlook-Desktop_Qt_5_0_2_MinGW_32bit-Debug\debug\Outlook.exe does not exist.
                          

                          The executable for your project should be that path but with Qutlook.exe instead of Outlook.exe at the end.

                          The question is where your Outlook.exe is coming from. I do not believe your app is getting as far as any attempt to use/contact any MS Outlook stuff, it is failing to find the executable of your app to run in the fist place. It seems to be attempting to run the wrong executable name. You could at least test that by having your code output a message very first thing, which I think you will not see.

                          Furthermore, the path includes build-Outlook-Desktop_Qt_5_0_2_MinGW_32bit-Debug. Why is that Outlook and not Qutlook? Did you name the project Outlook rather than Qutlook at some point?

                          I would look carefully at your project.

                          1 Reply Last reply
                          2

                          • Login

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