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
- :
- handling special characters in response file
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
‎Jul 26, 2006
06:07 PM
handling special characters in response file
I'm working at gathering LDAP configuration information from the user and storing it when the -options-record option is specified. The problem is that some of these strings include numerous equal signs, such as the following:
"cn=Admin,ou=groups,o=foo.com,dc=foo,dc=com"
While these values are written to the file without error, when it comes time to read these variables back in with the -options option the string is cut-off at the first equals sign. For example, the above string is cut-off to "cn".
I've tried to find a way to express this in the response file so that the parser includes characters past the equals sign. Encasing the string in single or double quotes fails to work and prefacing each equal sign with a backslash doesn't work either.
Any ideas?
"cn=Admin,ou=groups,o=foo.com,dc=foo,dc=com"
While these values are written to the file without error, when it comes time to read these variables back in with the -options option the string is cut-off at the first equals sign. For example, the above string is cut-off to "cn".
I've tried to find a way to express this in the response file so that the parser includes characters past the equals sign. Encasing the string in single or double quotes fails to work and prefacing each equal sign with a backslash doesn't work either.
Any ideas?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 27, 2006
12:52 PM
If there's a way to do this, I wasn't able to find it. We ended up requiring a different character (I believe it was "^") in place of the "=" char in the response file. Then we just do a character replace in a custom event to change it back to the "=".
-ben
-ben
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 27, 2006
01:45 PM
Thanks, Ben, I appreciate the response. Somehow I'm not surprised that the only alternative is to once again work around InstallShield rather than work with it.
The idea of substituting a character had occurred to me as well -- preferably, this would be a character that's illegal to use in an LDAP search filter. According to the LDAP RFCs, though, LDAP is fairly liberal in what it will allow in a search filter. So that leaves picking a character that our customers are unlikely to use. *sigh*
That said, the "^" character seems like a good choice. Thanks for the idea.
The idea of substituting a character had occurred to me as well -- preferably, this would be a character that's illegal to use in an LDAP search filter. According to the LDAP RFCs, though, LDAP is fairly liberal in what it will allow in a search filter. So that leaves picking a character that our customers are unlikely to use. *sigh*
That said, the "^" character seems like a good choice. Thanks for the idea.