Wed Dec 12, 2018 11:02 am
Hello and welcome to our forums,
Unlike Advanced Installer's regular files or resources, "Temporary Files" are copied on the target machine at the beginning of the installation and are deleted at the end of it, ensuring you have access to them throughout the entire install process.
Temporary Files are copied during the CostFinalize standard action, at the beginning of the setup and removed during the InstallFinalize standard action.
Now, Pre-Install prerequisites are additional packages that are installed before the MSI is launched. The pre-install prerequisite and the main package are two different processes.
In your scenario, you are trying to access a file that extracted to the temporary folder before it is actually extracted, leading in you being unable to open the file.
In order to make this work, simply move your hyperlink control on a dialog from your main package (e.g. "WelcomeDlg" from under the "FIrst Time Install").
The solution above should work, because the "CostFinalize" standard action takes place before the "WelcomeDlg" is displayed, so, when you will try to access the PDF file, it will be present on the machine (in the %temp% folder)
Hope this helps.
Kind regards,
Catalin