Ansgar Becker
b3b1710c35
Introduce EDatabaseError exception class, so we're able to handle only those and let others raise the exception up to MadExcept. Helps finding non-database related AVs as users are able to get the callstack now. Similar to r3292 but more consistent all over the code now.
2010-04-24 13:56:57 +00:00
Ansgar Becker
d0d015339b
Add dummy GET parameter holding current time, to force loading that file, even after the VCL internals have that file cached somewhere. Fixes issue #1806 .
2010-03-26 18:53:35 +00:00
Ansgar Becker
06333f36bf
Only replace updater tool in temp directory if it has become outdated. Avoids annoyance for users which have whitelisted this .exe in their antivirus or whatever software.
2010-02-23 23:32:49 +00:00
Ansgar Becker
a43edc883f
Implement a new external updater tool, stick that updater.exe as resource to the main executable, release and run it when the user clicks "Download build xyz". The updater itself posts WM_CLOSE messages to all Heidi instances, waits until all instances are gone, and then replaces the .exe with the downloaded one, after having copied a backup file to your temp directory.
2010-02-16 23:58:48 +00:00
Ansgar Becker
4d47af1e9e
Code cosmetic:
...
* Sanitize main unit from unused variables
* Move global variables to public scope
* Bring public vars into some reasonable order
* Move constants to const.inc, unless dependent from some used VCL unit
2010-01-10 17:11:42 +00:00
Ansgar Becker
43b010d227
Inject SVN revision into executable's version infos last segment (4.0.0.[r]). Don't modify main.pas any longer, just version.rc by a new console app.
2010-01-10 13:53:52 +00:00
Ansgar Becker
e356cb7ed7
Sanitize all "uses" clauses from unneeded unit references.
2009-12-22 23:19:56 +00:00
Ansgar Becker
8d5111cf8a
Fix flicker in update checker dialog while downloading a build file.
2009-12-10 18:55:01 +00:00
Ansgar Becker
8aafc3980f
Keep memo with revision logs enabled, even if local executable is up-to-date. Can be useful for reading the changelog at any point. Fixes issue #1452
2009-11-10 22:37:03 +00:00
Ansgar Becker
caec005625
Don't disable the build download button if using a developer build, or if we at some point, accidentally have an "M" in the current revision.
2009-11-05 00:22:47 +00:00
Ansgar Becker
f6a4748081
WinExec() is deprecated in Vista and Windows 7, even in WinXP it was only kept for compatibility to 16 bit applications. Replace these 3 calls with ShellExecute(). Fixes issue #1406 .
2009-11-05 00:20:27 +00:00
Ansgar Becker
909d31fd64
Simplify writing settings to registry:
...
* Keep only one TRegistry object in memory instead of creating a new one in each routine.
* Move out relevant functions and TRegistry object from main to helpers to make them usable globally.
2009-01-03 17:16:11 +00:00
Ansgar Becker
6f8c67aff7
Make the memo for build infos slightly larger in updatecheck dialog. Put notes from more than only the last revision into it. By passing the revision with "?r=123" to the PHP file, it returns all notes from the current up to the used revision (but never more than 10, as TIniFile seems to have a small maximum line size of 2048 chars.
2008-09-21 22:59:09 +00:00
Ansgar Becker
b6e243545d
Updatecheck: Fix displaying the correct filesize of a nightly build while downloading. Read it from the checkfile. The server doesn't include the filesize in the header any longer.
2008-09-13 19:02:19 +00:00
rosenfield.albert
5959297f2d
Bugfix: we're not Internet Explorer, so stop pretending to be.
2008-09-09 11:21:58 +00:00
Ansgar Becker
9a52593dc2
Use Vista's Segeo font for all forms by using the SetVistaFonts() in mainform plus the new routine InheritFont() which simply overtakes fontname and size from the mainform to all other forms.
2008-08-29 18:20:14 +00:00
Ansgar Becker
88d25c902d
Add option "Also check for updated nightly builds" to preferences dialog and implement needed logic in updatecheck dialog and main unit.
2008-05-25 19:35:58 +00:00
Ansgar Becker
2f30ee2e68
Simplify updatecheck: Make unit updatedownload superflous by moving relevant code to updatecheck.pas. Resign from displaying a progressbar for the mostly short download time, instead use the existing status label for a textual progress information.
2008-02-27 19:31:58 +00:00
Ansgar Becker
9f23a9b313
Updatecheck: Find a batchfile-solution to replace the running exe with a downloaded build.
...
TODO: find some sleep command for the batch file, as we sometimes get "access denied" while trying to overwrite the just terminated exe. Seems like taskkill doesn't close all handles itself.
2008-02-23 00:54:02 +00:00
Ansgar Becker
b584aa5ae4
Introduce automatism for calling the updatecheck dialog. User can set the interval how often this is done in preferences dialog (default interval: 3 days, can be completely disabled). The automatic calling of this dialog should not disturb anyone as it's closed immediately if there are no updates available or if a developer version with an unknown revision is used.
...
Some GUI controls on the dialog had to be moved around as well as some lines of code so everything works well with the automatic dialog closing.
2008-02-19 19:44:33 +00:00
Ansgar Becker
b9f615f024
Minor fix for updatecheck: Set the font color of the correct TMemo after a button has been disabled.
2008-02-14 23:04:05 +00:00
Ansgar Becker
32a4c08a8b
Enhancements and fixes for updatecheck dialog:
...
- Fix URL opened by btnBuild
- Fetch and display date, revision and note of release/build
- Put the download buttons into separated TGroupBoxes and add a TMemo for Notes above them
- Enable a download button if "download revision" > "current revision". Enables a more exact comparision, especially for releases.
- Remove dodgy "refresh" icon on form.
If you stumble across this compiler notice: "FileAge(File)" is deprecated, while the used overloaded method "FileAge(File, DateTime)" is not. See also: http://groups.google.com/group/borland.public.delphi.rtl.win32/browse_thread/thread/9792bef1ee37a298/75b96783bb4862ee
2008-02-14 20:24:02 +00:00
Ansgar Becker
638b69ea85
Add feature 1769207 "Automatic Software Update":
...
Implements a simple dialog which tells the user if there is some new release or nightly build available. Parses http://www.heidisql.com/updatecheck.php as a .ini file. Download buttons just start the webbrowser currently.
Todo: Automatic invocation of this dialog at regular intervals (for example once a week)
Todo: Automatic download + update + restart
2008-02-10 23:29:39 +00:00