Calling Check for Update from Application

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

Calling Check for Update from Application

Postby PBC » Sun Jun 10, 2007 2:22 am

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

Postby modeh » Wed Jun 13, 2007 9:23 am

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

Postby PBC » Wed Jun 13, 2007 2:28 pm

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:

Postby CandiceJones » Sat Jun 16, 2007 8:22 pm

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
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

PBC
Posts: 4
Joined: Sun Jun 10, 2007 2:11 am
Location: United Kingdom

Postby PBC » Sun Jun 17, 2007 4:23 am

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:

Postby CandiceJones » Sun Jun 17, 2007 12:48 pm

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

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/


Return to “Non-Technical”

Who is online

Users browsing this forum: No registered users and 2 guests