Hello,
Having a problem substituting text in a file. I have tried the following and every time I do, I get the error ' Unknown Error' when it gets to the ' files' part of the code. I have tried ASCII, UTF-8, and Binary for the encoding as well as Exact/Regexp for the Type.
Can anyone tell me what I am doing wrong or give me a more descriptive term other than ' Unknown Error' ?
Thank you,
Greg
<substitute>
<encoding>ascii</encoding>
<files>{installdir}/startupsettings.txt</files>
<type>regexp</type>
<substitutionList>
<substitution>
<pattern>AUTODBNAME</pattern>
<value>${database}</value>
</substitution>
<substitution>
<pattern>AUTOSESSIONNAME</pattern>
<value>${system_username}</value>
</substitution>
<substitution>
<pattern>AUTOPORT</pattern>
<value>${port}</value>
</substitution>
<substitution>
<pattern>AUTOTONAME</pattern>
<value>${username}</value>
</substitution>
<substitution>
<pattern>AUTOTOPASSWORD</pattern>
<value>${password}</value>
</substitution>
<substitution>
<pattern>AUTOSUNAME</pattern>
<value>${username}</value>
</substitution>
<substitution>
<pattern>AUTOSUPASSWORD</pattern>
<value>${password}</value>
</substitution>
<substitution>
<pattern>USERCERT</pattern>
<value>${installdir}/${username}.crt</value>
</substitution>
<substitution>
<pattern>USERKEY</pattern>
<value>${installdir}/${username}.key</value>
</substitution>
<substitution>
<pattern>ROOTCERT</pattern>
<value>${installdir}/root_cloud.crt</value>
</substitution>
</substitutionList>
Probably the error is the <files>
tag is incorrectly set. It should be:
<files>${installdir}/startupsettings.txt</files>
Instead of (missing dollar symbol in installdir):
<files>{installdir}/startupsettings.txt</files>
I am such a Doofus... Thank you for pointing it out. You would think this would teach me to stop coding at 3AM, but alas, I am to stubborn for that... sigh