dhecking
Posts: 3
Joined: Mon Jan 30, 2006 9:02 pm

CommandLine

My desktop is java based.

I would ideally like to be able to call the 'updater /checknow' and get a silent response that I can check in the code that will let me know if there is a newer version available. I want to basically check all the time at startup whether there is a newer version and if so immediately install the newer one and uninstall the older one. I am about to simply implement an http request myself to the updates.ini file on the server and do a basic version comparison myself, if a newer version exists I will then do the standard 'updater /checknow' and let the user install the newer one.

The updates configuration file on the sever has a key called 'CommandLine'. The instructions say that all one needs to do is supply a '/qn' for a silent installation. Are there any other options for this key and what do they do? This might be my answer.

-Dirck
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

The Updater included in the latest version of AdvInst already supports all the functionality you have described. By default, the user selects if he wants to automatically download and install updates (using the "/configure" switch of the Updater), but this can also be done programmatically by writing a certain registry value.

This registry value (of type DWORD) is:
HKCU\Software\Caphyon\Advanced Updater\[ID]\Settings\AutoUpdatePolicy

If this entry does not already exist, you need to create it and set its data to 2. The ID is the same as the Upgrade Code of your package and it can be obtained from the "General" section of the "updater.ini" file (located in the installation folder next to "updater.exe").

In order to read the INI file from a program, you could use an appropriate API function.

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
dhecking
Posts: 3
Joined: Mon Jan 30, 2006 9:02 pm

/checknow silent startup javaclient

Denis,

I will look into this however it might be difficult for me to access the ID value using the API since I am using a java client. Does the java API expose the Upgrade Code? I was hoping that I could just make a call to /checknow at startup and it would silently check for updates and start installing the latest version.

-Dirck
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,
I was hoping that I could just make a call to /checknow at startup and it would silently check for updates and start installing the latest version.
I have added this feature to our TODO list and it will be available in a future release. What exactly do you mean by "startup": the system startup or when your application is launched?

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
dhecking
Posts: 3
Joined: Mon Jan 30, 2006 9:02 pm

The desktop application.

I basically would like it to behave as if it were Java Webstart from an auto-update perspective. Thanks for the replies and interest in adding that as a feature to your future releases. It would make startup a lot less annoying for our users :-)

-Dirck

Return to “Common Problems”