Using path variables and building from cli - Advanced Installer Community
sonda
Posts: 103
Joined: Mon Apr 30, 2018 12:01 pm

Using path variables and building from cli

I have created path variables in my project, according to this: https://www.advancedinstaller.com/user- ... ables.html,now i can use operations and save to, and i have my .apf file. After this how can i build my project with path variables from command line?

AdvancedInstaller.com /loadpathvars var.apf /build MyProject.aip
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Using path variables and building from cli

Hello,

You can build your project via the command line by using the following lines:

Code: Select all

AdvancedInstaller.com /loadpathvars <path_to_vars>
AdvancedInstaller.com /build <path_to_project>
Hope this helps.

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sonda
Posts: 103
Joined: Mon Apr 30, 2018 12:01 pm

Re: Using path variables and building from cli

If i run this command AdvancedInstaller.com /build the installer is builded, but if i run two command like you suggested every time when i run:

Code: Select all

AdvancedInstaller.com /loadpathvars <path_to_vars>
it says that can not acquire floating license and build fails, not sure what to do? I know the server is ok and i can acquire licence since if i run advanced installer from guid i can build project
lic3.png
lic3.png (64.08 KiB) Viewed 3812 times
lic2.png
lic2.png (5.53 KiB) Viewed 3812 times
lic.png
lic.png (82.49 KiB) Viewed 3812 times
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Using path variables and building from cli

Hello,

I am not sure why this happens. This may happen if the "Advanced Installer License Server" service had a "Stopped" state at the time you were trying to load the path variables into your project.

Could you please try this again and, if it fails, check if the above specified service is up and running ("Started")?

Also, you may find some useful information about this in the Event Viewer. To do so, please open a Run Window (Win+R buttons combination), type "eventvwr", hit "Ok" and then go to "Windows Logs" --> "Application".

Hope this helps.

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

Return to “Common Problems”