mpande
Posts: 64
Joined: Tue Sep 28, 2021 1:52 pm

Prevent Upgrade if not Licensed

Thu Sep 29, 2022 7:34 pm

If the license check flags are set "LicenseCheckFlags = FailOnServerError|FailOnWrongRetCode" in the aiu file like so

;aiu;

[General]
LicenseIdCheckURL = https://MySite.net/LicenseCheck
LicenseCheckFlags = FailOnServerError|FailOnWrongRetCode

[MySoftware 2022.3.0919.0]
.....

Running the command Updater.exe /silentall -nofreqcheck -nogui HKLM\SOFTWARE\WOW6432Node\License will check the license and either accept or reject the upgrade correctly.

Running the command Updater.exe /silentall -nofreqcheck -nogui or double clicking on Updater.exe will not check the license and will go ahead and upgrade this. Is there a way to control this?

Catalin
Posts: 6537
Joined: Wed Jun 13, 2018 7:49 am

Re: Prevent Upgrade if not Licensed

Fri Sep 30, 2022 11:37 am

Hello Max,

From what I can see, you have already discusses this with my colleague Daniel in the following thread:

Using licenses to control upgrades

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

mpande
Posts: 64
Joined: Tue Sep 28, 2021 1:52 pm

Re: Prevent Upgrade if not Licensed

Fri Sep 30, 2022 3:36 pm

At that time we were trying to get the license check working correctly. Now we are trying to prevent users from skipping the license check. I take it there is no way to control this?

Catalin
Posts: 6537
Joined: Wed Jun 13, 2018 7:49 am

Re: Prevent Upgrade if not Licensed

Tue Oct 04, 2022 11:30 am

Hello Max,

In the forum thread I've linked above, you can see that there are two options my colleague Daniel has highlighted:
Screenshot_11.png
Screenshot_11.png (730.93KiB)Viewed 6632 times

If I understand correctly, this is what you want to achieve.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

mpande
Posts: 64
Joined: Tue Sep 28, 2021 1:52 pm

Re: Prevent Upgrade if not Licensed

Fri Oct 14, 2022 7:03 pm

To be clear we are checking those two checkboxes, which is why the file has the tags
FailOnServerError|FailOnWrongRetCode
The tags do work correctly when updater is called with the reg key as an argument. They do not work when the updater is called without the reg key as an argument.

Catalin
Posts: 6537
Joined: Wed Jun 13, 2018 7:49 am

Re: Prevent Upgrade if not Licensed

Mon Oct 17, 2022 3:27 pm

Hello Max,
The tags do work correctly when updater is called with the reg key as an argument. They do not work when the updater is called without the reg key as an argument.

The updater has to be called that way in order for this to work.

Please let me know if you have any other questions and I will gladly assist.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”