Inno Setup: how to start Adobe Reader and display a PDF file

I am trying to run Adobe Reader at the end of the installation to display the readme file. I use PDF because I need to display some images. My inno setup script fails with "File could not be executed: Create Process failed, code 267, directory name is invalid."

I tried with a quote and without a quote. File name: The path has spaces, however, while reading the documentation, inno will take care of the path with spaces (is this right?).

BTW - Adobe is installed (or the user must install it before installing the application). In my case, it is already installed.

The code sniper that I use:

[Tasks]
Name: StartAfterInstall; Description: Display the PDF Readme File

[Run]
Filename: "{reg:HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AcroRd32.exe,@AcroRd32.exe} {app}\readme.pdf"; Tasks: StartAfterInstall
+4
source share
1

PDF PDF . , , shellexec [Run] PDF. Windows, , PDF:

[Tasks]
Name: StartAfterInstall; Description: Display the PDF Readme File

[Run]
Filename: "{app}\readme.pdf"; Tasks: StartAfterInstall; Flags: shellexec runasoriginaluser
+9

All Articles