Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Password edit box


3 replies to this topic

WJSavoye

WJSavoye
  • Members
  • 19 posts

Posted 03 December 2001 - 18:38

Hi,
I want to create a password edit box that hides the actual characters entered and shows **** instead.
Any idea?
WJSavoye

lasenbby

lasenbby
  • Members
  • 744 posts

Posted 03 December 2001 - 23:40

You would have to create a custom script and every time a key was added (check with ctrlgettext) or deleted, concatenate/remove it in the string var (hidden from the user) and ctrsettext on the edit box with the number of "*"s in the hidden string var.  Even doing this may allow the char to be seen for just a milisecond before hidding it behind the "*"; just not sure.  May want to search this site for "custom" if you need more help on custom dialogs as there is a wealth of information.

If you want to just have a password for your install, you might want to look at componentvalidate.  

If you know how to do it in c++, just create an exe or dll and include it in your setup files pane and access it from  SUPPORTDIR at install time.


Blake Miller Wonder

Blake Miller Wonder
  • Members
  • 121 posts

Posted 05 December 2001 - 23:05

We have dialogs requesting passwords from InstallScript, but we also used a custom dialog template with the password attribute already set on the desired edit field to make it work.  If you have an Installshield 5.X development environment, you can often find some of the 'Sd' dialog scripts in there and base your own InstallScript dialog code on an existing InstallShield dialog's code.  I found that trying to apply the password attribute to an edit field at runtime does not work.

arfinsd

arfinsd
  • Members
  • 28 posts

Posted 08 July 2002 - 18:38

You can create a password edit box by editing your _IsUser.dll as a resource in VC++. When you create the edit box, just check the property that says "Password", and any text that is entered is masked.
Alex Ferguson
www.SolimarSystems.com