Calling Check for Update from Application

For all your non-technical questions.
Post Reply
PBC
Posts: 4
Joined: Sun Jun 10, 2007 2:11 am
Location: United Kingdom

Calling Check for Update from Application

Post 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
modeh
Posts: 1
Joined: Wed Jun 13, 2007 9:11 am

Adding update button to your project

Post 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.
PBC
Posts: 4
Joined: Sun Jun 10, 2007 2:11 am
Location: United Kingdom

Post by PBC »

How can you using this method, return a message to the user that the "Application is up to date" ?

Thanks

Phil
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post 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.
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
PBC
Posts: 4
Joined: Sun Jun 10, 2007 2:11 am
Location: United Kingdom

Post by PBC »

Hmm, I suppose that means this can't be done in the CodeGear version?

Phil
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post 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.
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply