Update url property - Advanced Installer Community
Ranjith12
Posts: 5
Joined: Thu Feb 14, 2013 10:22 am

Update url property

Hi,

I am trying to use the /setupdatesurl property to set the update url using ant script. But i am getting the follwoing error in command prompt.Can you please help me on this issues,

SetupdateUrl:
[exec]
[exec] Your 'update' Advanced Installer project cannot be used to execute c
ommand 'SetUpdatesUrl'. One of the following types of projects is required 'java
| professional | enterprise | architect'.
[exec]
[exec] Advanced Installer 9.7
[exec]
[exec] Usage:
[exec] AdvancedInstaller.com <path_to_project_file>
[exec] AdvancedInstaller.com /help [<command>] | /? [<command>]
[exec] AdvancedInstaller.com /build <path_to_project_file> { [-buildslist
<builds_list>] | [-configurationslist <configurations_list>] } [-force]
[exec] AdvancedInstaller.com /rebuild <path_to_project_file> { [-buildsli
st <builds_list>] | [-configurationslist <configurations_list>] }
[exec] AdvancedInstaller.com /edit <path_to_project_file> <command>
[exec] AdvancedInstaller.com /execute <path_to_project_file> <command_fil
e_path> [-nofail]
[exec] AdvancedInstaller.com /loadpathvars <path_variables_file_path>
[exec] AdvancedInstaller.com /newproject <path_to_project_file> [-type pr
oject_type] [-lang project_language] [-overwrite]
[exec] AdvancedInstaller.com /register <license_id>
[exec]
[exec] SetUpdatesUrl command:
[exec] /SetUpdatesUrl <updates_url>
[exec]

Thanks,
Ranjith
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Update url property

Hi Ranjith and welcome to Advanced Installer forum.

Thank you for your interest in Advanced Installer.

In order to be able to use the "SetUpdatesUrl" command, you must have on of the following project types: Java, Professional, Enterprise, Architect. You can choose these project types by launching the Advanced Installer application and going in the "New" tab.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Ranjith12
Posts: 5
Joined: Thu Feb 14, 2013 10:22 am

Re: Update url property

hi Eusebiu,

Appericiated on your support,

I am working on the auto update that depends with the daily exe build. For each build for example the version,
1.10.01 will be incremented to 1.10.01 and for each of this version i need to create the update files. So that i need to make it automatic since, through ant by building the update.aip file and setting its version to increase.But for the each new version i need the update files to be created and placed in the server. So for creating the url of the update am trying using the command /SetUpdatesUrl it is not working.Also in the new tab for update i could not find project types: Java, Professional, Enterprise, Architect. please find in the attachment.

I need to dynamically create the update url and to place the update.txt file in the server.

Thanks
Attachments
updateconfig.JPG
updateconfig.JPG (52.37 KiB) Viewed 5680 times
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Update url property

Hi,

Please note that the command SetUpdatesUrl wil set the URL that you can usually set in Updater page from the main project, the one that builds the installation
package (MSI or EXE), not the URL from the updates configuration project (your screenshot).

Unfortunately we have no support for editing update configuration projects from the command line, this improvement is on our TODO list.

What you could try is to make a small program in .NET that copies your aip file, parses it and replaces the URL you want in it. Make sure this executable saves the file in UTF-8 format, otherwise it will break it.

So if you have this executable that modifies the updates configuration project, you can call it in the automated build before you build from Advanced Installer this project.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Update url property

Hello Ranjith,

By now we have added the following command lines which can be used for updates configuration projects:
1. /NewUpdate
2. /SetUpdateDescription
3. /DeleteUpdate

Can you please share with us what else command line options (for updates configuration projects) would you need to be included in Advanced Installer?

Thank you for your feedback.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Update url property

Hello,

New commands that allow you to configure the Update Configuration Project through the CLI are available starting with the version 14.2 of Advanced Installer released on July 26th, 2017.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”