- NSIS Discussion
- "Retry", "Abort" and "ignore" buttons
Archive: "Retry", "Abort" and "ignore" buttons
ramon18
22nd May 2003 13:00 UTC
"Retry", "Abort" and "ignore" buttons
Hi,
When file is in use and "SetOverwrite On" a MsgBox popups and give the user the chance to "Retry", "Abort" and "ignore", How can I avoid the user to "ignore" some file? Give him only the chance to "retry" "cancel" for example, where cancel aborts the installation.
thanks,
Ramon
Joel
22nd May 2003 16:50 UTC
I think that's possible by modifying the Nsis source code :(
Afrow UK
22nd May 2003 19:15 UTC
They realy need to add custom messageboxes, e.g.
MessageBox MB_YES|MB_NO|MB_CANCEL|MB_ICONQUESTION "hello!"
That would be very nice.
-Stu
kichik
22nd May 2003 19:23 UTC
What NSIS has is the standard MessageBox flags. For Yes, No and Cancel use MB_YESNOCANCEL.
Afrow UK
22nd May 2003 19:37 UTC
Sorry, bad custom example.
Looking back at the documentation, I can no-longer remember what messagebox type does not currently exist.
-Stu :)
ramon18
23rd May 2003 07:54 UTC
Hi,
the built in function MessageBox supports all the flags like API MessageBox and its ok I think, but the problem is with files locked or in use if "SetOverwite on", the messagebox type is hardcoded, maybe some new (feature) command like:
AllowSkipFiles off
is possible kichik?
TIA
Ramon
kichik
23rd May 2003 14:18 UTC
Already in the future request list:
http://sourceforge.net/tracker/index...49&atid=373088
Will be done when I get to it (unless someone else beats me to it and submits a patch which will help me a lot).
ramon18
23rd May 2003 16:06 UTC
kichik I already sent you a PM in sourceforge (as Ramon), I have the source code to do this, and is fine for me
Cyas
Ramon
kichik
24th May 2003 11:03 UTC
Although it sounds familiar I can't seem to find it anywhere :(
Could you please point me to it?
ramon18
26th May 2003 11:42 UTC
Code changes
Here is my changes in source code, let me know if you like it
bye
Ramon
kichik
26th May 2003 18:52 UTC
Optimized a bit, added a language string in the NLF for it and uploaded to CVS. Thanks!