View Full Version : Installshield custom action passing value with % to dll

10-22-2012, 06:27 AM
Basic MSI installer - Installshield 2012 spring professional .

I am facing a problem while passing a password field in my custom dialog to a custom action using standard dll .

If the password field contains % , eg:- test123%, the dll shows the value received as test123 .

Why is this happening ? is it installshield's behaviour to remove % ?

if i send test123%% then my dll gets the value as test123% .

Kindly clarify my doubt .:confused:

10-24-2012, 09:52 AM
I was unable to reproduce this with a simple test action:
New Standard DLL > Located in Search Path
DLL File Name: User32.dll
Function Signature: void User32::MessageBoxA(in NUMBER=0, in STRING=[MBTEXT], in STRING=[MBTITLE], in NUMBER=0)

where MBTEXT and MBTITLE were populated with values including single or double percent characters. Exactly the strings I put in there were the ones shown by the message box.

Thus I would examine the code behind what you are calling. Chances are it's somehow processing the percent characters (perhaps by calling a printf-like function) and making the changes you see.

10-25-2012, 01:06 AM
Yes you are right !! thanks for the help .. the problem was with the code ..