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!

mrichter
Posts: 20
Joined: Wed Oct 17, 2007 11:59 am

Updater License Check

Hi,

I want to use the updater with a license check but I cannot figure out how to add a dynamic parameter to the download url. For example I would like to have a updater config file that looks like this;

[General]
LicenseIDCheckURL = http://www.foo.com/license_check.php

[MyEditor45]
Name = MyEditor 4.5
URL = http://www.foo.com/download.php?[b]cust ... GISTRY_KEY][/b]
Size = 3023788
RegistryKey = HKLM\Software\MyEditor\License\CustomerId
Version = >= 4.5
ReleaseDate=25/03/2005

I want to do a check to ensure that the customer is licensed for the version before they are able to download it. I have a php script that does this however it relies on the id of the customer. If you cannot add a parameter to the download url then smart users can simply bypass the updater license check and download and install updates manually. Anyone got any ideas on how to fix this?

Thanks

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

Hi,

I'm afraid that Advanced Installer currently does not support this feature. However, I have added it on our TODO list and it will be available in a future release.

Thank you for your suggestion.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mrichter
Posts: 20
Joined: Wed Oct 17, 2007 11:59 am

Thank you cosmin, I am very surprised by your response since without this the license check feature does not add very much value at all.

Also I think another thing that is required is that the license check should also post the version that is being checked.

eg:

licenseid=%s&languageid=%u&version=%s

:( Mark
Jim Beveridge
Posts: 32
Joined: Wed May 10, 2006 10:54 pm

Possible Solution

When you call the Updater from your application, you can use the "-url" parameter to override the URL in the .ini file. We use this technique to add the customer ID at run-time.

The other alternative might be to update the .ini file to include the CustomerId once the customer registers. However, this strategy can be a problem on Vista because the .ini file is located under Program Files, which is read-only if UAC is enabled.
mrichter
Posts: 20
Joined: Wed Oct 17, 2007 11:59 am

Thanks Jim, that's a great idea. Then I guess you generate the updates.aiu server side to customize those urls? A bit of a hassle but I will give it a go.

Thanks again!

Return to “Common Problems”