put_InputPath
Description
Sets the path of the input file that will be packed into the final single-file output.
This property defines the main entry point for the packing process.
The input file must exist and be accessible at the specified path before building the project.
Syntax
HRESULT put_InputPath([in] BSTR strPath);Parameters
strPath
Type: BSTR
[in] Specifies the full or relative path to the executable file that should be used as the main input for packing.
Return Value
Returns an HRESULT.
S_OKif the input path was successfully set.E_INVALIDARGif the path is invalid or empty.- Other standard COM error codes on failure.
Example
CComPtr<IBxProject> project;
if (SUCCEEDED(BxPackerApi_CreateProject(&project))) {
project->put_InputPath(CComBSTR(L"C:\\Apps\\MyApp.exe"));
// ... configure other settings, add files, etc.
}