Old 8th August 2005, 14:32   #1
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
PassDialog plugin

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.

http://nsis.sourceforge.net/wiki/File:PassDialog.zip

-Stu
Afrow UK is offline   Reply With Quote
Old 18th May 2006, 01:39   #2
karabey
Junior Member
 
Join Date: May 2006
Posts: 13
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
karabey is offline   Reply With Quote
Old 22nd May 2006, 11:34   #3
shaunb
Member
 
Join Date: May 2006
Location: Devon, UK
Posts: 65
I wouldnt mind using the password dialog but it doesnt suit my needs perfectly so I guess I'll be fashioning my own . sigh

shaunb is offline   Reply With Quote
Old 22nd May 2006, 19:43   #4
shaunb
Member
 
Join Date: May 2006
Location: Devon, UK
Posts: 65
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
shaunb is offline   Reply With Quote
Old 22nd May 2006, 21:16   #5
shaunb
Member
 
Join Date: May 2006
Location: Devon, UK
Posts: 65
never mind, ! after a bit of reading I've found that installoptions 2 has a predefined password field available

thanks \\o
shaunb is offline   Reply With Quote
Old 13th February 2009, 15:56   #6
PeterChan
Junior Member
 
Join Date: Feb 2009
Posts: 1
Has anyone tried to build the PassDialog plugin? I downloaded and unzipped PassDialog.zip and noticed PassDialog.h and exdll.h are missing.
PeterChan is offline   Reply With Quote
Old 20th February 2009, 01:28   #7
uSs
Junior Member
 
Join Date: Feb 2009
Posts: 2
Hi there,

..somebody knows if there are plans for an unicode version of passdialog?
uSs is offline   Reply With Quote
Old 21st February 2009, 13:20   #8
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Old 21st February 2009, 20:51   #9
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
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
Animaether is offline   Reply With Quote
Old 23rd February 2009, 23:11   #10
uSs
Junior Member
 
Join Date: Feb 2009
Posts: 2
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.
uSs is offline   Reply With Quote
Old 7th August 2015, 10:15   #11
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 339
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

Last edited by r2du-soft; 7th August 2015 at 12:13.
r2du-soft is offline   Reply With Quote
Old 7th August 2015, 19:41   #12
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 339
my problem solved
in "Password.nsi" IDC_PASSWORD is 1214 no 1211 !!! please fix that...

HTML Code:
#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:
HTML Code:
!define IDC_PASSWORD "1211"    TO    !define IDC_PASSWORD "1214"
and added this item before GetDlgItem $R1 $R0 ${IDC_PASSWORD}:

HTML Code:
System::Call user32::SetFocus(iR1) ;set focus on password textbox
my problem solve and focus set in PassDialog PasswordBox


code:

!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)
.
.
.

r2du-soft is offline   Reply With Quote
Old 8th August 2015, 20:43   #13
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 339
Mr Afrow UK Your plugin haven't unicode version?
is possible make that?
r2du-soft is offline   Reply With Quote
Old 9th August 2015, 05:00   #14
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 881
I'll have a go, no promises though.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 10th August 2015, 02:16   #15
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 881
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.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile

Last edited by Anders; 11th August 2015 at 10:19. Reason: Requested attachment removal
JasonFriday13 is offline   Reply With Quote
Old 10th August 2015, 09:30   #16
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 339
Quote:
Originally Posted by JasonFriday13 View Post
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.
really thanks mr JasonFriday13
but when test i see a small problem...if possible fix that:
when i use from this code with new plugin:
PHP Code:
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:
PHP Code:
PassDialog::InitDialog Password /HEADINGTEXT "Please enter your password to continue..." /GROUPTEXT "aaaaaaaaaaaaabbbbbbbbbbbbccccccccccccccccdddddeeeeeeffffffffffffffffffffffffffffffff" 
then i see this picture:


-------------------------------

and end if i goto longer:
PHP Code:
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:


PHP Code:
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]:
PHP Code:
PassDialog::InitDialog Password 

[old plugin version code]:
PHP 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

Last edited by r2du-soft; 10th August 2015 at 10:34.
r2du-soft is offline   Reply With Quote
Old 10th August 2015, 11:44   #17
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 881
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.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 10th August 2015, 12:15   #18
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 339
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
r2du-soft is offline   Reply With Quote
Old 10th August 2015, 13:43   #19
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,169
I feel a bit silly asking this but what is this plugin for? Why not just create a nsDialogs custom page?

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 11th August 2015, 03:57   #20
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 881
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.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump