You can merge two or more AppStacks from the command line by using AppMerge.
Use AppMerge to merge two or more existing AppStacks into one file. AppMerge takes as its input VHD files associated with an AppStack.
The input AppStack files must all be of type VHD. You can create a merged output AppStack of a different type with the /vhd and /vmdk options.
AppMerge has this syntax:
AppMerge.exe /o outputAppStack /s "inputAppStack1file","inputAppStack2file", "inputAppStack3file",...
Creating a Merged AppStack
In this example, you create an AppStack file called MergedAppstack.vhd from three existing AppStack files, Office.vhd, Notepad++.vhd, and Firefox.vhd:
AppMerge.exe /o C:\MergedAppstack.vhd /s "Office.vhd","Notepad++.vhd","Firefox.vhd"
You can specify input file paths, output file paths, and file names. In this case, the three input AppStacks are presumed to be in the default AppStack location. The output AppStack goes in the C: drive.
Besides the /o and /s parameters, AppMerge accepts the following options:
/df. Deletes a specific application bundle. Takes a full path of a file that contains a single GUID in each line as its arguments.
/dl. Deletes a specific application bundle. Takes comma-separated GUIDs as arguments.
/list. Lists the content of the newly created AppStack file.
/meta. Creates a JSON file from the output AppStack file.
/vhd Creates a VHD output AppStack file from VMDK AppStack input files.
/vmdk. Creates a VMDK output AppStack file from VHD AppStack input files.
See also AppCapture Command-Line Options.