[delphizip] Re: more on passwords...

  • From: Randall Sell <randallsell@xxxxxxxxx>
  • To: delphizip@xxxxxxxxxxxxx
  • Date: Tue, 6 Feb 2007 20:09:08 -0800 (PST)

OnPasswordError does give me some level of control - but if you do the pwsAbort 
- it will be followed by a string of error dialogs. "User cancelled operation" 
etc. Even if you raise sysutils.abort, you surface that in a dialog. That is 
just not right. You use abort to "silently" stop things. Not so silent with 
ZipMaster.
What has me more worried is that I have Verbose set to false. Lord knows what 
it would have to say if I set Verbose to true :)

But I don't actually want to prompt the user at all for a PW. The software 
knows the PW. What I'd like it to do is simply show a message like "Software 
does not pair with file, please update your software". and that's it - no more 
error messages. That is not so easy. try it.

I get the feeling that at the heart of ZipMaster - there is a C programmer, not 
a Delphi programmer.

cheers
-randall



"R.Peters" <russellpeters@xxxxxxxxxxx> wrote: I am not sure what your problem 
is with the OnPasswordError event because,
in theory, it gives you the opportunity  to supply a password, skip
extraction of the file or abort the process without the 'user' needing to
know anything.
I do see part of your problem - cannot do unattended encrypt without
password - I now allow that if OnPasswordError event is used.
Unfortunately testing revealed a slight dll problem - trace reveals the used
password so I must make a few more changes.

It is now about 01:00 GMT and the updates should be available in a few hours
(anyone's time).
- Russell Peters
-----Original Message-----
From: delphizip-bounce@xxxxxxxxxxxxx [mailto:delphizip-bounce@xxxxxxxxxxxxx]
On Behalf Of Randall Sell
Sent: Tuesday, February 06, 2007 11:44 PM
To: delphizip@xxxxxxxxxxxxx
Subject: [delphizip] more on passwords...
Importance: High

Well, there must be an easier way...
Now that I have encrypted zips, it is easy to apply them via the password
property. My problem is the lack of control when the password is not
correct. I can obviously write code in the OnPasswordError and show my
message, but I get all sorts of cascading messages for ZipMaster. I don't
really want the user to know (or do they care) that it is password
protected. 

The only way I can sort out is to set Unattended to true. But obviously if
real things go wrong then, I wouldn't know so that's no good.

Seems to me there should be an OnError event. I know I can use OnMessage -
but that is triggered for more then just errors. Even so, I can't seem to
trap an error specifically for the password. It gives GE_Unknown. If I set
Unattended to true, it will give PW_UnatExtPWMiss - but my solution is
starting to look like a hack.

Surely there must be an eloquent solution?

cheers
-randall


 
---------------------------------
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.

-----------
To unsubscribe from this list, send an empty e-mail message to:
  delphizip-request@xxxxxxxxxxxxx
and put the word unsubscribe in the subject.

-----------
To unsubscribe from this list, send an empty e-mail 
message to:
  delphizip-request@xxxxxxxxxxxxx 
and put the word unsubscribe in the subject.


 
---------------------------------
8:00? 8:25? 8:40?  Find a flick in no time
 with theYahoo! Search movie showtime shortcut.

-----------
To unsubscribe from this list, send an empty e-mail 
message to:
  delphizip-request@xxxxxxxxxxxxx 
and put the word unsubscribe in the subject.

Other related posts: