Emmett_Brown
Posts: 4
Joined: Thu Jun 25, 2009 12:45 pm

Passing parameters through Custom Action Data

Hi,

The problem I faced today and could not find a solution neither in help nor in old forum posts is passing two properties through Custom Action Data. Here there are the details:

Custom action is a function from a certain dll.
I want to pass a path to a temporary file and a path to an installed file. To make it easier to extract these two paths in the dll function I add "|" symbol between the properties. The Action Data field contains the following string:
[&TempFile]|[#InstalledFile]

In the MSI logs I see that only the path to the temporary file has been passed. Neither installed file path nor "|" symbol is visible. Exchanging the order of the parameters does not make any difference (again only the path to the temp file is visible). To workaround this I pass folder name containing the temporary file and make a path manually within the custom action:
[FolderName]|[#InstalledFile]

Am I doing anything wrong?

Kind regards,

Emmett Brown
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Passing parameters through Custom Action Data

Hi Emmett,

Most likely the file reference is incorrect or the file is not installed. This is why the value is empty. If this is not the case, can you please send us the .AIP (project) file you are using and a verbose log of the installation file to support at advancedinstaller dot com so we can investigate it?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Passing parameters through Custom Action Data

Hi,

This behavior was caused by a bug in Advanced Installer. A fix has been implemented and will be available in Advanced Installer 7.4.

Thank you for bringing it to our attention.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”