set password by code

Max Odendahl max.odendahl "at" t-online.de
Sun Sep 11 09:31:00 2005


Hi,

I am installing vnc with a self created inno setup installation, and would
like to not only set custom ports, but also a password.
How can I write the password directly into the registry, how to encrypt it
correctly?

Best regards
Max