jrosimo
Posts: 5
Joined: Wed Oct 23, 2024 1:46 am

/GenRegLicense Error Output through command line syntax

Im trying to generate a license using the Command syntax "/GenRegLicense <trial_id> -file <out_file> -<license_element> <value> ..." as shown in this documentation: https://www.advancedinstaller.com/user- ... cense.html . I am able to generate the file and is a valid license but its logging a "File "c:\temp\regLicense.txt" could not be written".

The issue i was able to determine is that when i have a custom license template similar below:
License ID: %ID%
Signature: %SIGN%
Register Until Date: %REG_EXP%
Custom ID: %CUSTOM_ID%

The output "File "c:\temp\regLicense.txt" could not be written" would show up when the CUSTOM_ID value exceed 6 characters. Below is an example of the full command im using, wherein the -CUSTOM_ID value exceeds 6 characters, reducing this to 6 and below will not log the "could not be written" issue:
"C:\Program Files (x86)\Caphyon\Advanced Installer 23.4\bin\x86\AdvancedInstaller.com" /edit "C:\INSTALLER\MyProject.aip" /GenRegLicense Trial -file "C:\temp\regLicense.txt" -COMP_ID 123456789101112 -ID "TestId" -REG_EXP "10/21/2026" -CUSTOM_ID "ABC1234"

Kindly check this since i would love to make a script to generate license and not have this false error logging which could be a problem if i ignore it and it actually is a write error.
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: /GenRegLicense Error Output through command line syntax

Hello,

Thank you for the detailed report and reproduction steps.

I was able to reproduce the behavior on my side as well. The license file is generated correctly, but when the value of a custom license template exceeds 5 characters, the error message is displayed even though the file is successfully created and contains a valid license.

I have forwarded this to our development team and this will be fixed in a future version of Advanced Installer. As soon as the fix will be released we will notify you on this forum thread.

Thank you for bringing this to our attention!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jrosimo
Posts: 5
Joined: Wed Oct 23, 2024 1:46 am

Re: /GenRegLicense Error Output through command line syntax

I appreciate the response. I'll await your update once you released the version with the update. Thank you!
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: /GenRegLicense Error Output through command line syntax

You're always welcome!

Our development team has resolved this issue, and the official release is scheduled for today.

You can download version 24.1 from the link below:

https://www.advancedinstaller.com/downl ... dvinst.msi

Let us know if you have any questions.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”