This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Installshield custom action passing value with % to dll
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 22, 2012
06:27 AM
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:
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:
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 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.
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 25, 2012
01:06 AM
Yes you are right !! thanks for the help .. the problem was with the code ..