We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

netrustPS
Posts: 40
Joined: Tue Dec 20, 2016 4:40 am

Get List of Pending Updates in Application

Is there any way to get what exactly are the pending updates for the application? Presently if I use /checknow with the updater I will get a nice GUI showing me whats pending. However our planned workflow has the user updating through our application instead.

Using /justcheck after integration with the application lets me know if there are any updates or none at all. It does not tell me how many or how big those updates are. I guess I can download the update configuration file from the update server and parse it myself, but I wouldnt want to go down that route if possible for obvious reasons.

Please advise! Thank you.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Get List of Pending Updates in Application

Hello,

Indeed, using the /justcheck flag the Updater just checks if new updates are available and uses a return code to inform if any updates are available. I'm afraid we do no have support to inform how many updates are available or how big these updates are.

In this case, you can parse the updates.ini file that the Updater downloads from the server and see the number of updates available and their sizes.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
netrustPS
Posts: 40
Joined: Tue Dec 20, 2016 4:40 am

Re: Get List of Pending Updates in Application

Hi Dan,

I understand, though to be completely honest I am reluctant to parse it myself for the following reasons.

1. It is a proprietary format.
2. There are quite a few complex logic routes in there as well. E.g. replace, dependency, 32/64 bit etc etc.
3. For the updates itself I can integrate with the updater easily. A /silentall call will install all the updates necessary for my present version. However to get a list of updates I will have to open the updates ini file, get the url for the updates file, download the updates file, parse it (Implement logic to read the various fields), decide whether each update in the list is needed for my present version based on my OS 32/64 bit type, what patch or full package it is and what it depends on or replaces etc (Implement logic for this as well) and then finally I will have a list of updates. All these are already available in the updater /checknow GUI, I believe.
4. I doubt I have the time to do this. <-- The true reason.

On the long term basis I feel it would be good if support for this can be added. Maybe a /getupdate flag on the updater will output a updates.txt file in a specific location which has the list of pending updates in a sequential order. The information can be stripped down as well as the application would only need the update name, size and version. All other unnecessary information to the application can be filtered out by the updater.

On the short term basis are you able to provide some utility file/function to do what is mentioned above? This will take away the load of having to reinvent the updates parsing wheel for me and I can switch to the updater if support is added for it in the future.

Of course, whether what I said can fit into your roadmap and whether it brings value to Advanced Installer is a question better answered by yourself. Do let me know the answer to what I have said above. :)

Return to “Building Installers”