<< Click to Display Table of Contents >> Navigation: WinLicense > FAQ > XBundler > Can I specify via the command line a file which contains all files that will be embedded in XBundler? |
The XBundler files are specified in your winlicense project file. You can directly modify the project file to set your files to bundle.
Another option is to specify a separate file in the "Advanced Options" panel that will contain the list of files to bundle. For example, you can add the following line in the "Advanced Options" panel if you want to have a separate options file (let's call it "ExternalOptions.txt"):
OPTION_ADVANCED_EXTERNAL_PROJECT_OPTIONS=%THEMIDA_FOLDER%\ExternalOptions.txt
In your external options file, you specify the list of files to bundle.
OPTION_XBUNDLER_NUMBER_FILES=2
OPTION_XBUNDLER_FILE_NAME_AT_0=%INPUT_FILE_FOLDER%\MyFile.txt
OPTION_XBUNDLER_FILE_TYPE_AT_0=EXTRACT_NEVER
OPTION_XBUNDLER_FILE_VIRTUAL_PATH_AT_0=%APP_FOLDER%\MyFile.txt
OPTION_XBUNDLER_FILE_NAME_AT_1=%INPUT_FILE_FOLDER%\MyDll.dll
OPTION_XBUNDLER_FILE_TYPE_AT_1=EXTRACT_NEVER
OPTION_XBUNDLER_FILE_VIRTUAL_PATH_AT_1=%APP_FOLDER%\MyDll.dll
You can use any of the predefined constants to specify the path where the file to bundled is located, instead of using full paths, so you can easily move your project files and bundled files across different computers. You can refer to Special Constants in Input/Output file names.
NOTE: The external options file must be in UTF-16 with BOM (0xFEFF) format.