Generate Assets Command Option

Command Syntax

/GenerateAssets -src_image_path <source_image_path> -dest_folder_path <destination_folder_path> -package -app_id <application_id>

This command will generate assets starting from a raster (.png, .jpg, .bmp, .tiff, .gif) or vector (.pdf, .ai, .svg) source image.

Parameters:

  • -src_image_path <source_image_path>
  • the source image path.
  • -dest_folder_path <destination_folder_path>
  • the destination folder path (all images will be generated inside this folder).If it doesn't exist, it gets created automatically.
  • -package
  • set this flag to generate the package assets (from the Package Information view).
  • -app_id <application_id>
  • the application id of the app for which we want to generate the application assets (from the Visual Assets view).

ImportantThe command supports both absolute and relative paths. Relative paths are relative to the working directory of the current process thus when using relative paths, assuming the CLI is launched from the same directory where the resources and the .aip file are stored, the command will look something like this: "AI_Install_Location\Advanced Installer 22.1\bin\x86\AdvancedInstaller.com" /edit "MyProject.aip" /GenerateAssets -src_image_path "src\assets_source.jpg" -dest_folder_path "\generated_assets" -package -app_id MyApp

Example:

AdvancedInstaller.com /edit "D:\Your Application.aip" /GenerateAssets -src_image_path D:\Res\Sample.tiff -dest_folder_path D:\Assets -package
AdvancedInstaller.com /edit "D:\Your Application.aip" /GenerateAssets -src_image_path "D:\Res\Sample 1.svg" -dest_folder_path "D:\My Assets" -app_id YourApplication
AdvancedInstaller.com /edit "D:\Your Application.aip" /GenerateAssets -src_image_path "D:\Res\Sample 1.svg" -dest_folder_path "D:\My Assets" -package -app_id YourApplication