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)

<< < (7/18) > >>

seedling:
here's some code to drop into your project to call the dcupdater
(this is borland builder code. adjust for your compiler)


--- --- // store application path
AnsiString AppPath = ExtractFilePath(Application->ExeName);

           // fix working path to AppPath
SetCurrentDir(AppPath);

// dcupdate filename without extension
AnsiString AppName = "<yourappname>";

// append path with dcuhelper file
AnsiString dcufullpath = (AppPath + "\\dcuhelper.exe");

// create command line arg string
AnsiString comlineargs = ("-ri " + AppName + " \"" + AppPath + "\" \"warning\" -show");

// run dcupdater tool
ShellExecute(NULL,"open",dcufullpath.c_str(),comlineargs.c_str(),NULL,SW_HIDE);

mouser:
Thanks for posting that seedling  :up:

Deozaan:
I've got some weird behavior with dcuhelper that we talked about in IRC. But I thought I'd post about it here in case you needed more information on what was happening.

I've been getting dcuhelper to work with my Universe project. Following along with the methods mentioned in this thread, I've placed dcuhelper in it's own directory inside the application directory, and I call dcuhelper.exe with a batch file in the Universe directory. Directory structure is like so:

Universe\dcuhelper\dcuhelper.exe
Universe\universe.dcupdate
Universe\update.bat

The batch file contains the following:


--- ---dcuhelper\dcuhelper.exe -ri "Universe" "%CD%" "Attention"
Running this batch file on a PC that doesn't have DcUpdater installed brings up a dialog box that says something to the effect that "DcUpdater isn't installed but is required to check for updates. The Universe website and the DcUpdater website will now be opened in your browser."

Then it opens up the Universe website (as defined in the .dcupdate file) and an error 404 for the DcUpdater. The URL it opens to is https://www.donationcoder.com/Software/Mouser/Updater&app=Universe. I'm not sure why it includes the information about the application, but all it needs to do is change the & to an ? and it works properly, redirecting to https://www.donationcoder.com/Software/Mouser/Updater/?app=Universe

The interesting thing about this is that if I supply the wrong path or no path to the .dcupdate file, it only opens the site to download the DcUpdater, with the following (working) URL: https://www.donationcoder.com/Software/Mouser/Updater. It doesn't open the Universe site because it obviously can't find the site if it doesn't have a .dcupdate file to read.

mouser:
i will fix this in next day or two and then try to implement your other ideas through august.

mouser:
dcuhelper.zip has now been updated, download from here: https://www.donationcoder.com/Software/Mouser/Updater

  v1.03.01 - August 1, 2008 - added -t commandline option
              fixed bug in opening dcupdater page
              improved dialog on updater not installed
              if no commandline options are passed it will try to load .dcupdate file in current dir and check for updates

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version