Trying to create a countdown timer custom dialog
Hi,
Like the product so far...
I am trying to create a custom dialog that displays a countdown timer and updates the progress control automatically. Similar to the example dialog8 in Custom Dialog Demo 1.sb8 except without the need to click something. The updating should happen similar to Dialog 1.sb8 in the examples. Additionally I need custom buttons to be displayed so the progress dialog is not sufficient since I cannot add buttons to the dialog.
So far, I can get it to update once, then not again after that. Is this even possible without some sort of user intervention?
What I am trying to do is create a popup that has a pre-determined lifetime, say 5 minutes, before the install cancels automatically when the timer runs out, unless the user clicks an Install button before the timer runs out. The progress bar showing the time elapsed is ideal for what we need, or even a countdown time, "you have **.** minutes left before exit..."
Again, is this even possible to do? Any advice or hints would be a great help!
Thank you
Kel
Re: Trying to create a countdown timer custom dialog
Kel,
I have to check a few things before answering this question. I'll get back to you ASAP.
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910
--Helping You Build Better Installations
--SetupBuilder "point. click. ship"
--Create Windows 8 ready installations in minutes
--Official COMODO Code Signing and SSL Certificate Partner
Re: Trying to create a countdown timer custom dialog
In the current V8.0 the "timer" can't be handled in custom dialogs. We are doing some Research and Development right now to see if we can add it to the soon coming V8.1. We like the idea very much.
Friedrich
Re: Trying to create a countdown timer custom dialog
Kel,
Thank you again for the interesting idea. I believe we found a solution (a brand new feature) on how to handle this scenario. Regression testing is in-progress.
I'll post more information soon...
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
--Helping You Build Better Installations
--SetupBuilder "point. click. ship"
--Create Windows 8 ready installations in minutes
--Official COMODO Code Signing and SSL Certificate Partner
3 Attachment(s)
Re: Trying to create a countdown timer custom dialog
Kel,
We have enhanced the SetupBuilder 8 installer runtime/compiler and added some new functions based on your idea. There is a new EVENT:ONTIMER option now in the Custom Wizard Dialog Properties to handle your scenario.
If you are interested, please download the following file (compiled with the latest internal SetupBuilder 8.1.) and see the attached screenshots.
http://www.lindersoft.com/projects/CountdownTimer.zip
The soon coming SetupBuilder 8.1 lets you create a custom dialog that displays a countdown timer and updates the progress control automatically. The above demo displays a "You have **.** minutes left before exit..." text and updates the progress bar. If the user clicks "Start Installation Now" then the installer will continue (start). If the Countdown Timer reaches zero, the application terminates. BTW, the demo will not do anything -- it's just a 'quick and dirty' example.
What do you think?
Thanks,
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
--Helping You Build Better Installations
--SetupBuilder "point. click. ship"
--Create Windows 8 ready installations in minutes
--Official COMODO Code Signing and SSL Certificate Partner
Re: Trying to create a countdown timer custom dialog
Quote:
Originally Posted by
linder
There is a new EVENT:ONTIMER option now in the Custom Wizard Dialog Properties to handle your scenario.
Now that's a cool new feature. It's absolutely amazing what you guys do!
Mike
Re: Trying to create a countdown timer custom dialog
Friedrich,
This is a very powerful new feature! I can think of a million useful things I could use that for......... Will this be available in SetupBuilder 8.1 or a later release?
PAUL WILLIAMS
Developer of Governmental Solutions
Re: Trying to create a countdown timer custom dialog
In the script, I see FUNCTION:Percentage and FUNCTION:Convert seconds into "HH:MM:SS" which are not available in my SB version. Are these new functions or already available in my 8.0?
I'm so very excited and looking forward to V8.1 :) This is a new killer feature.
PAUL WILLIAMS
Developer of Governmental Solutions
Re: Trying to create a countdown timer custom dialog
Thank you, Paul :)
Yes, the new EVENT:ONTIMER option will be available in SetupBuilder 8.1.
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
--Helping You Build Better Installations
--SetupBuilder "point. click. ship"
--Create Windows 8 ready installations in minutes
--Official COMODO Code Signing and SSL Certificate Partner
Re: Trying to create a countdown timer custom dialog
I share your excitement :)
Yes, the above mentioned functions will be available in SetupBuilder 8.1.
Friedrich
--
Friedrich Linder
Lindersoft
www.lindersoft.com
--Helping You Build Better Installations
--SetupBuilder "point. click. ship"
--Create Windows 8 ready installations in minutes
--Official COMODO Code Signing and SSL Certificate Partner