A plugin which displays 4 imbedded dialogs: UserPass (username & password), Password (password), Serial (customisable serial dialog), and InputBox (single input text box). This plugin can be used when security is necessary for the inputted details.
-Stu
PassDialog plugin
20 posts
Hi,
Could someone tell me how to make Serials for Serial.nsi ??
I see here only 'aaaa' for 5 Fields. Nothing to generate Serial with Keygen or something else?
Regards
karabey
Could someone tell me how to make Serials for Serial.nsi ??
I see here only 'aaaa' for 5 Fields. Nothing to generate Serial with Keygen or something else?
Regards
karabey
I wouldnt mind using the password dialog but it doesnt suit my needs perfectly so I guess I'll be fashioning my own . sigh
🙂
🙂
I have been playing with the password mask character as for some reason I can't get the default password dot to show up using your passdialog, it shows another character.
however I can't get the exact character and have managed to use another 'black dot' char (as its called in arial font), it looks ok but I'd rather have the default password mask as this one has spaces inbetween dots.
I'll have to play with it some more to actually get the right character
however I can't get the exact character and have managed to use another 'black dot' char (as its called in arial font), it looks ok but I'd rather have the default password mask as this one has spaces inbetween dots.
I'll have to play with it some more to actually get the right character
never mind, ! after a bit of reading I've found that installoptions 2 has a predefined password field available
thanks \\o
thanks \\o
Has anyone tried to build the PassDialog plugin? I downloaded and unzipped PassDialog.zip and noticed PassDialog.h and exdll.h are missing.
Hi there,
..somebody knows if there are plans for an unicode version of passdialog?
..somebody knows if there are plans for an unicode version of passdialog?
There is no PassDialog.h and the exdll.h is included with NSIS. I do not have plans to build a Unicode version, but the source is there so you are welcome to do it yourselves. You just need Visual Studio 6 or later.
Stu
Stu
Would nsDialogs respect the unicode, wherever uSs seems to need it?
It should certainly be possible to build the various dialogs from PassDialog as nsDialogs pages, but I'm not too sure about the above 🙂
It should certainly be possible to build the various dialogs from PassDialog as nsDialogs pages, but I'm not too sure about the above 🙂
Ok, Thank you mr Afrow ..is started on unicode version last week and has been hard for me but is looking well ..I will contrib with the unicode version when I have it done.
hi mr Afrow UK
i how can automatic focus on password textbox on your PassDialog plugin? "Password.nsi"
i need when open page "enter password",focus automatic on password textbox?
thanks
i how can automatic focus on password textbox on your PassDialog plugin? "Password.nsi"
i need when open page "enter password",focus automatic on password textbox?
thanks
my problem solved
in "Password.nsi" IDC_PASSWORD is 1214 no 1211 !!! please fix that...
i change this item:
and added this item before GetDlgItem $R1 $R0 ${IDC_PASSWORD}:
my problem solve and focus set in PassDialog PasswordBox
in "Password.nsi" IDC_PASSWORD is 1214 no 1211 !!! please fix that...
#define IDD_DIALOG1 101 #define IDD_DIALOG2 102 #define IDD_DIALOG3 103 #define IDD_DIALOG4 104 #define IDC_GROUPBOX 1210 #define IDC_LABELH 1211 #define IDC_LABELA 1212 #define IDC_LABELB 1213 #define IDC_PASSWORD 1214 #define IDC_SERIAL 1215 #define IDC_USERNAME 1215 #define IDC_INPUTBOX 1215
i change this item:
!define IDC_PASSWORD "1211" TO !define IDC_PASSWORD "1214"
System::Call user32::SetFocus(iR1) ;set focus on password textbox
!define IDC_PASSWORD 1214
.
.
.
Function PasswordPageShow
!insertmacro MUI_HEADER_TEXT "Enter Password" "Enter your password to continue."
PassDialog::InitDialog /NOUNLOAD Password /HEADINGTEXT "Enter a password dammit!!!" /GROUPTEXT "In 'ere \/"
Pop $R0 # Page HWND
SendMessage $R1 ${EM_SETPASSWORDCHAR} 178 0 ;for the fix password security character * must move this line to top GetDlgItem..... (1)
GetDlgItem $R1 $R0 ${IDC_PASSWORD} ;(2)
System::Call user32::SetFocus(iR1) ;set focus on password textbox ;(3)
.
.
.
Mr Afrow UK Your plugin haven't unicode version?
is possible make that?
is possible make that?
I'll have a go, no promises though.
Good news, it only took a few hours. I added Unicode support, and added 64 bit support. I also upgraded to the 2.42+ plugin API. I did my testing on the 64 bit version, and I found and fixed a couple of bugs. I updated the examples, and I also fixed the password.nsi example and added a comment. I also added a changelog entry in the readme with these fixes.
I just need Afrow UK's approval before putting up on the wiki.
I just need Afrow UK's approval before putting up on the wiki.
really thanks mr JasonFriday13Originally Posted by JasonFriday13 View PostGood news, it only took a few hours. I added Unicode support, and added 64 bit support. I also upgraded to the 2.42+ plugin API. I did my testing on the 64 bit version, and I found and fixed a couple of bugs. I updated the examples, and I also fixed the password.nsi example and added a comment. I also added a changelog entry in the readme with these fixes.
I just need Afrow UK's approval before putting up on the wiki.
but when test i see a small problem...if possible fix that:
when i use from this code with new plugin:
PassDialog::InitDialog Password /HEADINGTEXT "Please enter your password to continue..." /GROUPTEXT "aaaaaaaaaaaaabbbbbbbbbbbbccccccccccccccccddddd" if my GROUPTEXT long then i cant see that till end!!se picture please:

