How to check if Web update is available inside application

Got a problem you cannot solve? Try here.
fasterfox
Posts: 6
Joined: Tue Jan 14, 2014 10:11 am

How to check if Web update is available inside application

Postby fasterfox » Mon Jan 27, 2014 10:38 am

Dear Experts,

I need some help/validation.

I'm new to InstallAware.
I got working my installer and also the Web Updates for my application, which is kind of complex in terms of the components included.

I still have a problem: I do not how to check if there is an update available for my application, because when is available I need to close all the other components first and then the application itself.

I do know that I can use: /update or /update /s, to get the updates from my application, but I don't know how I can check if there is an update, because in that case I need to run a process, close my application before to get the update.

I read an article explaining how to modify the updates.ini in order to return a code, but is not working or the code that I've included is not correct.

Could be possible to get an additional explanation or a sample of the updates.ini to achieve this task.

Thanks in advance for your help.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: How to check if Web update is available inside applicati

Postby FrancescoT » Mon Jan 27, 2014 1:01 pm

Dear User,

It has nothing to do with the ini file.

If you need a RETURN CODE from your setup package when it is launched using "/update or /update /s", just use the "Terminate with Exit code" command in your Update script.

Obviosly, you need to modify the default update script behavior in order to return an appropriate value ... when required.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

fasterfox
Posts: 6
Joined: Tue Jan 14, 2014 10:11 am

Re: How to check if Web update is available inside applicati

Postby fasterfox » Mon Jan 27, 2014 3:21 pm

Thanks for your reply and sorry for the confusion.

I was talking about the updates script not the UPDATES.INI.

In fact, I have uploaded the changes to my updates script using the return code.

I'm using the Web Updates model "Schedule Updates".
I'd like to get a Return code when there is an update and not to apply the update.
But my script is always returning 0.

Do you have an example related to return codes in the updates script.

Thanks
Attachments
updates.mia.zip
(20.06 KiB) Downloaded 375 times

fasterfox
Posts: 6
Joined: Tue Jan 14, 2014 10:11 am

How to check Web update is available inside application(solv

Postby fasterfox » Tue Jan 28, 2014 9:07 am

Well, after reviewing the update script in more detail, I figured it out where to include the line to get the "Terminate with return code" command to get the return code. Basically, I included an additional parameter in my script, something like

if Variable COMMANDLINE Contains /checkonly -------- (my parameter)
Terminate with Exit code 999 (whatever number)

This code just after the if Variable UPDATE_DOWNLOAD Equals TRUE (Choose updates to download)

Thanks anyway.

:P


Return to “Technical Support”

Who is online

Users browsing this forum: Baidu [Spider] and 60 guests