How to generate new stub executables
22/05/2019 Cliff Hobbs ID: 286940
The Auto Packager automatically generates stub executables for use in Cloudhouse Compatibility Containers™, specifically for use with Appxs created by Microsoft's Desktop App Converter.
The benefits for apps running in the Appx that are provided by stub executables are that they enable the:
- Appx to handle multiple file type associations for the application in the AppManifest.xml file.
- Container to handle arguments for the programs that need to be started by the Appx.
- Container to handle file arguments. Filenames passed to any of the stub executables will be passed onto the application so that it can open the file.
The Auto Packager creates stub executables for each run condition it generates in the Programs.xml during the packaging process. Each stub executable is given the name of the run condition it controls.
For example, run1.exe will execute the command specified in the tag <RunCondition>run1</RunCondition>.
The Auto Packager includes the Cloudhouse.Container.StubGenerator.exe utility which is used to generate stub executables from new or modified run conditions.
StubGenerator.exe Target_Executable Host_Executable Host_Executable_Arguments [Host_Dynamic_Arguments]
||The stub executable that the StubGenerator will generate.
The executable the generator will invoke when the Target_Executable is invoked. For example, Cloudhouse.Container.Run.exe