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.
FOLLOW US
Get the latest news in Application Packaging