ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > DcUpdater

DcuHelper.exe v1.10 (7/12/11) - Update checking for your apps (dcupdater compat)

<< < (6/18) > >>

mouser:
I wanted to describe one thing i will be adding very soon to the dcuhelper.exe utility.

Right now, when your program launches it to check for updates, it finds the dcupdater tool installed on the user's computer and invokes it.

If the main dcupdater tool is not installed, then dcuhelper will tell the user about it, and open the dcupdater web page for them so they can install it if they want.

I'm going to change this slightly so that if the dcupdater tool is not found, it will display a message explaining this to the user and offer them 3 choices:
1. Open the dcupdater web page to learn more about the updater and download it.
2. Open the program's own web page (the program they asked to check for updates for) so they can manually look for an update.
3. Cancel and do nothing.

In this way, even users who do not want to use the updater can be redirected to the program website to check for updates manually.

mouser:
I've uploaded a new version of dcuhelper.exe:

from readme:
//---------------------------------------------------------------------------
This tiny helper utility will let your program check for updates by invoking the
 isntalled DcUpdater tool on their computer, or explaining to them how to get it
 and directing them to the DcUpdater web page (and your program's web page)
 if it's not installed.

For help, more examples, sample scripts, see this thread on our forum:
 https://www.donationcoder.com/forum/index.php?topic=9607.0

Main DcUpdater web page:
 https://www.donationcoder.com/Software/Mouser/Updater/index.html
//---------------------------------------------------------------------------


//---------------------------------------------------------------------------
Version info:
   v1.01.01 - August 16, 2007 - first public release
   v1.02.01 - September 8, 2007 - added dll exports, improved help,
      opens program webpage if updater not installed.
      added version info to usage display (invoke with no arguments).
//---------------------------------------------------------------------------


//---------------------------------------------------------------------------
1. To register your program's directory with the system updater:
   dcuhelper.exe -r "program_labelname" "full_path_to_app_directory"

2. To invoke the updaterwith various commandline options:
   dcuhelper.exe -[r]i "program_labelname" "full_path_to_app_directory" "missingupdatertitle_or_._for_silent" [commandline options to be passed to updater]
   e.g. if they explicitly ask to check for updates, do so and report results no matter what:
    dcuhelper.exe -ri "ProcessTamer" "C:\Program Files\ProcessTamer" "Error"
   e.g. or if you want to check for updates at startup silently (dont report if no update found):
    dcuhelper.exe -ri "ProcessTamer" "C:\Program Files\ProcessTamer" "."

3. To UNregister your program's directory with the system updater (not really necessary):
   dcuhelper.exe -u "program_labelname"

Note: program_labelname is just a unique arbitrary label that is used to create the redirect files (see below).
//---------------------------------------------------------------------------



//---------------------------------------------------------------------------
How does dcuhelper.exe register your program with the updater?
It creates a file:
   %COMMONAPPDATA%\\DonationCoder\\DcUpdater\\RedirectFiles\program_labelname.dcupdateredirect
Which points to your program's directory.
//---------------------------------------------------------------------------



//---------------------------------------------------------------------------
You can also load the dcuhelper.exe from within your program as if it were
 a dll, and invoke it that way (and check for updater path/existence):

extern "C" __declspec( dllexport ) int DLLMainCall(int argc, char** argv);  // returns 0 on success
extern "C" __declspec( dllexport ) char* DLLGetDcUpdaterPath(char *appdir); // blank on not installed
//---------------------------------------------------------------------------

--- End quote ---

lanux128:
If the main dcupdater tool is not installed, then dcuhelper will tell the user about it, and open the dcupdater web page for them so they can install it if they want.-mouser (September 04, 2007, 07:00 PM)
--- End quote ---

mouser, what if the dcupdater tool is installed in a custom folder? i get the message box saying it's not installed..

mouser:
mouser, what if the dcupdater tool is installed in a custom folder? i get the message box saying it's not installed..
--- End quote ---
i'll be fixing this soon.

lanux128:
thanks mouser.. :Thmbsup:

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version