Announcement

Collapse
No announcement yet.

Open PDF after install

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Open PDF after install

    Hello Ulrich.
    Hope you are well

    The problem has been briefly described here however it was 6 years ago and probably something might have changed since that time...
    https://forums.indigorose.com/forum/...n-adobe-reader

    While in Windows 7 everything worked flawlessly, in Win 10 the Acrobat Reader does not want to open the file - instead, a process is created but nothing displayed.



    --result = Dialog.Message("Notice", SessionVar.Expand("%ManualState%"), MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    if (SessionVar.Expand("%ManualState%") == "open") then
    -- MANUAL PATH !!!!!!!!!!!!!!!!!!!!!!!!
    File.Open(SessionVar.Expand("%AppFolder%\\Document s\\Manual.pdf"), "", SW_MAXIMIZE);
    end
    -- advance to the next screen
    Screen.Next();


    I have double'checked that the state is set as "open" indeed, so everything seems to be correct code-wise... Any help would be highly appreciated!

  • #2
    I've tried this too:
    Shell.Execute(SessionVar.Expand("%AppFolder%\\Document s\\Manual.pdf"", "open", "", "", SW_SHOWNORMAL, false);
    ...but the result is just the same.

    The AcroRd32.exe process is running but no document displayed. And when this happens - Acrobat crashes completely and it is not possible to even manually open any PDF documents until you kill all the processes.

    Comment


    • #3
      PS: if I change the default PDF viewer to f/e Chrome, then everything works perfectly. Unfortunately, I doubt that most end-users use browsers for opening PDFs...

      Comment


      • #4
        Please disregard, I have found the solution in the Acrobat itself. It had nothing to do with SF apparently.

        Comment


        • #5
          Hello, what was the setting you changed in Acrobat to make it work? This might be helpful to others...

          Ulrich

          Comment


          • #6
            I have the same problem.
            I have discovered that if I disable the option "Enable Protected Mode at startup" in Adobe Reader DC App then it works.

            https://www.adobe.com/devnet-docs/ac...otections.html

            Comment


            • #7
              Another option to disable Protected Mode in Adobe Reader
              https://tdsheridanlab.com/how-to-dis...rotected-mode/

              Comment

              Working...
              X