Hello and welcome to our forums,
A solution for this will be to add your certificate as a
temporary file in the
"Files and Folders" page.
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.
Add your .cer certificate in the
"Files and Folders" page using the
"Add Temporary Files" toolbar button.
Then you can add your
"InstallCertificate" custom action after the
"Path Resolution" action group and in the
Path field select the file from the
Windows Volume -> Temporary:
- cert.png (118.22 KiB) Viewed 6737 times
Also don't forget that this custom action requires administrative privileges to run, so make sure you check
"Run as Administrator" option from the
"Install Parameters" page.
Hope this helps! If you have any other questions, please don’t hesitate to contact us.
Best regards,
Liviu