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!

Epsilon
Posts: 25
Joined: Wed Dec 27, 2006 1:09 am
Location: New Zealand
Contact: Website

Can Updater run a CGI Script on the Download Server?

Is there any way the Updater.exe program can run a CGI script on the Server?

I would like to be able to run a script which counts the number of times people update my installed software using the 'Check for Updates' option.

AI is a great product!

Richard Williams
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Can Updater run a CGI Script on the Download Server?

Hi Richard,

Since the Updater accesses an URL, this URL can contain any type of script which does what you need. However, please make sure that this script doesn't prevent the Updater from checking if there are updates available.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Epsilon
Posts: 25
Joined: Wed Dec 27, 2006 1:09 am
Location: New Zealand
Contact: Website

Re: Can Updater run a CGI Script on the Download Server?

Hi Cosmin

Thanks for your reply which makes sense and I have tried it out but it was not completely successful.

I replaced the URL referencing the file to be downloaded (TimeLogV4.0.2.exe) so my aiu file contains:

URL=http://www.epsilon.net.nz/cgi/download. ... V4.0.2.exe

However, even though the Updater seems to download the file OK, the downloaded file is simply called 'update' rather than 'TimeLogV4.0.2.exe' and this fails to execute since there is no file extension.

Any ideas why this is happening?

If you enter the URL above into your browser it updates the counter on my server and then prompts to download the file. Any ideas on how to fix this?

Thanks

Richard
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Can Updater run a CGI Script on the Download Server?

Hi,

You are encountering this behavior because the Updater doesn't support the URL redirection. We have this feature on our TODO list and it will be available in a future version.

The solution is this:
- open the updates configuration file on your server with a text editor
- modify the name of the section from "Update" to TimeLogV4.0.2.exe
- do the same for the other updates (if there are any), replacing the name of the section with the name of the package

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Epsilon
Posts: 25
Joined: Wed Dec 27, 2006 1:09 am
Location: New Zealand
Contact: Website

Re: Can Updater run a CGI Script on the Download Server?

Thanks, I had already found that the modification you suggest fixed the problem.

I'm glad to know this is the official solution for now.

Richard

Return to “Feature Requests”