PDA

View Full Version : SB Request - Close the program



NewsArchive
07-03-2014, 12:36 AM
Friedrich,

I've got one thing that my clients take some getting used to.. when a
client has the program check for updates, and one exists, it tells them
to shut down the program. I have a huge 'Exit Program Completely' button
in the background. But do you think they can see it... of course not,
they click OK, and of course it tells them the program is running and
can't update. Not a huge deal, but a real PITA. Some people just do the
same thing over and over, getting the exact same results. (because
they're insane!)

So, I'm trying to figure out a way to have setupbuilder tell my program
to shut down at that right moment in time... any idea's?

Thanks,
--
Ray Rippey
VMT Software

NewsArchive
07-03-2014, 06:55 AM
Hi Ray,

Absolutely no problem. You can let the SB installer instruct your program
to close down. Of course, your program has to handle the required events
(IIRC, there is a Clarion template available to handle this for you).

See attached "quick and dirty" code snippet.

BTW, you can even "kill" the app, but it is not recommended. The standard
way is to hanle the close down events.

Friedrich

NewsArchive
07-03-2014, 06:55 AM
BTW, you only have to add the code to your update installer...

Friedrich

NewsArchive
07-03-2014, 06:56 AM
Ray,

I have my app check for updates and if they are available I give them
the option of installing the update when the close the application.

So, on close, if they chose, I launch the webupdate process....
Users are still frequently confused, but it's better....

Paul

NewsArchive
07-03-2014, 01:19 PM
CleanCloseDown (ships with Clarion) works very well. But you have to
remember to add it to your program.

--

Russ Eggen
RADFusion International, LLC

NewsArchive
07-03-2014, 10:59 PM
Thanks. I've got a button that actually sets a variable so that when the
procedure returns to the main, the main does the close down. I forgot
about cleanclosedown.

But I'll get into this script and try it out. Thanks.

Ray