cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ArunBalaji
Level 2

Installshield custom action passing value with % to dll

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:
Labels (1)
0 Kudos
(2) Replies
MichaelU
Level 12 Flexeran
Level 12 Flexeran

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.
0 Kudos
ArunBalaji
Level 2

Yes you are right !! thanks for the help .. the problem was with the code ..
0 Kudos