Fail to load path variables from cmdline - 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!

antidotcb
Posts: 34
Joined: Mon May 17, 2010 8:10 am

Fail to load path variables from cmdline

Hi there,

I'm trying to load my path variables file from command line.
I use following command:

Code: Select all

"C:\Program Files (x86)\Caphyon\Advanced Installer 8.5\bin\x86\AdvancedInstaller.com" /loadpathvars .\PathVariables.xml
After such command I got following error output:

Code: Select all

Your 'simple' Advanced Installer project cannot be used to execute command 'LoadPathVariables'. One of the following types of projects is required 'java | professional | enterprise | win-ce | vsix | architect'.

Advanced Installer version 8.5

Usage:
  AdvancedInstaller.com <path_to_project_file>
  AdvancedInstaller.com /help [<command>] | /? [<command>]
  AdvancedInstaller.com /build <path_to_project_file> { [-buildslist <builds_list>] | [-configurationslist <configurations_list>] } [-force]
  AdvancedInstaller.com /rebuild <path_to_project_file> { [-buildslist <builds_list>] | [-configurationslist <configurations_list>] }
  AdvancedInstaller.com /edit <path_to_project_file> <command>
  AdvancedInstaller.com /execute <path_to_project_file> <command_file_path> [-nofail]
  AdvancedInstaller.com /loadpathvars <path_variables_file_path>
Content of "PathVariables.xml" file:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<PathVariables Application="Advanced Installer" Version="8.5">
  <Var Name="PLATFORM_LAYOUT" Path="%PLATFORM_LAYOUT_DIR%" Type="2" ContentType="2"/>
  <Var Name="SCADA_LAYOUT" Path="%SCADA_LAYOUT_DIR%" Type="2" ContentType="2"/>
</PathVariables>
This file is created using "Save To" in Advanced Installer.

I have registered version of Advanced Installer.

What the problem is with this command? How can I load path variables from command line?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Fail to load path variables from cmdline

Hello,

Can you please verify the "License type" field from the menu bar -> "Help" -> "About" dialog?

You can access menu bar -> "Help" -> "Register..." and try to re-register nevertheless. If the issue still persists, please contact us.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
antidotcb
Posts: 34
Joined: Mon May 17, 2010 8:10 am

Re: Fail to load path variables from cmdline

I have just re-registered today
about.png
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Fail to load path variables from cmdline

Hi,

I'm afraid this problem is caused by a bug in Advanced Installer, thank you for bringing it to our attention, a fix will be included in version 8.8.

I'm afraid that you cannot import the path variables from the command line using the current version, but only from the GUI.

The bug was introduced starting with version 8.4, so you can use Advanced Installer 8.3 to perform the upgrade from the command line.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”