PDA

View Full Version : Custom Action of type Error - specifying placeholder in Error Message text



agshah
07-17-2018, 04:37 PM
Hi all,
I created a custom action of type Error.
In this custom action for 'Error Message' I am specifying a property. e.g. [MYERR_MSG]

MYERR_MSG is a translatable property set to a string in string editor whose value is : %P is already installed.

When the custom action gets execute the error message displayed is "%P is already installed."
%P does not get replaced by product name. How do I get it to be replaced by product name at runtime.

thanks.

Jenifer
07-27-2018, 01:57 PM
Hi all,
I created a custom action of type Error.
In this custom action for 'Error Message' I am specifying a property. e.g. [MYERR_MSG]

MYERR_MSG is a translatable property set to a string in string editor whose value is : %P is already installed.

When the custom action gets execute the error message displayed is "%P is already installed."
%P does not get replaced by product name. How do I get it to be replaced by product name at runtime.

thanks.


Hi

To set error message ,try setting it like [PRODUCTNAME] is already installed" instead %P format. Installshield might not know %P format & all.