Command Syntax

/SetPackageName   <file_path>
                  { [-buildname <build_name>] | [-configuration <configuration_name>] }
                  [-withjre]

Two outcomes are possible:

  • If only the package name is sent as argument this command will rename the package without changing the Parent Directory path.

Example:

AdvancedInstaller.com /edit MyProject.aip 
    /SetPackageName MyPackage.msi -buildname DefaultBuild
  • If a full path pointing at the package is received as argument, this command will rename the package and will set the Parent Directory path pointing to the newly received location.

Example:

AdvancedInstaller.com /edit MyProject.aip 
/SetPackageName C:\MyFolder\MyPackage.msi -buildname DefaultBuild

In this case, the Parent Directory path will point to "C:\MyFolder".

Parameters:

  • [-buildname <build_name>]
  • The package name will be set for this build.
  • [-configuration <configuration_name>]
  • For WinCE project only. The package name will be set for this configuration.
  • [-withjre]
  • To specify the path of the package containing the bundled jre just use the -withjre option. This switch is deprecated and exists only for backwards compatibility. You should use the -buildname switch to specify the build with JRE. Does not apply for WinCE projects.

Example:

If the project uses an EXE bootstrapper, the /SetPackageName command can set its name. The command which sets the bootstrapper name looks like this:

AdvancedInstaller.com /edit MyProject.aip 
    /SetPackageName MyPackage.exe -buildname DefaultBuild

If the project is WinCE project the /SetPackageName command looks like this:

AdvancedInstaller.com /edit MyProject.aip 
    /SetPackageName MyPackage.cab -configuration Default