Skip to content
⌘ NSIS Forum Archive

Get password with CreatePassword

2 posts

MehdiAli#

Get password with CreatePassword

Hello everybody,

First at all, sorry I have posted this message in the bad section (General Discussion).

Does it exist anyway to get the password with ${NSD_CreatePassword} with NsDialog ?


${NSD_CreatePassword} 30% 80u 25% 13u "Default"

$Pop $PASSWD ; get the return code isn't ?
I have no idea how to get it however I have searched on the forum.

Maybe use ${NSD_CB_SelectString} for the password field but it's only for ${NSD_CB_AddString} ?

Thanks,
MehdiAli#
Hello,

Sorry for the double post.

I have found a solution. CreatePassword is the same than CreateText but the text is hidden.

I just need to write
${NSD_GetText} $PASSWD $THEPASSWORD
in order to get the password.

Thanks,