Page 1 of 1
Calling Check for Update from Application
Posted: Sun Jun 10, 2007 2:22 am
by PBC
Just a quick question; I see the Check for Updates facility uses the Windows Scheduler (which is great), but is it possible to get the application to invoke this check?
We need an application menu item for "Check for Update" that the user can invoke and I can't see how this can be done.
Thanks
Phil
Adding update button to your project
Posted: Wed Jun 13, 2007 9:23 am
by modeh
To add the update button to your project, create your own exe file which will read the registry key value at:
Path: \\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\[YourProjectTitle]
Value: ModifyPath
This value contains the path for the uninstall setup process.
Call it as a command line and pass the parameter (/update) with it.
this will run the Update functionality
And call this exe in your application.
This way you will have the update inside the application, and it will be a solution to the bug of disapearing Update shortcut in the start menu by using it as a link to the update instead of installaware link.
Posted: Wed Jun 13, 2007 2:28 pm
by PBC
How can you using this method, return a message to the user that the "Application is up to date" ?
Thanks
Phil
Posted: Sat Jun 16, 2007 8:22 pm
by CandiceJones
You can go ahead and edit the updates.mia update script to display a "no updates found" message box using the MessageBox MSIcode command. The default script quits silently if it does not find any updates but there is no reason why you cannot customize the script.
Posted: Sun Jun 17, 2007 4:23 am
by PBC
Hmm, I suppose that means this can't be done in the CodeGear version?
Phil
Posted: Sun Jun 17, 2007 12:48 pm
by CandiceJones
No, you need access to the MSIcode script for that.
We do have a CodeGear special upgrade offer, check the Resources menu inside your IDE at the welcome page.