-------------------------------
and when i use longer GROUPTEXT with this code:
PassDialog::InitDialog Password /HEADINGTEXT "Please enter your password to continue..." /GROUPTEXT "aaaaaaaaaaaaabbbbbbbbbbbbccccccccccccccccdddddeeeeeeffffffffffffffffffffffffffffffff" then i see this picture:
-------------------------------
and end if i goto longer:
PassDialog::InitDialog Password /HEADINGTEXT "Please enter your password to continue..." /GROUPTEXT "aaaaaaaaaaaaabbbbbbbbbbbbccccccccccccccccdddddeeeeeeffffffffffffffffffffffffffffffffgggggggggggggggggggg" i see GROUPTEXT in password thext box!:picture:

[Old Plugin]:
But when i use from this code in old plugin:
PassDialog::InitDialog /NOUNLOAD Password /HEADINGTEXT "Please enter your password to continue..." /GROUPTEXT "aaaaaaaaaaaaabbbbbbbbbbbbccccccccccccccccdddddeeeeeeffffffffffffffffffffffffffffffff" i see that true:
[New Written]:
mr JasonFriday13 ,i found One case was found but not solve my problem :
you Not used /NOUNLOAD before Password .....
[new plugin version code]:
PassDialog::InitDialog Password [old plugin version code]:
PassDialog::InitDialog /NOUNLOAD Password new version plugin has two problem:1-) in new plugin focus on password textbox no fix
2-) GROUPTEXT come down ..... and in end of word i see a Square
I didn't change the code codebase, I just made it compatible with unicode and 64 bit.
I updated the plugin API, you must use 2.42 and above, that's why I removed /NOUNLOAD.
1. That's a feature request, not a bug. The original code didn't set focus.
2. This is because the groupbox character limit is 32, same as the old plugin. You are seeing different results because the compiler is much newer and is arranging the variables differently. Count the characters, you will see there are 32, then a box. The string should be null terminated, but it's not, so the string overflows into another allocated variable somehow. Both plugins show the same problem differently.
The practical limit is about 64 characters, as that's how wide the groupbox is. I can increase all of the limits up to the nsis string limit of 1024, that's an easy fix.
I'm not adding features though, just be happy you got a unicode version AND you got it so quickly. Most people don't do stuff on demand unless they are being paid. I only did it because someone asked. I don't mind a challenge every now and again.
I updated the plugin API, you must use 2.42 and above, that's why I removed /NOUNLOAD.
1. That's a feature request, not a bug. The original code didn't set focus.
2. This is because the groupbox character limit is 32, same as the old plugin. You are seeing different results because the compiler is much newer and is arranging the variables differently. Count the characters, you will see there are 32, then a box. The string should be null terminated, but it's not, so the string overflows into another allocated variable somehow. Both plugins show the same problem differently.
The practical limit is about 64 characters, as that's how wide the groupbox is. I can increase all of the limits up to the nsis string limit of 1024, that's an easy fix.
I'm not adding features though, just be happy you got a unicode version AND you got it so quickly. Most people don't do stuff on demand unless they are being paid. I only did it because someone asked. I don't mind a challenge every now and again.
mr JasonFriday13 I really thank you for doing this kindness
I mean the problem was in the previous version...and just i have problem with groupbox in password.nsi...
if is possible in another kindness fix groupbox character string...
really really thanks
I mean the problem was in the previous version...and just i have problem with groupbox in password.nsi...
if is possible in another kindness fix groupbox character string...
really really thanks
I feel a bit silly asking this but what is this plugin for? Why not just create a nsDialogs custom page?
This plugin was written way back in 2005 before nsDialogs was written, and it hasn't been touched since 2006. I like a challenge of porting NSIS v2.x code to NSIS v3.x. I'm going to publish this file on the wiki this time, as I feel this version is superior. I'm porting plugins one at a time, I think this is the third one I've done that isn't my code.
Please remove my attachment above, thanks.
Grab the new version from here: http://nsis.sourceforge.net/PassDialog_plug-in.
Please remove my attachment above, thanks.
Grab the new version from here: http://nsis.sourceforge.net/PassDialog_plug-in.