Verify License before applying updates - Advanced Installer Community

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!

cminorm
Posts: 30
Joined: Mon Jan 23, 2012 4:13 pm

Verify License before applying updates

I have placed in all the code and i can verify that the license is being check and a 603 is returned, the the updater proceeds with the update anyways. What am I missing?
CiprianComsa
Posts: 110
Joined: Thu Aug 19, 2010 10:11 am
Contact: Website

Re: Verify License before applying updates

Hi,

I'm not sure why you are encountering this behavior.
Can you please give me more details?

Regards,
Ciprian
__________________________________________________________________________________________________________________________________________________
Ciprian Comsa
Advanced Installer Team
http://www.advancedinstaller.com/
Ciprian Comsa - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cminorm
Posts: 30
Joined: Mon Jan 23, 2012 4:13 pm

Re: Verify License before applying updates

I've create a setup project with a version number of 0.1.0. The product uses server side serial validation that was setup on the licensing page. I then took this project as a base and created a version 0.1.1 version of the installer. I took this approach so that i could create a patch. I then created a patch project between the 0.1.0 to 0.1.1. I've tested the install and had the server return different codes (601,602,603,etc) and the installer would proceed, warn or stop based on the code i got from the server. I then proceeded to test the patches and they worked fine.

The next project i created was the update project. I set it up to use the 0.1.0 to 0.1.1 patch and then worked fine. I then checked the "verify license before applying updates" and tested the updater. According to the server, the updater was checking for valid licenses, but no matter what code was returned, the update was applied.

According to the documentation, if the server sends back a 603 code, the updates should no be appllied. What did I miss?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Verify License before applying updates

Hi Norm,

The server side validation shouldn't be performed in a patch update. At least if it's not deliberately scheduled.
That predefined functionality involves the execution of some custom actions only during a major upgrade. I mean there's no point for validating a validated product and the patch requires the previous version full install on the target machine.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cminorm
Posts: 30
Joined: Mon Jan 23, 2012 4:13 pm

Re: Verify License before applying updates

Let me recap what you are saying. Patches will not be verified. Only major updates will be verified. I'll give this a try and let you know.
cminorm
Posts: 30
Joined: Mon Jan 23, 2012 4:13 pm

Re: Verify License before applying updates

I tested the major update and it fails saying that multiple versions of the product cannont be installed on teh same computer. So what does the verify license used for on the udpater?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Verify License before applying updates

Hi Norm,

That message is shown because you used the next version package with the same Product Code. That package cannot be used as a major upgrade and the error has nothing to do with licensing option.

To author a major upgrade you can follow the steps explained in the Upgrades page.

However if you have "Verify license before applying updates" option enabled in the updates configuration project, the check should be performed as explained in the user guide. Can you please send us that .AIP ( project file ) via e-mail so we can investigate?

My first post on this thread was a reply to our phone conversation when I thought you were referring to implementing the server side serial validation article in a patch.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Verify License before applying updates

This behavior was caused by a bug in Advanced Installer. The fix for it is included in our next release.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”